/* =============================================
   Onboarding Checklist Banner
   ============================================= */

.onboarding-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    animation: obFadeIn 0.4s ease-out;
}

@keyframes obFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Header row ---- */
.onboarding-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.onboarding-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.onboarding-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.onboarding-icon svg {
    width: 22px;
    height: 22px;
}

.onboarding-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.onboarding-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.onboarding-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.onboarding-progress-pill {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.onboarding-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.onboarding-dismiss:hover {
    color: #475569;
    background: #f1f5f9;
}

.onboarding-dismiss svg {
    width: 18px;
    height: 18px;
}

/* ---- Progress bar ---- */
.onboarding-progress-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.onboarding-progress-fill {
    height: 100%;
    background: #1e293b;
    border-radius: 999px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Step list ---- */
.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    position: relative;
}

.onboarding-step:hover:not(.is-complete) {
    background: #f8fafb;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

/* Complete state */
.onboarding-step.is-complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
    cursor: default;
}

.onboarding-step.is-complete .step-title {
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
}

/* ---- Step checkbox ---- */
.step-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.onboarding-step.is-complete .step-checkbox {
    background: #16a34a;
    border-color: #16a34a;
}

.step-checkbox svg {
    width: 13px;
    height: 13px;
    color: #ffffff;
    display: none;
}

.onboarding-step.is-complete .step-checkbox svg {
    display: block;
}

/* ---- Step text ---- */
.step-text {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0 0 0.125rem 0;
    line-height: 1.4;
}

.step-description {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* ---- Step chevron (on incomplete steps) ---- */
.step-chevron {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: color 0.15s, transform 0.15s;
}

.step-chevron svg {
    width: 16px;
    height: 16px;
    display: block;
}

.onboarding-step:hover:not(.is-complete) .step-chevron {
    color: #64748b;
    transform: translateX(2px);
}

.onboarding-step.is-complete .step-chevron {
    display: none;
}

/* ---- All-done state ---- */
.onboarding-all-done {
    text-align: center;
    padding: 1rem 0 0.5rem;
    animation: obFadeIn 0.3s ease-out;
}

.onboarding-all-done p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #16a34a;
    margin: 0 0 0.875rem 0;
}

.onboarding-all-done button {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.onboarding-all-done button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ---- Collapse / expand toggle ---- */
.onboarding-steps.is-collapsed {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .onboarding-banner {
        padding: 1rem;
    }

    .onboarding-header {
        flex-wrap: wrap;
    }

    .onboarding-header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .step-description {
        display: none;
    }
}

/* =============================================
   Sections
   ============================================= */
.ob-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.ob-section + .ob-section {
    margin-top: 0.625rem;
}

.ob-section.is-complete {
    border-color: #d1fae5;
    background: #fafdfb;
}

/* ---- Section header (clickable) ---- */
.ob-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s;
}

.ob-section-header:hover {
    background: #f8fafc;
}

.ob-section.is-complete .ob-section-header:hover {
    background: #f0fdf4;
}

.ob-section-icon {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.ob-section-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.ob-section.is-complete .ob-section-title {
    color: #64748b;
}

.ob-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.ob-section-count.is-done {
    background: #16a34a;
    color: #ffffff;
    padding: 0.2rem 0.5rem;
}

.ob-section-chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ob-section-header[aria-expanded="false"] .ob-section-chevron {
    transform: rotate(-90deg);
}

/* ---- Section body (step list) ---- */
.ob-section-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 0.625rem 0.625rem;
}

.ob-section-body.is-collapsed {
    display: none;
}

/* Slightly tighter steps inside sections */
.ob-section-body .onboarding-step {
    padding: 0.625rem 0.875rem;
}

.ob-section-body .step-title {
    font-size: 0.8125rem;
}

.ob-section-body .step-description {
    font-size: 0.6875rem;
}