/* Onboarding layout */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
}

.ob-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 48px;
}

.ob-logo {
    margin-bottom: 28px;
    text-align: center;
}

.ob-logo img {
    height: 44px;
    width: auto;
}

.ob-logo .ob-brand-text {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c5282;
    vertical-align: middle;
}

.ob-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 82, 130, .12);
    width: 100%;
    max-width: 1120px;
    overflow: hidden;
}

.ob-card-panel {
    min-height: 100%;
}

.ob-card-panel-main {
    background: #fff;
}

.ob-card-panel-static {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    /*border-left: 1px solid #edf2f7;
    align-items: center;
    justify-content: center;
    padding: 32px;*/
}

.ob-static-media {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.ob-static-media lottie-player {
    width: 100%;
    max-width: 700px;
    height: 700px;
}

.ob-progress-bar-wrap {
    height: 4px;
    /*background: #e2e8f0;*/
}

.ob-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    transition: width .4s ease;
}

.ob-progress-bar-initial {
    width: 0%;
}

.ob-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px 0;
}

.ob-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background .3s, transform .3s;
}

.ob-step-dot.active {
    background: #3182ce;
    transform: scale(1.3);
}

.ob-step-dot.done {
    background: #48bb78;
}

.ob-body {
    padding: 28px 32px 24px;
}

.ob-body-condensed {
    text-align: center;
    padding-top: 36px;
    padding-bottom: 12px;
}

@media (max-width: 480px) {
    .ob-body {
        padding: 20px 18px 18px;
    }
}

.ob-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    background: #ebf4ff;
    color: #3182ce;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.ob-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 4px;
    margin-left: 10px;
}

.ob-step-desc {
    color: #718096;
    font-size: .9rem;
    margin-bottom: 22px;
    line-height: 1.5;
    margin-left: 10px;
}

.ob-step-desc-narrow {
    max-width: 380px;
    margin: 0 auto 24px;
}

.ob-label {
    font-size: .85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.ob-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: .95rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
    color: #1a202c;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.ob-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, .15);
}

.ob-input.is-invalid {
    border-color: #e53e3e;
}

.ob-field-error {
    font-size: .8rem;
    color: #e53e3e;
    margin-top: 4px;
    display: none;
}

.ob-field-error.show {
    display: block;
}

.ob-otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
}

.ob-otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 1.5px solid #cbd5e0;
    border-radius: 10px;
    background: #fff;
    color: #1a365d;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ob-otp-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, .15);
}

.ob-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.ob-option-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ob-option-tile {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, transform .15s;
    user-select: none;
}

.ob-option-tile:hover {
    border-color: #90cdf4;
    background: #ebf8ff;
}

.ob-option-tile.selected {
    border-color: #3182ce;
    background: #ebf4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, .15);
}

.ob-option-tile .ob-tile-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.ob-option-tile .ob-tile-label {
    font-size: .9rem;
    font-weight: 600;
    color: #2d3748;
}

.ob-option-tile .ob-tile-desc {
    font-size: .78rem;
    color: #718096;
    margin-top: 2px;
}

.ob-radio-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ob-radio-tile {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color .2s, background .2s;
}

.ob-radio-tile:hover {
    border-color: #90cdf4;
    background: #f7fbff;
}

.ob-radio-tile.selected {
    border-color: #3182ce;
    background: #ebf4ff;
}

.ob-radio-tile input[type=radio] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #3182ce;
}

.ob-radio-tile .ob-rt-label {
    font-weight: 600;
    font-size: .9rem;
    color: #2d3748;
}

.ob-radio-tile .ob-rt-desc {
    font-size: .8rem;
    color: #718096;
    margin-top: 2px;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
}

.ob-btn:active {
    transform: scale(.97);
}

.ob-btn-primary {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(49, 130, 206, .35);
}

.ob-btn-primary:hover {
    background: linear-gradient(135deg, #2b6cb0, #2c5282);
}

.ob-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.ob-btn-ghost {
    background: transparent;
    color: #4a5568;
    border: 1.5px solid #cbd5e0;
}

.ob-btn-ghost:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.ob-btn-success {
    background: linear-gradient(135deg, #38a169, #276749);
    color: #fff;
    box-shadow: 0 2px 8px rgba(56, 161, 105, .35);
}

.ob-btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
}

.ob-btn-full {
    width: 100%;
}

.ob-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px 24px;
    border-top: 1px solid #f0f4f8;
    gap: 12px;
}

@media (max-width: 480px) {
    .ob-footer {
        padding: 14px 18px 18px;
    }
}

.ob-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .87rem;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ob-alert-info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.ob-alert-warn {
    background: #fffbeb;
    color: #b7791f;
    border: 1px solid #fef3c7;
}

.ob-alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.ob-alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.ob-status-card {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ob-status-card .ob-sc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ob-status-card .ob-sc-label {
    font-weight: 600;
    font-size: .9rem;
}

.ob-status-card .ob-sc-desc {
    font-size: .8rem;
    color: #718096;
}

.ob-status-card.ok {
    border-color: #c6f6d5;
    background: #f0fff4;
}

.ob-status-card.warn {
    border-color: #fef3c7;
    background: #fffbeb;
}

.ob-status-card.err {
    border-color: #fed7d7;
    background: #fff5f5;
}

.ob-ai-anim {
    text-align: center;
    padding: 20px 0 12px;
}

.ob-ai-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.ob-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.ob-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78, #38a169);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(72, 187, 120, .4);
}

.ob-resend-wrap {
    text-align: center;
    margin-top: 14px;
    font-size: .85rem;
    color: #718096;
}

.ob-resend-link {
    color: #3182ce;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.ob-resend-link:hover {
    color: #2b6cb0;
}

.ob-token-box {
    background: #1a202c;
    color: #68d391;
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    padding: 12px 14px;
    border-radius: 8px;
    word-break: break-all;
    user-select: all;
    position: relative;
}

.ob-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2d3748;
    border: none;
    color: #a0aec0;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: .75rem;
    cursor: pointer;
}

.ob-copy-btn:hover {
    background: #4a5568;
    color: #fff;
}

.ob-skip {
    font-size: .82rem;
    color: #a0aec0;
    cursor: pointer;
    text-decoration: underline;
}

.ob-skip:hover {
    color: #718096;
}

.ob-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

.ob-divider {
    position: relative;
    font-size: .85rem;
}

.ob-static-copy {
    max-width: 420px;
}

.ob-static-animation-wrap {
    margin-top: -50px;
    margin-bottom: -300px;
}

.ob-provider-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    text-align: left;
}

.ob-provider-icon {
    font-size: 1.25rem;
    margin-top: .15rem;
}

.ob-helper-text-sm {
    font-size: .8rem;
    color: #718096;
    margin-top: 4px;
}

.ob-ai-loading-text {
    font-size: .9rem;
}

.ob-token-note {
    font-size: .8rem;
    color: #718096;
    margin-top: 4px;
}

.ob-inline-status {
    font-size: .8rem;
    color: #718096;
    margin-top: 4px;
}

.ob-position-relative {
    position: relative;
}

.ob-message-copy {
    font-size: .8rem;
    color: #718096;
}
