/* FlowNex - Onboarding Styles */

.onboarding {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .onboarding {
        margin: 20px auto;
        height: calc(100% - 40px);
        border-radius: var(--radius-2xl);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
}

.onboarding-header {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.onboarding-header .logo-mark {
    width: 36px;
    height: 36px;
}

.onboarding-header-text h1 {
    font-size: 17px;
    font-weight: var(--font-weight-bold);
}

.onboarding-header-text span {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.onboarding-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Progress */
.progress-container {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.step-indicator.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    transition: all var(--transition-slow);
}

.step-indicator:not(.disabled):hover .step-dot {
    transform: scale(1.1);
}

.step-indicator.active .step-dot {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-shadow);
}

.step-indicator.completed .step-dot {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    max-width: 60px;
}

.step-indicator.active .step-label {
    color: var(--accent);
    font-weight: var(--font-weight-semibold);
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Content */
.onboarding-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
    -webkit-overflow-scrolling: touch;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* Bottom actions */
.onboarding-footer {
    padding: var(--space-4) var(--space-5) var(--space-8);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Success screen */
.success-screen {
    text-align: center;
    padding: var(--space-10) var(--space-5);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.success-icon i {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.success-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.success-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.email-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    text-align: left;
}

.email-section h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.email-section h3 i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}
