/* ── Onboarding Wizard ─────────────────────────────────────────────────── */

.ob-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ob-overlay.ob-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ────────────────────────────────────────────────────────────── */

.ob-modal {
    position: relative;
    width: 95%;
    max-width: 640px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--orbyra-radius-md, 12px);
    box-shadow: var(--orbyra-shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.3));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: obSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes obSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ───────────────────────────────────────────────────────────── */

.ob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.75rem;
}

.ob-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ob-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orbyra-border, #e2e8f0);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ob-dot.ob-dot-active {
    background: var(--orbyra-primary, #10B981);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ob-dot.ob-dot-done {
    background: var(--orbyra-primary, #10B981);
    opacity: 0.5;
}

.ob-close {
    background: none;
    border: none;
    color: var(--orbyra-text-muted, #94a3b8);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.ob-close:hover {
    background: var(--orbyra-bg-hover, #f1f5f9);
    color: var(--orbyra-text, #1e293b);
}

/* ── Body ─────────────────────────────────────────────────────────────── */

.ob-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem 1rem;
    text-align: center;
}

.ob-step {
    animation: obFadeIn 0.25s ease;
}

@keyframes obFadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ob-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.ob-step-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--orbyra-text, #1e293b);
    margin-bottom: 0.75rem;
}

.ob-step-desc {
    color: var(--orbyra-text-muted, #64748b);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.ob-step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--orbyra-secondary, #F59E0B);
    color: #fff;
    margin-bottom: 0.75rem;
}

.ob-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--orbyra-primary, #10B981);
    color: #fff;
    border: none;
    border-radius: var(--orbyra-radius, 8px);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ob-cta:hover {
    background: var(--orbyra-primary-hover, #059669);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.ob-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--orbyra-border, #e2e8f0);
}

.ob-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--orbyra-radius, 8px);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ob-btn-prev {
    background: transparent;
    color: var(--orbyra-text-muted, #64748b);
    border: 1px solid var(--orbyra-border, #e2e8f0);
}

.ob-btn-prev:hover:not(:disabled) {
    background: var(--orbyra-bg-hover, #f1f5f9);
    color: var(--orbyra-text, #1e293b);
}

.ob-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ob-btn-next {
    background: var(--orbyra-primary, #10B981);
    color: #fff;
}

.ob-btn-next:hover {
    background: var(--orbyra-primary-hover, #059669);
}

.ob-counter {
    font-size: 0.8rem;
    color: var(--orbyra-text-muted, #94a3b8);
    font-weight: 500;
}

.ob-skip {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--orbyra-text-muted, #94a3b8);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ob-skip:hover {
    color: var(--orbyra-text, #1e293b);
}

/* ── FAB (botao flutuante para continuar tour) ────────────────────────── */

.ob-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ob-fab.ob-fab-visible {
    opacity: 1;
    transform: translateY(0);
}

.ob-fab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--orbyra-primary, #10B981);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ob-fab-btn {
    animation: obPulse 2.5s ease-in-out infinite;
}

.ob-fab-btn:hover {
    background: var(--orbyra-primary-hover, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
    animation: none;
}

@keyframes obPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    }
    50% {
        box-shadow: 0 4px 24px rgba(16, 185, 129, 0.7), 0 0 0 8px rgba(16, 185, 129, 0.12);
    }
}

.ob-fab-btn i {
    font-size: 1.1rem;
}

.ob-fab-step {
    font-size: 0.7rem;
    opacity: 0.75;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 999px;
}

.ob-fab-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.ob-fab-dismiss:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 576px) {
    .ob-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .ob-body {
        padding: 1.5rem 1.25rem 1rem;
    }

    .ob-step-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .ob-step-title {
        font-size: 1.15rem;
    }

    .ob-step-desc {
        font-size: 0.875rem;
    }
}
