/**
 * Onboarding Styles - Original design with horizontal carousel
 * Keeps hero banner, changes grid to horizontal scroll
 */

/* ============================================================================
   CONTAINER - fills available space between header and footer
   ============================================================================ */

.onboarding-container-simple {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    /* Fill available height: 100vh - header(70px) - footer(80px) - some margin */
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   HERO HEADER
   ============================================================================ */

.onboarding-hero {
    text-align: center;
    margin-bottom: 28px;
    padding: 44px 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect */
.onboarding-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.onboarding-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Badge */
.onboarding-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 16px;
}

.onboarding-hero-badge i {
    font-size: 13px;
    color: #818cf8;
}

/* Title */
.onboarding-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.onboarding-hero-title .gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.onboarding-hero-subtitle {
    font-size: 16px;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   PIPELINE VISUALIZATION
   ============================================================================ */

.onboarding-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pipeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #71717a;
    transition: all 0.3s ease;
}

.pipeline-step span {
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AI step - special styling */
.pipeline-step.ai .pipeline-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    animation: ai-pulse 2s ease-in-out infinite;
}

.pipeline-step.ai span {
    color: #818cf8;
    font-weight: 600;
}

@keyframes ai-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }
}

/* Final step - store */
.pipeline-step.final .pipeline-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15));
    border-color: rgba(34, 197, 94, 0.4);
    color: #34d399;
}

.pipeline-step.final span {
    color: #34d399;
    font-weight: 600;
}

/* Arrows */
.pipeline-arrow {
    color: #3f3f46;
    font-size: 14px;
    padding: 0 6px;
}

/* Animation for pipeline */
.pipeline-step:nth-child(1) { animation: pipeline-fade 0.5s ease 0.1s backwards; }
.pipeline-step:nth-child(3) { animation: pipeline-fade 0.5s ease 0.2s backwards; }
.pipeline-step:nth-child(5) { animation: pipeline-fade 0.5s ease 0.3s backwards; }
.pipeline-step:nth-child(7) { animation: pipeline-fade 0.5s ease 0.4s backwards; }
.pipeline-step:nth-child(9) { animation: pipeline-fade 0.5s ease 0.5s backwards; }

.pipeline-arrow:nth-child(2) { animation: arrow-fade 0.3s ease 0.15s backwards; }
.pipeline-arrow:nth-child(4) { animation: arrow-fade 0.3s ease 0.25s backwards; }
.pipeline-arrow:nth-child(6) { animation: arrow-fade 0.3s ease 0.35s backwards; }
.pipeline-arrow:nth-child(8) { animation: arrow-fade 0.3s ease 0.45s backwards; }

@keyframes pipeline-fade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arrow-fade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   CAROUSEL WRAPPER (NEW)
   ============================================================================ */

.onboarding-carousel-wrapper {
    position: relative;
    margin-bottom: 24px;
    flex: 1;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.scroll-arrow-left {
    left: -20px;
}

.scroll-arrow-right {
    right: -20px;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================================
   STEPS CAROUSEL (changed from grid)
   ============================================================================ */

.onboarding-steps-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 12px 8px;
}

.onboarding-steps-carousel::-webkit-scrollbar {
    display: none;
}

/* ============================================================================
   STEP CARD (original styling preserved)
   ============================================================================ */

.onboarding-step-card {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    min-height: 240px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    scroll-snap-align: center;
}

.onboarding-step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

/* Step number badge */
.onboarding-step-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.onboarding-step-number.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.onboarding-step-number.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.onboarding-step-number.indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.onboarding-step-number.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.onboarding-step-number.violet {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.onboarding-step-number.pink {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.onboarding-step-number.yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.onboarding-step-number.rose {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.onboarding-step-number.red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.onboarding-step-number.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.onboarding-step-number.fuchsia {
    background: rgba(217, 70, 239, 0.15);
    color: #e879f9;
}

.onboarding-step-number.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.onboarding-step-number.teal {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.onboarding-step-number.sky {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

/* Step icon */
.onboarding-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
    margin-top: 8px;
    flex-shrink: 0;
}

.onboarding-step-icon.amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.onboarding-step-icon.cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.onboarding-step-icon.indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

.onboarding-step-icon.emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.onboarding-step-icon.violet {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.onboarding-step-icon.pink {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
}

.onboarding-step-icon.yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.onboarding-step-icon.rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
}

.onboarding-step-icon.red {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.onboarding-step-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

.onboarding-step-icon.fuchsia {
    background: rgba(217, 70, 239, 0.12);
    color: #e879f9;
}

.onboarding-step-icon.orange {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
}

.onboarding-step-icon.teal {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
}

.onboarding-step-icon.sky {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
}

/* Step content */
.onboarding-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.onboarding-step-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.onboarding-step-description {
    font-size: 13px;
    color: #71717a;
    margin: 0;
    line-height: 1.5;
}

/* Step status */
.onboarding-step-status {
    font-size: 12px;
    font-weight: 500;
}

.onboarding-step-status .status-done {
    color: #22c55e;
}

.onboarding-step-status .status-done i {
    margin-right: 4px;
}

.onboarding-step-status .status-pending {
    color: #f59e0b;
}

.onboarding-step-status .status-pending i {
    font-size: 8px;
    margin-right: 4px;
    vertical-align: middle;
}

.onboarding-step-status .status-locked {
    color: #52525b;
}

.onboarding-step-status .status-locked i {
    margin-right: 4px;
}

/* Step action button */
.onboarding-step-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
}

.onboarding-step-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.onboarding-step-action.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.onboarding-step-action.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.onboarding-step-action.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #52525b;
    cursor: not-allowed;
    pointer-events: none;
}

/* Step pulse effect (for next step) */
.onboarding-step-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    border: 2px solid transparent;
    animation: step-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes step-pulse {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0);
        transform: scale(1);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.5);
        transform: scale(1.01);
    }
}

/* ============================================================================
   CARD STATES
   ============================================================================ */

/* Completed state */
.onboarding-step-card.completed {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.onboarding-step-card.completed .onboarding-step-number {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.onboarding-step-card.completed .onboarding-step-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.onboarding-step-card.completed .onboarding-step-name {
    color: #a1a1aa;
}

/* Next step state */
.onboarding-step-card.next {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.onboarding-step-card.next .onboarding-step-icon {
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.3);
    }
}

/* Locked state */
.onboarding-step-card.locked {
    opacity: 0.5;
}

.onboarding-step-card.locked:hover {
    transform: none;
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */

.onboarding-progress-simple {
    margin-bottom: 0;
    flex-shrink: 0;
}

.onboarding-progress-bar-simple {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.onboarding-progress-fill-simple {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.onboarding-progress-fill-simple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.onboarding-progress-text-simple {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.onboarding-progress-count {
    color: #a1a1aa;
}

.onboarding-progress-percent {
    color: #818cf8;
    font-weight: 600;
}

/* ============================================================================
   CELEBRATION MODAL
   ============================================================================ */

.onboarding-celebration-simple {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.onboarding-celebration-simple.active {
    display: flex;
}

.onboarding-celebration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.onboarding-celebration-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a24, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-celebration-simple.active .onboarding-celebration-content {
    transform: scale(1);
    opacity: 1;
}

.onboarding-celebration-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    position: relative;
    animation: celebration-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes celebration-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.onboarding-celebration-icon i {
    font-size: 44px;
    color: #ffffff;
}

.onboarding-celebration-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    animation: celebration-pulse 2s ease-out infinite;
}

@keyframes celebration-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.onboarding-celebration-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.onboarding-celebration-text {
    font-size: 16px;
    color: #a1a1aa;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.onboarding-celebration-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.onboarding-celebration-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: badge-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.onboarding-celebration-badge:nth-child(1) { animation-delay: 0.2s; }
.onboarding-celebration-badge:nth-child(2) { animation-delay: 0.3s; }
.onboarding-celebration-badge:nth-child(3) { animation-delay: 0.4s; }
.onboarding-celebration-badge:nth-child(4) { animation-delay: 0.5s; }

@keyframes badge-pop {
    0% { transform: scale(0) rotate(-20deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.onboarding-celebration-badge.amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.onboarding-celebration-badge.cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.onboarding-celebration-badge.indigo {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.onboarding-celebration-badge.emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.onboarding-celebration-actions {
    display: flex;
    gap: 12px;
}

.onboarding-celebration-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

.onboarding-celebration-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.onboarding-celebration-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.onboarding-celebration-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

.onboarding-celebration-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Confetti Canvas */
#onboarding-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

/* ============================================================================
   RESPONSIVE - TABLET
   ============================================================================ */

@media (max-width: 1024px) {
    .onboarding-container-simple {
        min-height: calc(100vh - 160px);
    }

    .onboarding-step-card {
        width: 200px;
        min-height: 220px;
        padding: 24px 18px 20px;
        gap: 12px;
    }

    .onboarding-step-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    /* Hero tablet */
    .onboarding-hero-title {
        font-size: 24px;
    }

    .onboarding-hero-subtitle {
        font-size: 13px;
    }

    .pipeline-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pipeline-step span {
        font-size: 9px;
    }

    .scroll-arrow-left {
        left: 0;
    }

    .scroll-arrow-right {
        right: 0;
    }
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */

@media (max-width: 640px) {
    .onboarding-container-simple {
        padding: 12px 0;
        min-height: calc(100vh - 150px);
    }

    /* Hero mobile */
    .onboarding-hero {
        padding: 20px 16px;
        margin: 0 12px 16px;
        border-radius: 16px;
    }

    .onboarding-hero-badge {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .onboarding-hero-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .onboarding-hero-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    /* Pipeline mobile - compact but readable */
    .onboarding-pipeline {
        gap: 3px;
    }

    .pipeline-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .pipeline-step span {
        font-size: 9px;
    }

    .pipeline-arrow {
        font-size: 11px;
        padding: 0 3px;
    }

    /* Carousel wrapper mobile - add fade edges */
    .onboarding-carousel-wrapper {
        position: relative;
        margin: 0;
    }

    .onboarding-carousel-wrapper::before,
    .onboarding-carousel-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 24px;
        z-index: 5;
        pointer-events: none;
    }

    .onboarding-carousel-wrapper::before {
        left: 0;
        background: linear-gradient(to right, var(--bg-primary, #0a0a0f) 0%, transparent 100%);
    }

    .onboarding-carousel-wrapper::after {
        right: 0;
        background: linear-gradient(to left, var(--bg-primary, #0a0a0f) 0%, transparent 100%);
    }

    /* Hide scroll arrows on mobile - swipe is better */
    .scroll-arrow {
        display: none;
    }

    /* Carousel mobile - full width scroll */
    .onboarding-steps-carousel {
        padding: 12px 20px;
        gap: 14px;
        scroll-padding: 20px;
    }

    /* Cards mobile - bigger and more readable */
    .onboarding-step-card {
        width: 160px;
        min-height: 190px;
        padding: 18px 14px 16px;
        gap: 10px;
        border-radius: 16px;
    }

    .onboarding-step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: 10px;
        left: 10px;
        border-radius: 6px;
    }

    .onboarding-step-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        flex-shrink: 0;
        border-radius: 14px;
        margin-top: 6px;
    }

    .onboarding-step-content {
        flex: 1;
        min-width: 0;
        gap: 4px;
    }

    .onboarding-step-name {
        font-size: 13px;
        line-height: 1.25;
    }

    .onboarding-step-description {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .onboarding-step-status {
        font-size: 10px;
    }

    .onboarding-step-action {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .onboarding-step-pulse {
        display: none;
    }

    /* Progress bar mobile */
    .onboarding-progress-simple {
        padding: 0 12px;
    }

    .onboarding-progress-bar-simple {
        height: 5px;
    }

    .onboarding-progress-text-simple {
        font-size: 11px;
    }

    /* Celebration modal mobile */
    .onboarding-celebration-content {
        padding: 28px 20px;
        margin: 12px;
        border-radius: 20px;
    }

    .onboarding-celebration-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    .onboarding-celebration-icon i {
        font-size: 32px;
    }

    .onboarding-celebration-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .onboarding-celebration-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .onboarding-celebration-badges {
        gap: 8px;
        margin-bottom: 24px;
    }

    .onboarding-celebration-badge {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 12px;
    }

    .onboarding-celebration-actions {
        flex-direction: column;
        gap: 10px;
    }

    .onboarding-celebration-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================================================
   RESPONSIVE - VERY SMALL MOBILE (iPhone SE, etc)
   ============================================================================ */

@media (max-width: 380px) {
    .onboarding-hero {
        padding: 16px 12px;
    }

    .onboarding-hero-title {
        font-size: 20px;
    }

    .onboarding-hero-subtitle {
        font-size: 12px;
    }

    /* Hide some pipeline items on very small screens */
    .pipeline-step:nth-child(7),
    .pipeline-step:nth-child(9),
    .pipeline-arrow:nth-child(6),
    .pipeline-arrow:nth-child(8) {
        display: none;
    }

    .onboarding-step-card {
        width: 145px;
        min-height: 175px;
        padding: 16px 12px 14px;
    }

    .onboarding-step-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .onboarding-step-name {
        font-size: 12px;
    }

    .onboarding-step-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .onboarding-celebration-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================================================
   LIGHT THEME
   ============================================================================ */

[data-theme="light"] .onboarding-step-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onboarding-step-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .onboarding-step-card.completed {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.15);
}

[data-theme="light"] .onboarding-step-card.next {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .onboarding-title-simple,
[data-theme="light"] .onboarding-step-name {
    color: #18181b;
}

[data-theme="light"] .onboarding-subtitle-simple,
[data-theme="light"] .onboarding-step-description,
[data-theme="light"] .onboarding-progress-count {
    color: #71717a;
}

[data-theme="light"] .onboarding-step-card.completed .onboarding-step-name {
    color: #71717a;
}

[data-theme="light"] .onboarding-progress-bar-simple {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onboarding-celebration-backdrop {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .onboarding-celebration-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .onboarding-celebration-title {
    color: #18181b;
}

[data-theme="light"] .onboarding-celebration-text {
    color: #52525b;
}

[data-theme="light"] .onboarding-celebration-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #18181b;
}

[data-theme="light"] .onboarding-celebration-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Hero light theme */
[data-theme="light"] .onboarding-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 50%, rgba(236, 72, 153, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .onboarding-hero-title {
    color: #18181b;
}

[data-theme="light"] .onboarding-hero-subtitle {
    color: #52525b;
}

[data-theme="light"] .pipeline-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #71717a;
}

[data-theme="light"] .pipeline-arrow {
    color: #d4d4d8;
}

[data-theme="light"] .scroll-arrow {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #18181b;
}
