body.onb-open { overflow: hidden; }

.onb-overlay[hidden] { display: none !important; }
.onb-overlay {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 6, 9, 0.82);
    backdrop-filter: blur(5px);
}

.onb-dialog {
    width: min(920px, 100%);
    height: min(680px, calc(100dvh - 40px));
    min-height: 560px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #353b43;
    border-radius: 8px;
    background: #111519;
    color: #eaecef;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.onb-rail {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px 20px 20px;
    background: #171c21;
    border-right: 1px solid #2b3139;
}

.onb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 15px; font-weight: 700; }
.onb-brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f0b90b;
    color: #111;
    font-size: 16px;
    font-weight: 800;
}

.onb-rail-steps { display: grid; gap: 3px; }
.onb-rail-step {
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #848e9c;
    font-size: 12px;
}
.onb-rail-step span:first-child {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #3a414a;
    border-radius: 50%;
    font-size: 10px;
}
.onb-rail-step.active { background: rgba(240, 185, 11, 0.09); color: #f0b90b; }
.onb-rail-step.active span:first-child { border-color: #f0b90b; background: #f0b90b; color: #111; }
.onb-rail-step.done { color: #9ba6b2; }
.onb-rail-step.done span:first-child { border-color: #0ecb81; background: #0ecb81; color: #071b14; }
.onb-demo-badge {
    margin-top: auto;
    padding: 9px 10px;
    border: 1px solid rgba(14, 203, 129, 0.24);
    border-radius: 6px;
    background: rgba(14, 203, 129, 0.07);
    color: #78dcb4;
    font-size: 11px;
    line-height: 1.5;
}

.onb-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.onb-header { min-height: 54px; display: flex; justify-content: flex-end; align-items: center; padding: 10px 14px 0 24px; }
.onb-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #848e9c;
    cursor: pointer;
}
.onb-close:hover { background: #20262c; color: #eaecef; }
.onb-close svg { width: 19px; height: 19px; }
.onb-mobile-progress { display: none; }

.onb-content {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(210px, 0.82fr) minmax(300px, 1.18fr);
    align-items: center;
    gap: 32px;
    padding: 10px 36px 24px;
}
.onb-eyebrow { margin-bottom: 10px; color: #f0b90b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.onb-copy h2 { margin: 0 0 14px; color: #f5f6f7; font-size: 28px; line-height: 1.3; font-weight: 750; letter-spacing: 0; }
.onb-description { margin: 0; color: #aeb6c0; font-size: 14px; line-height: 1.8; }
.onb-key-point {
    margin-top: 20px;
    padding: 12px 14px;
    border-left: 3px solid #f0b90b;
    background: rgba(240, 185, 11, 0.06);
    color: #d6dae0;
    font-size: 12px;
    line-height: 1.65;
}

.onb-stage {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 22px;
    border: 1px solid #303741;
    border-radius: 8px;
    background: #0d1013;
}
.onb-phone { width: min(310px, 100%); overflow: hidden; border: 1px solid #343b44; border-radius: 8px; background: #161a1e; }
.onb-phone-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #2b3139; font-size: 13px; font-weight: 700; }
.onb-phone-body { padding: 14px; }
.onb-label { margin-bottom: 6px; color: #848e9c; font-size: 10px; }
.onb-field { min-height: 38px; display: flex; align-items: center; padding: 8px 10px; border: 1px solid #343b44; border-radius: 6px; background: #0f1316; color: #dfe3e8; font-family: inherit; font-size: 12px; overflow-wrap: anywhere; }
.onb-field + .onb-label { margin-top: 12px; }
.onb-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onb-demo-button { min-height: 38px; display: grid; place-items: center; margin-top: 14px; border-radius: 6px; background: #f0b90b; color: #101214; font-size: 12px; font-weight: 800; }
.onb-demo-button.green { background: #0ecb81; color: #062217; }
.onb-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 6px; background: rgba(14, 203, 129, 0.08); color: #72d8ad; font-size: 11px; }
.onb-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #0ecb81; box-shadow: 0 0 0 4px rgba(14, 203, 129, 0.12); }
.onb-warning { margin-top: 11px; color: #f0b90b; font-size: 10px; line-height: 1.55; }
.onb-amount { color: #0ecb81; font-size: 25px; font-weight: 750; }
.onb-muted { color: #848e9c; font-size: 10px; }
.onb-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.onb-choice { padding: 10px; border: 1px solid #343b44; border-radius: 6px; color: #aeb6c0; font-size: 11px; }
.onb-choice.selected { border-color: #0ecb81; background: rgba(14, 203, 129, 0.07); color: #75deb5; }
.onb-flow { width: 100%; display: grid; gap: 10px; }
.onb-flow-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; border-bottom: 1px solid #282e35; }
.onb-flow-item:last-child { border-bottom: 0; }
.onb-flow-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #20262c; color: #f0b90b; font-size: 13px; font-weight: 800; }
.onb-flow-title { color: #e5e8ec; font-size: 12px; font-weight: 700; }
.onb-flow-desc { margin-top: 2px; color: #77818e; font-size: 10px; }
.onb-flow-arrow { color: #59626d; }
.onb-success { text-align: center; }
.onb-success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: rgba(14, 203, 129, 0.13); color: #0ecb81; font-size: 28px; font-weight: 800; }
.onb-success h3 { margin: 0 0 7px; font-size: 17px; }
.onb-success p { margin: 0; color: #8e98a5; font-size: 11px; line-height: 1.7; }
.onb-real-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.onb-real-link { padding: 9px 8px; border: 1px solid #39414a; border-radius: 6px; color: #d7dce2; text-decoration: none; font-size: 11px; }
.onb-real-link:hover { border-color: #f0b90b; color: #f0b90b; }
.onb-guide-link { display:inline-flex; align-items:center; text-decoration:none; }
.onb-check-list { display:grid; gap:7px; color:#9de4c4; font-size:11px; }

.onb-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-top: 1px solid #2b3139; }
.onb-footer-actions { display: flex; gap: 10px; }
.onb-text-button, .onb-secondary-button, .onb-primary-button { min-height: 40px; border-radius: 6px; padding: 0 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.onb-text-button { border: 0; background: transparent; color: #7f8995; }
.onb-text-button:hover { color: #dce0e5; }
.onb-secondary-button { border: 1px solid #3a424c; background: transparent; color: #c2c8d0; }
.onb-secondary-button:disabled { visibility: hidden; }
.onb-primary-button { min-width: 138px; border: 1px solid #f0b90b; background: #f0b90b; color: #111; }
.onb-primary-button:hover { background: #ffd044; }

html.light-theme .onb-overlay { background: rgba(22, 28, 35, 0.58); }
html.light-theme .onb-dialog { border-color: #d9dde3; background: #fff; color: #1e2329; }
html.light-theme .onb-rail { background: #f5f7f9; border-color: #e1e5ea; }
html.light-theme .onb-main { background: #fff; }
html.light-theme .onb-copy h2 { color: #181c20; }
html.light-theme .onb-description { color: #586270; }
html.light-theme .onb-key-point { color: #434d59; }
html.light-theme .onb-stage { border-color: #dfe3e8; background: #f4f6f8; }
html.light-theme .onb-phone { border-color: #d7dce2; background: #fff; }
html.light-theme .onb-phone-head { border-color: #e4e7eb; }
html.light-theme .onb-field { border-color: #dfe3e8; background: #f8f9fa; color: #2c333a; }
html.light-theme .onb-flow-item { border-color: #e0e4e9; }
html.light-theme .onb-flow-title { color: #252b31; }
html.light-theme .onb-close:hover { background: #eef1f4; color: #222; }
html.light-theme .onb-footer { border-color: #e1e5ea; }

@media (max-width: 720px) {
    .onb-overlay { padding: 0; place-items: stretch; }
    .onb-dialog { width: 100%; height: 100dvh; min-height: 0; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .onb-rail { display: none; }
    .onb-header { min-height: 68px; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
    .onb-mobile-progress { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; color: #8e98a5; font-size: 11px; }
    .onb-progress-track { width: min(150px, 38vw); height: 4px; overflow: hidden; border-radius: 2px; background: #303740; }
    .onb-progress-track span { display: block; height: 100%; background: #f0b90b; transition: width 0.2s ease; }
    .onb-content { display: block; padding: 8px 18px 20px; }
    .onb-copy h2 { font-size: 23px; }
    .onb-description { font-size: 13px; line-height: 1.7; }
    .onb-key-point { margin-top: 14px; padding: 10px 12px; }
    .onb-stage { min-height: 300px; margin-top: 20px; padding: 16px; }
    .onb-footer { min-height: 72px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
    .onb-text-button { padding: 0 6px; font-size: 12px; }
    .onb-secondary-button, .onb-primary-button { min-height: 42px; padding: 0 14px; }
    .onb-primary-button { min-width: 116px; }
}

@media (max-width: 390px) {
    .onb-content { padding-left: 14px; padding-right: 14px; }
    .onb-stage { min-height: 280px; }
    .onb-footer-actions { gap: 6px; }
    .onb-secondary-button, .onb-primary-button { padding: 0 11px; font-size: 12px; }
    .onb-primary-button { min-width: 104px; }
}
