/* ==============================================
   CHAR CREATOR WIZARD - CORE
   - Base Layout, Progress, Navigation
   ============================================== */

.creator-wizard-card {
    width: 92vw;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.creator-wizard-card::-webkit-scrollbar {
    width: 4px;
}

.creator-wizard-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* === Step Progress === */
.wizard-steps {
    display: flex;
    align-items: center;
    padding: 28px 32px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0;
}

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

.wizard-step span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wizard-step.active .step-dot {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: scale(1.1);
}

.wizard-step.active span {
    color: var(--text-primary);
}

.wizard-step.completed .step-dot {
    background: rgba(94, 234, 212, 0.2);
    border-color: var(--cyan);
    color: var(--cyan);
}

.wizard-step.completed span {
    color: var(--cyan);
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.4s;
    position: relative;
    overflow: hidden;
}

.wizard-step-connector.filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    animation: fillBar 0.5s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* === Panel === */
.wizard-panel {
    display: none;
    padding: 24px 32px 28px;
    animation: wizardFadeIn 0.35s ease forwards;
}

.wizard-panel.active {
    display: block;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.wizard-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.wizard-panel-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.panel-icon-ring {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* === Wizard Navigation Buttons === */
.wizard-nav-footer {
    text-align: center;
    margin-top: 24px;
}

.wizard-nav-footer.two-col {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.btn-wizard-back {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wizard-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-wizard-next {
    flex: 1;
    background: linear-gradient(135deg, var(--gold) 0%, #e88c00 100%);
    color: #111;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-wizard-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243, 194, 106, 0.35);
}

.skip-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.skip-link:hover {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .creator-wizard-card {
        max-height: 92vh;
    }

    .wizard-panel {
        padding: 20px;
    }

    .wizard-steps {
        padding: 20px 20px 16px;
    }

    .identity-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .char-context-row {
        grid-template-columns: 1fr;
    }

    .voice-source-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}