/**
 * Store Creation Wizard - Styles
 *
 * Two layers of design tokens live here side-by-side:
 *
 *   - `--wizard-*` : legacy palette (Inter + blue) used by older components.
 *   - `--mt-*`     : multitienda6 palette (Fraunces + warm beige + indigo
 *                    accent). New components opt in by reading these.
 *
 * Legacy tokens stay until every screen has been migrated; don't delete
 * them without grepping for usage.
 */

/* =====================================================
   CSS Variables — multitienda6 (new)
   ===================================================== */
:root {
    --mt-bg:           #fbfaf8;
    --mt-warm:         #f7f1e6;
    --mt-panel:        #ffffff;
    --mt-panel-soft:   #fafaf7;
    --mt-ink:          #0e0d12;
    --mt-ink-soft:     #1c1a26;
    --mt-body:         #3a3742;
    --mt-muted:        #6a6772;
    --mt-rule:         #e9e6df;
    --mt-rule-dark:    #2a2737;

    --mt-accent:       #4b3df0;
    --mt-accent-soft:  #ece9ff;
    --mt-accent-deep:  #3d33b8;
    --mt-good:         #28a76b;
    --mt-good-soft:    #dff5e8;
    --mt-warn:         #9a7d2a;
    --mt-warn-soft:    #fff3d4;

    --mt-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mt-display: 'Fraunces', Georgia, serif;
    --mt-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --mt-shadow-card: 0 1px 2px rgba(20, 15, 30, .04);
    --mt-shadow-pop:  0 18px 36px rgba(75, 61, 240, .14), 0 0 0 6px rgba(75, 61, 240, .06);
    --mt-shadow-cta:  0 12px 30px rgba(75, 61, 240, .30);
    --mt-shadow-warm: 0 20px 40px rgba(75, 61, 240, .13);
}

/* =====================================================
   CSS Variables — legacy (--wizard-*)
   ===================================================== */
:root {
    /* Colors */
    --wizard-primary: #2563eb;
    --wizard-primary-dark: #1d4ed8;
    --wizard-primary-light: #3b82f6;
    --wizard-secondary: #64748b;
    --wizard-success: #22c55e;
    --wizard-success-light: #dcfce7;
    --wizard-error: #ef4444;
    --wizard-error-light: #fee2e2;
    --wizard-warning: #f59e0b;
    
    /* Neutrals */
    --wizard-white: #ffffff;
    --wizard-black: #0f172a;
    --wizard-gray-50: #f8fafc;
    --wizard-gray-100: #f1f5f9;
    --wizard-gray-200: #e2e8f0;
    --wizard-gray-300: #cbd5e1;
    --wizard-gray-400: #94a3b8;
    --wizard-gray-500: #64748b;
    --wizard-gray-600: #475569;
    --wizard-gray-700: #334155;
    --wizard-gray-800: #1e293b;
    --wizard-gray-900: #0f172a;
    
    /* Typography */
    --wizard-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wizard-font-size-xs: 0.75rem;
    --wizard-font-size-sm: 0.875rem;
    --wizard-font-size-base: 1rem;
    --wizard-font-size-lg: 1.125rem;
    --wizard-font-size-xl: 1.25rem;
    --wizard-font-size-2xl: 1.5rem;
    --wizard-font-size-3xl: 1.875rem;
    --wizard-font-size-4xl: 2.25rem;
    --wizard-font-size-5xl: 3rem;
    
    /* Spacing */
    --wizard-space-1: 0.25rem;
    --wizard-space-2: 0.5rem;
    --wizard-space-3: 0.75rem;
    --wizard-space-4: 1rem;
    --wizard-space-5: 1.25rem;
    --wizard-space-6: 1.5rem;
    --wizard-space-8: 2rem;
    --wizard-space-10: 2.5rem;
    --wizard-space-12: 3rem;
    --wizard-space-16: 4rem;
    --wizard-space-20: 5rem;
    
    /* Borders */
    --wizard-radius-sm: 0.25rem;
    --wizard-radius: 0.5rem;
    --wizard-radius-lg: 0.75rem;
    --wizard-radius-xl: 1rem;
    --wizard-radius-full: 9999px;
    
    /* Shadows */
    --wizard-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --wizard-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --wizard-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --wizard-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --wizard-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --wizard-transition: 150ms ease;
    --wizard-transition-slow: 300ms ease;
}

/* =====================================================
   Base Styles
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

.wizard-body {
    margin: 0;
    padding: 0;
    font-family: var(--wizard-font-family);
    font-size: var(--wizard-font-size-base);
    line-height: 1.6;
    color: var(--wizard-gray-800);
    background-color: var(--wizard-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Container
   ===================================================== */
.wizard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--wizard-space-4);
}

.wizard-container-narrow {
    max-width: 640px;
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--wizard-space-4);
    font-weight: 600;
    line-height: 1.3;
    color: var(--wizard-gray-900);
}

h1 { font-size: var(--wizard-font-size-3xl); }
h2 { font-size: var(--wizard-font-size-2xl); }
h3 { font-size: var(--wizard-font-size-xl); }
h4 { font-size: var(--wizard-font-size-lg); }

p {
    margin: 0 0 var(--wizard-space-4);
}

a {
    color: var(--wizard-primary);
    text-decoration: none;
    transition: color var(--wizard-transition);
}

a:hover {
    color: var(--wizard-primary-dark);
    text-decoration: underline;
}

/* =====================================================
   Buttons
   ===================================================== */
.wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-3) var(--wizard-space-6);
    font-family: inherit;
    font-size: var(--wizard-font-size-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--wizard-radius);
    cursor: pointer;
    transition: all var(--wizard-transition);
}

.wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-btn-primary {
    color: var(--wizard-white);
    background-color: var(--wizard-primary);
}

.wizard-btn-primary:hover:not(:disabled) {
    background-color: var(--wizard-primary-dark);
    text-decoration: none;
}

.wizard-btn-secondary {
    color: var(--wizard-gray-700);
    background-color: var(--wizard-white);
    border: 1px solid var(--wizard-gray-300);
}

.wizard-btn-secondary:hover:not(:disabled) {
    background-color: var(--wizard-gray-50);
    text-decoration: none;
}

.wizard-btn-text {
    color: var(--wizard-gray-600);
    background: none;
    padding-left: 0;
    padding-right: 0;
}

.wizard-btn-text:hover:not(:disabled) {
    color: var(--wizard-primary);
    text-decoration: none;
}

.wizard-btn-small {
    padding: var(--wizard-space-2) var(--wizard-space-4);
    font-size: var(--wizard-font-size-sm);
}

.wizard-btn-large {
    padding: var(--wizard-space-4) var(--wizard-space-8);
    font-size: var(--wizard-font-size-lg);
}

.wizard-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* =====================================================
   Forms
   ===================================================== */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-6);
}

.wizard-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-2);
}

.wizard-form-group label {
    font-size: var(--wizard-font-size-sm);
    font-weight: 500;
    color: var(--wizard-gray-700);
}

.wizard-form-group label .required {
    color: var(--wizard-error);
}

.wizard-form-group input[type="text"],
.wizard-form-group input[type="email"],
.wizard-form-group input[type="tel"],
.wizard-form-group input[type="url"],
.wizard-form-group input[type="password"],
.wizard-form-group textarea,
.wizard-form-group select {
    width: 100%;
    padding: var(--wizard-space-3) var(--wizard-space-4);
    font-family: inherit;
    font-size: var(--wizard-font-size-base);
    line-height: 1.5;
    color: var(--wizard-gray-800);
    background-color: var(--wizard-white);
    border: 1px solid var(--wizard-gray-300);
    border-radius: var(--wizard-radius);
    transition: border-color var(--wizard-transition), box-shadow var(--wizard-transition);
}

.wizard-form-group input:focus,
.wizard-form-group textarea:focus,
.wizard-form-group select:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wizard-form-group.has-error input,
.wizard-form-group.has-error textarea,
.wizard-form-group.has-error select {
    border-color: var(--wizard-error);
}

.wizard-form-group.has-error .wizard-checkbox-terms .wizard-checkbox-mark {
    border-color: var(--wizard-error);
}

.wizard-error-message {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-error);
}

.wizard-help-text {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
}

.wizard-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wizard-space-4);
}

@media (max-width: 640px) {
    .wizard-form-row {
        grid-template-columns: 1fr;
    }
}

.wizard-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 var(--wizard-space-4);
}

.wizard-fieldset legend {
    font-size: var(--wizard-font-size-lg);
    font-weight: 600;
    color: var(--wizard-gray-900);
    margin-bottom: var(--wizard-space-4);
    padding-bottom: var(--wizard-space-2);
    border-bottom: 1px solid var(--wizard-gray-200);
    width: 100%;
}

.wizard-input-with-button {
    display: flex;
    gap: var(--wizard-space-2);
}

.wizard-input-with-button input {
    flex: 1;
}

.wizard-mt-2 {
    margin-top: var(--wizard-space-2);
}

/* Espacio entre idioma de comunicación y newsletter (paso 3) */
.wizard-fieldset-preferences > .wizard-form-group + .wizard-form-group {
    margin-top: var(--wizard-space-5);
}

/* Checkbox */
.wizard-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-3);
    cursor: pointer;
    font-weight: 400;
}

.wizard-checkbox input {
    display: none;
}

.wizard-checkbox-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--wizard-gray-300);
    border-radius: var(--wizard-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wizard-transition);
}

.wizard-checkbox input:checked + .wizard-checkbox-mark {
    background-color: var(--wizard-primary);
    border-color: var(--wizard-primary);
}

.wizard-checkbox input:checked + .wizard-checkbox-mark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.wizard-checkbox-label {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    line-height: 1.4;
}

.wizard-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--wizard-space-4);
    margin-top: var(--wizard-space-4);
    border-top: 1px solid var(--wizard-gray-200);
}

/* =====================================================
   Alerts
   ===================================================== */
.wizard-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--wizard-space-4);
    border-radius: var(--wizard-radius);
    margin-bottom: var(--wizard-space-4);
}

.wizard-alert-error {
    background-color: var(--wizard-error-light);
    color: var(--wizard-error);
}

.wizard-alert-success {
    background-color: var(--wizard-success-light);
    color: var(--wizard-success);
}

.wizard-alert-close {
    background: none;
    border: none;
    font-size: var(--wizard-font-size-xl);
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.wizard-alert-close:hover {
    opacity: 1;
}

/* =====================================================
   Badge
   ===================================================== */
.wizard-badge {
    display: inline-block;
    padding: var(--wizard-space-1) var(--wizard-space-3);
    font-size: var(--wizard-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--wizard-radius-full);
}

.wizard-badge-success {
    background-color: var(--wizard-success-light);
    color: #166534;
}

/* =====================================================
   Header / Progress
   ===================================================== */
.wizard-header {
    background-color: var(--wizard-white);
    border-bottom: 1px solid var(--wizard-gray-200);
    padding: var(--wizard-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wizard-header .wizard-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wizard-space-8);
}

.wizard-logo {
    font-size: var(--wizard-font-size-xl);
    font-weight: 700;
    color: var(--wizard-primary);
    text-decoration: none;
}

.wizard-logo:hover {
    text-decoration: none;
}

.wizard-progress {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wizard-space-1);
}

.wizard-progress-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--wizard-font-size-sm);
    font-weight: 600;
    border-radius: var(--wizard-radius-full);
    background-color: var(--wizard-gray-200);
    color: var(--wizard-gray-500);
    transition: all var(--wizard-transition);
}

.wizard-progress-label {
    font-size: var(--wizard-font-size-xs);
    color: var(--wizard-gray-500);
    display: none;
}

@media (min-width: 768px) {
    .wizard-progress-label {
        display: block;
    }
}

.wizard-progress-step.active .wizard-progress-number {
    background-color: var(--wizard-primary);
    color: var(--wizard-white);
}

.wizard-progress-step.completed .wizard-progress-number {
    background-color: var(--wizard-success);
    color: var(--wizard-white);
}

.wizard-progress-line {
    width: 40px;
    height: 2px;
    background-color: var(--wizard-gray-200);
    margin-bottom: 16px;
}

.wizard-progress-line.completed {
    background-color: var(--wizard-success);
}

@media (max-width: 640px) {
    .wizard-progress-line {
        width: 20px;
    }
}

/* =====================================================
   Main Content
   ===================================================== */
.wizard-main {
    padding: var(--wizard-space-10) 0;
    min-height: calc(100vh - 200px);
}

.wizard-step-header {
    text-align: center;
    margin-bottom: var(--wizard-space-10);
}

.wizard-step-header h1 {
    margin-bottom: var(--wizard-space-2);
}

.wizard-step-header p {
    color: var(--wizard-gray-600);
    margin: 0;
}

/* =====================================================
   Landing Page
   ===================================================== */
.wizard-landing {
    background-color: var(--wizard-white);
}

.wizard-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: var(--wizard-space-16) 0;
}

.wizard-hero .wizard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wizard-space-12);
    align-items: center;
}

@media (max-width: 768px) {
    .wizard-hero .wizard-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.wizard-hero-title {
    font-size: var(--wizard-font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--wizard-space-4);
}

.wizard-hero-title .highlight {
    color: var(--wizard-primary);
}

.wizard-hero-subtitle {
    font-size: var(--wizard-font-size-xl);
    color: var(--wizard-gray-600);
    margin-bottom: var(--wizard-space-8);
}

.wizard-hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-4);
}

@media (max-width: 768px) {
    .wizard-hero-cta {
        align-items: center;
    }
}

.wizard-hero-note {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
}

/* Mockup */
.wizard-mockup {
    background-color: var(--wizard-white);
    border-radius: var(--wizard-radius-lg);
    box-shadow: var(--wizard-shadow-xl);
    overflow: hidden;
}

.wizard-mockup-header {
    display: flex;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-3) var(--wizard-space-4);
    background-color: var(--wizard-gray-100);
}

.wizard-mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--wizard-radius-full);
    background-color: var(--wizard-gray-300);
}

.wizard-mockup-content {
    padding: var(--wizard-space-4);
}

.wizard-mockup-nav {
    height: 40px;
    background-color: var(--wizard-gray-100);
    border-radius: var(--wizard-radius-sm);
    margin-bottom: var(--wizard-space-4);
}

.wizard-mockup-hero {
    height: 100px;
    background: linear-gradient(135deg, var(--wizard-primary-light), var(--wizard-primary));
    border-radius: var(--wizard-radius);
    margin-bottom: var(--wizard-space-4);
}

.wizard-mockup-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wizard-space-4);
}

.wizard-mockup-product {
    height: 80px;
    background-color: var(--wizard-gray-100);
    border-radius: var(--wizard-radius);
}

@media (max-width: 768px) {
    .wizard-hero-title {
        font-size: var(--wizard-font-size-3xl);
    }
    
    .wizard-hero-image {
        display: none;
    }
}

/* Benefits */
.wizard-benefits {
    padding: var(--wizard-space-20) 0;
    background-color: var(--wizard-white);
}

.wizard-section-title {
    text-align: center;
    margin-bottom: var(--wizard-space-12);
}

.wizard-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wizard-space-8);
}

@media (max-width: 1024px) {
    .wizard-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wizard-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-benefit-card {
    text-align: center;
    padding: var(--wizard-space-6);
}

.wizard-benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--wizard-space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wizard-primary);
    border-radius: var(--wizard-radius-lg);
}

.wizard-benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--wizard-white);
}

.wizard-benefit-card h3 {
    font-size: var(--wizard-font-size-lg);
    margin-bottom: var(--wizard-space-2);
}

.wizard-benefit-card p {
    color: var(--wizard-gray-600);
    font-size: var(--wizard-font-size-sm);
    margin: 0;
}

/* How it works */
.wizard-how-it-works {
    padding: var(--wizard-space-20) 0;
    background-color: var(--wizard-gray-50);
}

.wizard-steps-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--wizard-space-4);
    flex-wrap: wrap;
}

.wizard-step-preview {
    text-align: center;
    max-width: 200px;
}

/* Solo landing: no usar .wizard-step-number suelto (éxito del wizard reutiliza la clase) */
.wizard-step-preview .wizard-step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--wizard-space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--wizard-font-size-xl);
    font-weight: 700;
    color: var(--wizard-white);
    background-color: var(--wizard-primary);
    border-radius: var(--wizard-radius-full);
}

.wizard-step-preview h3 {
    font-size: var(--wizard-font-size-base);
    margin-bottom: var(--wizard-space-2);
}

.wizard-step-preview p {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    margin: 0;
}

.wizard-step-connector {
    width: 60px;
    height: 2px;
    background-color: var(--wizard-gray-300);
    margin-top: 24px;
}

@media (max-width: 768px) {
    .wizard-step-connector {
        display: none;
    }
    
    .wizard-steps-preview {
        flex-direction: column;
        align-items: center;
    }
}

/* Pricing */
.wizard-pricing {
    padding: var(--wizard-space-20) 0;
    background-color: var(--wizard-white);
}

.wizard-pricing-cards {
    display: flex;
    justify-content: center;
    gap: var(--wizard-space-8);
    flex-wrap: wrap;
}

.wizard-pricing-card {
    background-color: var(--wizard-white);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-xl);
    padding: var(--wizard-space-8);
    width: 300px;
    text-align: center;
    position: relative;
}

.wizard-pricing-featured {
    border-color: var(--wizard-primary);
    box-shadow: var(--wizard-shadow-lg);
}

.wizard-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--wizard-primary);
    color: var(--wizard-white);
    padding: var(--wizard-space-1) var(--wizard-space-4);
    border-radius: var(--wizard-radius-full);
    font-size: var(--wizard-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.wizard-pricing-card h3 {
    font-size: var(--wizard-font-size-xl);
    margin-bottom: var(--wizard-space-4);
}

.wizard-pricing-price {
    margin-bottom: var(--wizard-space-6);
}

.wizard-price-amount {
    font-size: var(--wizard-font-size-4xl);
    font-weight: 700;
    color: var(--wizard-gray-900);
}

.wizard-price-period {
    font-size: var(--wizard-font-size-base);
    color: var(--wizard-gray-500);
}

.wizard-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--wizard-space-6);
    text-align: left;
}

.wizard-pricing-features li {
    padding: var(--wizard-space-2) 0;
    padding-left: var(--wizard-space-6);
    position: relative;
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
}

.wizard-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--wizard-success);
    font-weight: 600;
}

.wizard-pricing-note {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-primary);
    margin: 0;
}

/* CTA Section */
.wizard-cta-section {
    padding: var(--wizard-space-20) 0;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    text-align: center;
    color: var(--wizard-white);
}

.wizard-cta-section h2 {
    color: var(--wizard-white);
    font-size: var(--wizard-font-size-3xl);
}

.wizard-cta-section p {
    font-size: var(--wizard-font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--wizard-space-8);
}

.wizard-cta-section .wizard-btn-primary {
    background-color: var(--wizard-white);
    color: var(--wizard-primary);
}

.wizard-cta-section .wizard-btn-primary:hover {
    background-color: var(--wizard-gray-100);
}

/* Footer */
.wizard-footer {
    padding: var(--wizard-space-8) 0;
    background-color: var(--wizard-gray-900);
    color: var(--wizard-gray-400);
    text-align: center;
}

.wizard-footer p {
    margin: 0;
    font-size: var(--wizard-font-size-sm);
}

/* =====================================================
   File Upload
   ===================================================== */
.wizard-upload-area {
    border: 2px dashed var(--wizard-gray-300);
    border-radius: var(--wizard-radius-lg);
    padding: var(--wizard-space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--wizard-transition);
}

.wizard-upload-area:hover,
.wizard-upload-area.dragover {
    border-color: var(--wizard-primary);
    background-color: var(--wizard-gray-50);
}

.wizard-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--wizard-space-4);
    color: var(--wizard-gray-400);
}

.wizard-upload-text {
    margin: 0 0 var(--wizard-space-2);
    color: var(--wizard-gray-600);
}

.wizard-upload-link {
    color: var(--wizard-primary);
    font-weight: 500;
}

.wizard-upload-hint {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
    margin: 0;
}

.wizard-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wizard-space-2);
    margin-top: var(--wizard-space-4);
}

.wizard-file-preview {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background-color: var(--wizard-gray-100);
    border-radius: var(--wizard-radius);
    font-size: var(--wizard-font-size-sm);
}

.wizard-file-icon svg {
    width: 16px;
    height: 16px;
    color: var(--wizard-gray-500);
}

.wizard-file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-file-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--wizard-gray-400);
    transition: color var(--wizard-transition);
}

.wizard-file-remove:hover {
    color: var(--wizard-error);
}

.wizard-file-remove svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   AI Suggestions
   ===================================================== */
.wizard-ai-suggestions {
    padding: var(--wizard-space-4);
    background-color: var(--wizard-gray-50);
    border-radius: var(--wizard-radius);
    margin-top: var(--wizard-space-4);
}

.wizard-ai-suggestions h4 {
    font-size: var(--wizard-font-size-sm);
    margin-bottom: var(--wizard-space-3);
    color: var(--wizard-gray-600);
}

#ai-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wizard-space-2);
}

.wizard-suggestion-btn {
    padding: var(--wizard-space-2) var(--wizard-space-4);
    background-color: var(--wizard-white);
    border: 1px solid var(--wizard-gray-300);
    border-radius: var(--wizard-radius-full);
    font-size: var(--wizard-font-size-sm);
    cursor: pointer;
    transition: all var(--wizard-transition);
}

.wizard-suggestion-btn:hover {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
}

/* =====================================================
   Review Page
   ===================================================== */
.wizard-review-section {
    background-color: var(--wizard-white);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-lg);
    padding: var(--wizard-space-6);
    margin-bottom: var(--wizard-space-6);
}

.wizard-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--wizard-space-4);
    padding-bottom: var(--wizard-space-3);
    border-bottom: 1px solid var(--wizard-gray-100);
}

.wizard-review-header h3 {
    margin: 0;
    font-size: var(--wizard-font-size-lg);
}

.wizard-edit-link {
    font-size: var(--wizard-font-size-sm);
}

.wizard-review-content {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-3);
}

.wizard-review-item {
    display: flex;
    gap: var(--wizard-space-4);
}

.wizard-review-label {
    flex-shrink: 0;
    width: 140px;
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
}

.wizard-review-value {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-800);
}

/* Plan Selection */
.wizard-pricing-selection {
    background-color: var(--wizard-gray-50);
}

.wizard-pricing-selection h3 {
    margin-bottom: var(--wizard-space-4);
}

.wizard-plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--wizard-space-4);
}

.wizard-plan-option {
    cursor: pointer;
}

.wizard-plan-option input {
    display: none;
}

.wizard-plan-card {
    padding: var(--wizard-space-6);
    background-color: var(--wizard-white);
    border: 2px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-lg);
    text-align: center;
    transition: all var(--wizard-transition);
}

.wizard-plan-option input:checked + .wizard-plan-card {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-plan-card h4 {
    margin-bottom: var(--wizard-space-2);
}

.wizard-plan-price {
    margin-bottom: var(--wizard-space-2);
}

.wizard-plan-price .amount {
    font-size: var(--wizard-font-size-2xl);
    font-weight: 700;
    color: var(--wizard-gray-900);
}

.wizard-plan-price .period {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
}

.wizard-plan-slots,
.wizard-plan-note {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
    margin: 0;
}

/* Terms */
.wizard-terms-section {
    padding: var(--wizard-space-6);
    background-color: var(--wizard-gray-50);
    border-radius: var(--wizard-radius-lg);
}

/* =====================================================
   Modal
   ===================================================== */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--wizard-space-4);
}

.wizard-modal-content {
    background-color: var(--wizard-white);
    border-radius: var(--wizard-radius-xl);
    padding: var(--wizard-space-8);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.wizard-modal-close {
    position: absolute;
    top: var(--wizard-space-4);
    right: var(--wizard-space-4);
    background: none;
    border: none;
    font-size: var(--wizard-font-size-2xl);
    cursor: pointer;
    color: var(--wizard-gray-400);
}

.wizard-modal-close:hover {
    color: var(--wizard-gray-600);
}

.wizard-modal-content h2 {
    margin-bottom: var(--wizard-space-6);
}

.wizard-modal-body {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    margin-bottom: var(--wizard-space-6);
}

.wizard-modal-body h3 {
    font-size: var(--wizard-font-size-base);
    color: var(--wizard-gray-800);
    margin-top: var(--wizard-space-6);
    margin-bottom: var(--wizard-space-2);
}

.wizard-modal-body h3:first-child {
    margin-top: 0;
}

/* =====================================================
   Success Page
   ===================================================== */
.wizard-success-page {
    background-color: var(--wizard-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wizard-success-page .wizard-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.wizard-success-content {
    text-align: center;
    background-color: var(--wizard-white);
    border-radius: var(--wizard-radius-xl);
    padding: var(--wizard-space-12);
    box-shadow: var(--wizard-shadow-lg);
}

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

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

.wizard-success-content h1 {
    margin-bottom: var(--wizard-space-4);
}

.wizard-success-message {
    font-size: var(--wizard-font-size-lg);
    color: var(--wizard-gray-600);
    margin-bottom: var(--wizard-space-8);
}

.wizard-success-details {
    background-color: var(--wizard-gray-50);
    border-radius: var(--wizard-radius);
    padding: var(--wizard-space-6);
    margin-bottom: var(--wizard-space-8);
    text-align: left;
}

.wizard-success-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wizard-space-4);
    padding: var(--wizard-space-3) 0;
    border-bottom: 1px solid var(--wizard-gray-200);
}

.wizard-success-detail:last-child {
    border-bottom: none;
}

.wizard-success-detail .label {
    color: var(--wizard-gray-500);
    font-size: var(--wizard-font-size-sm);
}

.wizard-success-detail .value {
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
}

.wizard-success-steps {
    text-align: left;
    margin-bottom: var(--wizard-space-8);
}

.wizard-success-steps h2 {
    text-align: center;
    font-size: var(--wizard-font-size-xl);
    margin-bottom: var(--wizard-space-6);
}

.wizard-next-steps {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-4);
}

.wizard-next-step {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-4);
    padding: var(--wizard-space-4);
    background-color: var(--wizard-gray-50);
    border-radius: var(--wizard-radius);
}

.wizard-next-step .wizard-step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wizard-primary);
    border-radius: var(--wizard-radius);
}

.wizard-next-step .wizard-step-icon svg {
    width: 20px;
    height: 20px;
    color: var(--wizard-white);
}

.wizard-next-step .wizard-step-content h3 {
    font-size: var(--wizard-font-size-base);
    margin-bottom: var(--wizard-space-1);
}

.wizard-next-step .wizard-step-content p {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    margin: 0;
}

/* Seuraavat vaiheet (éxito): fila con número + texto; sin margin:auto del landing */
.wizard-next-steps-compact {
    width: 100%;
}

.wizard-next-steps-compact .wizard-next-step {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-4);
    padding: var(--wizard-space-4);
    background-color: var(--wizard-gray-50);
    border-radius: var(--wizard-radius);
    margin-bottom: var(--wizard-space-3);
    width: 100%;
    box-sizing: border-box;
}

.wizard-next-steps-compact .wizard-next-step:last-child {
    margin-bottom: 0;
}

.wizard-next-steps-compact .wizard-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    background: var(--wizard-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
}

.wizard-next-steps-compact .wizard-step-active .wizard-step-number {
    background: var(--wizard-primary);
    color: var(--wizard-white);
}

.wizard-next-steps-compact .wizard-step-content {
    flex: 1;
    min-width: 0;
}

.wizard-next-steps-compact .wizard-step-content h3 {
    margin: 0 0 var(--wizard-space-1);
    font-size: var(--wizard-font-size-base);
}

.wizard-next-steps-compact .wizard-step-content p {
    margin: 0;
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    line-height: 1.45;
}

.wizard-success-contact {
    margin-bottom: var(--wizard-space-8);
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
}

.wizard-success-contact p {
    margin: 0;
}

.wizard-success-actions {
    display: flex;
    justify-content: center;
}

/* =====================================================
   Spinner
   ===================================================== */
.wizard-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--wizard-radius-full);
    animation: wizard-spin 0.75s linear infinite;
}

@keyframes wizard-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Utilities
   ===================================================== */
.wizard-error {
    color: var(--wizard-error);
    padding: var(--wizard-space-8);
    text-align: center;
}

/* =====================================================
   Language Selector
   ===================================================== */
.wizard-lang-selector {
    position: fixed;
    top: var(--wizard-space-4);
    right: var(--wizard-space-4);
    z-index: 1000;
}

.wizard-header .wizard-lang-selector {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
}

.wizard-lang-current {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background: var(--wizard-white);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius);
    cursor: pointer;
    font-size: var(--wizard-font-size-sm);
    font-weight: 500;
    color: var(--wizard-gray-700);
    transition: all var(--wizard-transition);
}

.wizard-lang-current:hover {
    background: var(--wizard-gray-50);
    border-color: var(--wizard-gray-300);
}

.wizard-lang-flag {
    font-size: 1.1em;
}

.wizard-lang-code {
    font-weight: 600;
}

.wizard-lang-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: transform var(--wizard-transition);
}

.wizard-lang-selector:hover .wizard-lang-arrow,
.wizard-lang-selector:focus-within .wizard-lang-arrow {
    transform: rotate(180deg);
}

.wizard-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--wizard-space-1);
    background: var(--wizard-white);
    border: 1px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius);
    box-shadow: var(--wizard-shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--wizard-transition);
}

.wizard-lang-selector:hover .wizard-lang-dropdown,
.wizard-lang-selector:focus-within .wizard-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wizard-lang-option {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    text-decoration: none;
    color: var(--wizard-gray-700);
    font-size: var(--wizard-font-size-sm);
    transition: background var(--wizard-transition);
}

.wizard-lang-option:first-child {
    border-radius: var(--wizard-radius) var(--wizard-radius) 0 0;
}

.wizard-lang-option:last-child {
    border-radius: 0 0 var(--wizard-radius) var(--wizard-radius);
}

.wizard-lang-option:hover {
    background: var(--wizard-gray-50);
}

.wizard-lang-option.active {
    background: var(--wizard-primary-light);
    color: var(--wizard-primary);
}

.wizard-lang-name {
    flex: 1;
}

/* =====================================================
   Responsive Language Selector
   ===================================================== */
@media (max-width: 768px) {
    .wizard-lang-selector {
        top: var(--wizard-space-2);
        right: var(--wizard-space-2);
    }
    
    .wizard-lang-current {
        padding: var(--wizard-space-1) var(--wizard-space-2);
    }
    
    .wizard-lang-code {
        display: none;
    }
    
    .wizard-header .wizard-lang-code {
        display: inline;
    }
}

/* =====================================================
   Checkbox Grid for Shop Languages
   ===================================================== */
.wizard-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wizard-space-3);
    margin-top: var(--wizard-space-2);
}

@media (max-width: 480px) {
    .wizard-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-checkbox-grid .wizard-checkbox {
    padding: var(--wizard-space-3);
    background: var(--wizard-gray-50);
    border: 2px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-md);
    transition: all 0.15s;
}

.wizard-checkbox-grid .wizard-checkbox:hover {
    border-color: var(--wizard-primary-light);
}

.wizard-checkbox-grid .wizard-checkbox:has(input:checked) {
    background: var(--wizard-primary-light);
    border-color: var(--wizard-primary);
}

.wizard-field-help {
    font-size: var(--wizard-font-sm);
    color: var(--wizard-gray-500);
    margin-top: var(--wizard-space-1);
    line-height: 1.5;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.wizard-mb-3 {
    margin-bottom: var(--wizard-space-3);
}

.wizard-flex-center {
    display: flex;
    align-items: center;
}

.wizard-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wizard-space-4);
    align-items: start;
}

@media (max-width: 640px) {
    .wizard-form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Step 3: Category Editor
   ===================================================== */

.wizard-ai-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    padding: var(--wizard-space-5);
    margin-bottom: var(--wizard-space-6);
}

.wizard-ai-banner-success { border-color: var(--wizard-success); }

.wizard-ai-banner-content {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-4);
    flex-wrap: wrap;
}

.wizard-ai-banner-icon { font-size: 2rem; flex-shrink: 0; }

.wizard-ai-banner-text { flex: 1; min-width: 200px; }
.wizard-ai-banner-text strong { display: block; margin-bottom: 2px; color: var(--wizard-text-primary); }
.wizard-ai-banner-text span { font-size: 0.875rem; color: var(--wizard-text-secondary); }

.wizard-btn-ai { white-space: nowrap; flex-shrink: 0; }

.wizard-ai-loading {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-3);
    padding-top: var(--wizard-space-3);
    color: var(--wizard-text-secondary);
    font-size: 0.875rem;
}

.wizard-spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--wizard-border);
    border-top-color: var(--wizard-primary);
    border-radius: 50%;
    animation: wizard-spin 0.6s linear infinite;
}
@keyframes wizard-spin { to { transform: rotate(360deg); } }

.wizard-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--wizard-space-5);
    margin-bottom: var(--wizard-space-5);
}

.wizard-categories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--wizard-space-8) var(--wizard-space-4);
    color: var(--wizard-text-secondary);
    background: var(--wizard-bg-secondary);
    border-radius: var(--wizard-radius-lg);
    border: 2px dashed var(--wizard-border);
}

.wizard-category-card {
    background: var(--wizard-bg-primary);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.wizard-category-card:hover { border-color: var(--wizard-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.wizard-category-card.wizard-dragging { opacity: 0.5; border-color: var(--wizard-primary); }
.wizard-category-card.wizard-drag-above { border-top: 3px solid var(--wizard-primary); }
.wizard-category-card.wizard-drag-below { border-bottom: 3px solid var(--wizard-primary); }

.wizard-category-header {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-3) var(--wizard-space-4);
    border-bottom: 1px solid var(--wizard-border);
    background: var(--wizard-bg-secondary);
}

.wizard-category-drag { cursor: grab; color: var(--wizard-text-muted); font-size: 1.2rem; user-select: none; flex-shrink: 0; }
.wizard-category-drag:active { cursor: grabbing; }

.wizard-category-name-input {
    flex: 1; border: none; background: transparent;
    font-size: 1rem; font-weight: 600; color: var(--wizard-text-primary);
    padding: var(--wizard-space-1) var(--wizard-space-2); border-radius: var(--wizard-radius);
}
.wizard-category-name-input:focus { outline: none; background: var(--wizard-bg-primary); box-shadow: 0 0 0 2px var(--wizard-primary-light); }

.wizard-category-remove {
    background: none; border: none; color: var(--wizard-text-muted);
    font-size: 1.25rem; cursor: pointer; padding: 2px 6px;
    border-radius: var(--wizard-radius); flex-shrink: 0; line-height: 1;
}
.wizard-category-remove:hover { color: var(--wizard-error); background: rgba(239,68,68,0.1); }

.wizard-category-desc { padding: var(--wizard-space-2) var(--wizard-space-4); }

.wizard-inline-edit {
    width: 100%; border: none; background: transparent;
    font-size: 0.8125rem; color: var(--wizard-text-secondary);
    padding: var(--wizard-space-1) var(--wizard-space-2); border-radius: var(--wizard-radius);
}
.wizard-inline-edit:focus { outline: none; background: var(--wizard-bg-secondary); box-shadow: 0 0 0 2px var(--wizard-primary-light); }

.wizard-category-subcats { display: flex; flex-wrap: wrap; gap: var(--wizard-space-2); padding: var(--wizard-space-2) var(--wizard-space-4); }

.wizard-subcategory-tag {
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--wizard-bg-secondary); border: 1px solid var(--wizard-border);
    border-radius: 999px; padding: 2px 4px 2px 8px; font-size: 0.75rem;
}
.wizard-subcategory-tag .wizard-inline-edit { width: auto; min-width: 60px; max-width: 120px; padding: 1px 4px; font-size: 0.75rem; }

.wizard-tag-remove { background: none; border: none; color: var(--wizard-text-muted); cursor: pointer; font-size: 0.875rem; padding: 0 4px; line-height: 1; }
.wizard-tag-remove:hover { color: var(--wizard-error); }

.wizard-subcategory-add {
    background: none; border: 1px dashed var(--wizard-border);
    border-radius: 999px; padding: 2px 10px; font-size: 0.75rem;
    color: var(--wizard-text-muted); cursor: pointer;
}
.wizard-subcategory-add:hover { border-color: var(--wizard-primary); color: var(--wizard-primary); }

.wizard-category-products { padding: var(--wizard-space-2) var(--wizard-space-4); }
.wizard-products-toggle { background: none; border: none; font-size: 0.8125rem; color: var(--wizard-primary); cursor: pointer; padding: 0; }
.wizard-products-toggle:hover { text-decoration: underline; }
.wizard-products-list { margin-top: var(--wizard-space-2); }

.wizard-sample-product {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--wizard-space-1) 0; font-size: 0.8125rem;
    border-bottom: 1px solid var(--wizard-border);
}
.wizard-sample-product:last-child { border-bottom: none; }
.wizard-sample-name { color: var(--wizard-text-primary); }
.wizard-sample-price { color: var(--wizard-text-secondary); font-weight: 500; }

.wizard-category-settings {
    padding: var(--wizard-space-3) var(--wizard-space-4);
    border-top: 1px solid var(--wizard-border);
    background: var(--wizard-bg-secondary);
}

.wizard-settings-title {
    font-size: 0.75rem; font-weight: 600; color: var(--wizard-text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--wizard-space-2);
}

.wizard-setting-toggle {
    display: flex; align-items: center; gap: var(--wizard-space-2);
    padding: var(--wizard-space-1) 0; cursor: pointer; font-size: 0.8125rem;
}
.wizard-setting-checkbox { display: none; }

.wizard-toggle-slider {
    position: relative; width: 36px; height: 20px;
    background: #cbd5e1; border-radius: 10px; transition: background 0.2s; flex-shrink: 0;
}
.wizard-toggle-slider::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; background: white; border-radius: 50%;
    transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wizard-setting-checkbox:checked + .wizard-toggle-slider { background: var(--wizard-primary); }
.wizard-setting-checkbox:checked + .wizard-toggle-slider::after { transform: translateX(16px); }

.wizard-setting-label { color: var(--wizard-text-primary); font-size: 0.8125rem; }


.wizard-setting-select { display: flex; align-items: center; gap: var(--wizard-space-2); padding: var(--wizard-space-1) 0; font-size: 0.8125rem; }
.wizard-setting-select-input {
    padding: 3px 8px; border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius); font-size: 0.8125rem;
    background: var(--wizard-bg-primary); color: var(--wizard-text-primary);
}

.wizard-category-reasoning { padding: var(--wizard-space-2) var(--wizard-space-4) var(--wizard-space-3); font-size: 0.75rem; color: var(--wizard-text-muted); font-style: italic; }
.wizard-reasoning-icon { font-style: normal; }

.wizard-btn-add-category { display: flex; align-items: center; gap: var(--wizard-space-2); margin-bottom: var(--wizard-space-6); }
.wizard-btn-icon { font-size: 1.25rem; font-weight: 300; }

/* =====================================================
   Step 4: Shop Preview
   ===================================================== */

.wizard-preview-frame {
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    overflow: hidden;
    margin-bottom: var(--wizard-space-6);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.wizard-preview-toolbar {
    display: flex; align-items: center; gap: var(--wizard-space-3);
    padding: var(--wizard-space-2) var(--wizard-space-4);
    background: #f1f5f9; border-bottom: 1px solid var(--wizard-border);
}
.wizard-preview-dots { display: flex; gap: 6px; }
.wizard-dot { width: 12px; height: 12px; border-radius: 50%; }
.wizard-dot-red { background: #ef4444; }
.wizard-dot-yellow { background: #f59e0b; }
.wizard-dot-green { background: #22c55e; }

.wizard-preview-url {
    flex: 1; background: white; border-radius: 6px;
    padding: 4px 12px; font-size: 0.8125rem; color: var(--wizard-text-secondary);
}

.wizard-preview-content { background: white; min-height: 450px; }

/* Legacy preview-* classes removed — now uses shared ilp-product-card.css
   with IlpProductRenderer inside .ilp-shop.ilp-shop--preview scope. */

.wizard-preview-actions { display: flex; justify-content: center; margin-bottom: var(--wizard-space-4); }

@media (max-width: 768px) {
    .wizard-categories-grid { grid-template-columns: 1fr; }
}

/* URL Analysis Results */
.wizard-url-analysis {
    margin-top: var(--wizard-space-3);
    border: 1px solid #d1fae5;
    border-radius: 10px;
    background: #f0fdf4;
    overflow: hidden;
}

.wizard-url-analysis-header {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background: #dcfce7;
    font-size: 0.875rem;
    color: #166534;
}

.wizard-url-analysis-icon { font-size: 1.1rem; }

.wizard-url-analysis-body {
    padding: var(--wizard-space-3);
}

.wizard-progress-body {
    padding: var(--wizard-space-3);
}

.wizard-progress-bar {
    position: relative;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--wizard-space-3);
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    border-radius: 12px;
    transition: width 0.4s ease;
    min-width: 0;
}

.wizard-progress-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    pointer-events: none;
}

.wizard-progress-time {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    min-height: 1.2em;
}

/* =====================================================
   Scrape Progress - Elegant animated progress panel
   ===================================================== */
.wizard-scrape-progress {
    margin-top: var(--wizard-space-3);
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    border: 1px solid #bbf7d0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

.wizard-scrape-progress-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 12px;
}

.wizard-scrape-spinner {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.wizard-scrape-spinner-svg {
    width: 100%;
    height: 100%;
    animation: wizard-scrape-rotate 1.4s linear infinite;
}

.wizard-scrape-spinner-svg circle {
    stroke: #059669;
    stroke-dasharray: 80, 200;
    stroke-dashoffset: 0;
    animation: wizard-scrape-dash 1.4s ease-in-out infinite;
}

@keyframes wizard-scrape-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes wizard-scrape-dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 80, 200; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 80, 200; stroke-dashoffset: -125; }
}

.wizard-scrape-phase {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.wizard-scrape-phase strong {
    font-size: 1rem;
    color: #065f46;
    letter-spacing: -0.01em;
}

.wizard-scrape-phase-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 2px;
    align-items: center;
}

.wizard-scrape-phase-dots::before {
    content: '...';
    display: inline-block;
    width: 1.2em;
    text-align: left;
    overflow: hidden;
    animation: wizard-dots-clip 1.5s steps(4, end) infinite;
    font-weight: 700;
    color: #059669;
}

@keyframes wizard-dots-clip {
    0% { width: 0; }
    25% { width: 0.4em; }
    50% { width: 0.8em; }
    75% { width: 1.2em; }
    100% { width: 0; }
}

.wizard-scrape-progress-body {
    padding: 0 24px 20px;
}

.wizard-scrape-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wizard-scrape-bar-track {
    flex: 1;
    position: relative;
    height: 8px;
    background: #d1fae5;
    border-radius: 4px;
    overflow: hidden;
}

.wizard-scrape-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.wizard-scrape-bar-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: wizard-scrape-shimmer 2s ease-in-out infinite;
}

@keyframes wizard-scrape-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.wizard-scrape-bar-pct {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #065f46;
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wizard-scrape-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.wizard-scrape-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: white;
    border-radius: 10px;
    border: 1px solid #d1fae5;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wizard-scrape-stat.wizard-stat-active {
    border-color: #059669;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.15);
}

.wizard-scrape-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #065f46;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-scrape-stat-value.wizard-stat-bump {
    animation: wizard-stat-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizard-stat-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wizard-scrape-stat-label {
    font-size: 0.6875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.wizard-scrape-time {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    min-height: 1.2em;
}

@media (max-width: 480px) {
    .wizard-scrape-progress-header { padding: 16px 16px 8px; }
    .wizard-scrape-progress-body { padding: 0 16px 16px; }
    .wizard-scrape-stats { gap: 8px; }
    .wizard-scrape-stat { padding: 8px 4px; }
    .wizard-scrape-stat-value { font-size: 1.25rem; }
}

.wizard-analysis-section {
    margin-bottom: var(--wizard-space-3);
}

.wizard-analysis-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #166534;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--wizard-space-2);
}

.wizard-analysis-summary {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.wizard-analysis-stats {
    display: flex;
    gap: var(--wizard-space-3);
    padding: var(--wizard-space-3) 0;
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
    margin-bottom: var(--wizard-space-3);
    flex-wrap: wrap;
}

.wizard-analysis-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.wizard-analysis-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #166534;
}

.wizard-analysis-stat-label {
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wizard-analysis-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--wizard-space-2);
}

.wizard-analysis-tags-label {
    font-size: 0.8125rem;
    color: #1e293b;
    margin-right: 4px;
}

.wizard-analysis-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #166534;
}

.wizard-analysis-tag-brand {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.wizard-analysis-suggest {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    margin-top: var(--wizard-space-3);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #92400e;
}

.wizard-analysis-suggest-icon { font-size: 1rem; }

.wizard-analysis-suggest .wizard-btn {
    margin-left: auto;
    white-space: nowrap;
}

.wizard-btn-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: white !important;
}

.wizard-analysis-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0;
}

/* AI error banner */
.wizard-ai-error {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    border-radius: 0 0 12px 12px;
    font-size: 0.875rem;
    color: #991b1b;
}

.wizard-ai-error-icon { font-size: 1.1rem; }

.wizard-ai-error .wizard-btn-text {
    margin-left: auto;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* =====================================================
   Product Import Results (step 2)
   ===================================================== */

.wizard-import-results {
    margin-top: var(--wizard-space-3);
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    background: #f0fdf4;
    overflow: hidden;
}

.wizard-import-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--wizard-space-3);
    background: #dcfce7;
    border-bottom: 1px solid #a7f3d0;
}

.wizard-import-actions-mini {
    display: flex;
    gap: var(--wizard-space-2);
}

.wizard-import-stats {
    display: flex;
    gap: var(--wizard-space-3);
    padding: var(--wizard-space-3);
    flex-wrap: wrap;
}

.wizard-import-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: var(--wizard-space-2);
    background: white;
    border-radius: 8px;
    border: 1px solid #d1fae5;
}

.wizard-import-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46;
}

.wizard-import-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.wizard-import-categories {
    padding: 0 var(--wizard-space-3) var(--wizard-space-2);
}

.wizard-import-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.wizard-import-cat-row:last-child { border-bottom: none; }

.wizard-import-cat-name {
    font-weight: 500;
    color: #1f2937;
}

.wizard-import-cat-count {
    color: #6b7280;
    font-size: 0.8125rem;
}

.wizard-import-review {
    padding: 0 var(--wizard-space-3) var(--wizard-space-3);
}

.wizard-import-review-header {
    padding: var(--wizard-space-2) 0;
    border-top: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.875rem;
}

.wizard-import-review-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wizard-import-review-item {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #fde68a;
    font-size: 0.8125rem;
}

.wizard-import-review-name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-import-review-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.wizard-import-badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.wizard-import-badge-bad {
    background: #fee2e2;
    color: #991b1b;
}

.wizard-import-review-missing {
    color: #9ca3af;
    font-size: 0.75rem;
    white-space: nowrap;
}

.wizard-import-review-more {
    text-align: center;
    color: #6b7280;
    font-size: 0.8125rem;
    padding: var(--wizard-space-2);
}

/* Catalog file upload */
.wizard-catalog-upload {
    margin-top: var(--wizard-space-3);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    padding: var(--wizard-space-4);
}

.wizard-catalog-upload-header {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-3);
    margin-bottom: var(--wizard-space-3);
}

.wizard-catalog-upload-header .wizard-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--wizard-primary, #4f46e5);
}

.wizard-catalog-upload-header strong {
    display: block;
    margin-bottom: 4px;
}

.wizard-catalog-upload-body {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-3);
    flex-wrap: wrap;
}

.wizard-catalog-upload-body .wizard-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wizard-catalog-preview {
    margin-top: var(--wizard-space-3);
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    background: #f0fdf4;
    overflow: hidden;
}

.wizard-catalog-preview .wizard-import-header {
    background: #dcfce7;
    border-bottom: 1px solid #a7f3d0;
}

/* Partial scrape results (pages/style found, no products) */
.wizard-import-results-partial {
    border-color: #93c5fd;
    background: #eff6ff;
}

.wizard-import-partial {
    padding: var(--wizard-space-2) 0;
}

.wizard-import-partial-header {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-2);
    margin-bottom: var(--wizard-space-3);
}

.wizard-import-partial-header .wizard-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #3b82f6;
    margin-top: 1px;
}

.wizard-import-partial-header strong {
    display: block;
    color: #1e40af;
    margin-bottom: 2px;
}

.wizard-import-partial-header .wizard-help-text {
    color: #3b82f6;
    margin: 0;
}

.wizard-import-partial-found {
    display: flex;
    gap: var(--wizard-space-4);
    padding: var(--wizard-space-3);
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.wizard-color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    vertical-align: middle;
}

/* Image resolver section */
.wizard-image-resolve {
    margin-top: var(--wizard-space-3);
    padding: var(--wizard-space-3);
    border-top: 1px solid #e5e7eb;
}

.wizard-image-resolve-header {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-2);
    margin-bottom: var(--wizard-space-3);
}

.wizard-image-resolve-header .wizard-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #f59e0b;
    margin-top: 2px;
}

.wizard-image-resolve-header strong {
    display: block;
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.wizard-image-resolve-header .wizard-help-text {
    margin: 0;
    font-size: 0.8125rem;
}

.wizard-image-resolve-result {
    margin-top: var(--wizard-space-2);
    padding: var(--wizard-space-2) var(--wizard-space-3);
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
    font-size: 0.875rem;
}

/* Toast notifications */
.wizard-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.wizard-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.wizard-toast-info {
    background: #2563eb;
}

.wizard-toast-success {
    background: #16a34a;
}

.wizard-toast-warning {
    background: #d97706;
}

.wizard-toast-error {
    background: #dc2626;
}

@media (max-width: 480px) {
    .wizard-toast {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 16px;
    }
}

/* Compact upload area for lower section */
.wizard-upload-area-compact {
    padding: var(--wizard-space-3);
}

.wizard-upload-area-compact .wizard-upload-icon {
    width: 28px;
    height: 28px;
}

.wizard-upload-area-compact .wizard-upload-text {
    font-size: 0.875rem;
    margin: var(--wizard-space-1) 0;
}

/* =====================================================
   Step 4 - Account trial note
   ===================================================== */
.wizard-trial-note {
    text-align: center;
    color: var(--wizard-gray-500);
    font-size: var(--wizard-font-size-sm);
    margin: var(--wizard-space-4) 0 var(--wizard-space-2);
}

/* =====================================================
   Step 3 - Theme picker
   ===================================================== */
.wizard-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--wizard-space-5);
    margin: var(--wizard-space-6) 0 var(--wizard-space-8);
}

.wizard-theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-lg);
    background: var(--wizard-white);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    font-family: inherit;
    color: inherit;
    text-align: left;
    transition: border-color var(--wizard-transition), transform var(--wizard-transition), box-shadow var(--wizard-transition);
}

.wizard-theme-card:hover {
    border-color: var(--wizard-gray-400);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-md);
}

.wizard-theme-card.is-selected {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wizard-theme-card:focus-visible {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.wizard-theme-badge {
    position: absolute;
    top: var(--wizard-space-3);
    right: var(--wizard-space-3);
    z-index: 1;
    padding: 2px 8px;
    border-radius: var(--wizard-radius-full);
    background: var(--wizard-primary);
    color: var(--wizard-white);
    font-size: var(--wizard-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Theme preview placeholder: gradient + abstract blocks until real screenshots ship */
.wizard-theme-preview {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--wizard-gray-50) 0%, var(--wizard-gray-100) 100%);
    position: relative;
    padding: var(--wizard-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-2);
    border-bottom: 1px solid var(--wizard-gray-200);
}

.wizard-theme-preview-nav {
    height: 8px;
    background: var(--wizard-gray-300);
    border-radius: 2px;
    width: 60%;
}

.wizard-theme-preview-hero {
    flex: 1;
    background: var(--theme-accent, var(--wizard-primary));
    opacity: 0.85;
    border-radius: 4px;
}

.wizard-theme-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--wizard-space-2);
    height: 24px;
}

.wizard-theme-preview-grid span {
    background: var(--wizard-gray-300);
    border-radius: 2px;
}

/* Per-theme preview tweaks — vary gradients and accent positioning so each card
   feels distinct without needing real screenshots. */
.wizard-theme-preview[data-theme-id="editorial"] { background: linear-gradient(160deg, #f8f5f0 0%, #efe6d8 100%); }
.wizard-theme-preview[data-theme-id="editorial"] .wizard-theme-preview-hero { opacity: 0.95; border-radius: 0; }

.wizard-theme-preview[data-theme-id="market"] { background: linear-gradient(160deg, #f5f3eb 0%, #e7e0c8 100%); }
.wizard-theme-preview[data-theme-id="market"] .wizard-theme-preview-grid span { border-radius: 50%; height: 18px; width: 18px; justify-self: center; align-self: center; }

.wizard-theme-preview[data-theme-id="tech"] { background: linear-gradient(160deg, #eef4ff 0%, #d4e0fb 100%); }
.wizard-theme-preview[data-theme-id="tech"] .wizard-theme-preview-grid span { border-radius: 0; }

.wizard-theme-preview[data-theme-id="bold"] { background: linear-gradient(160deg, #1f1f1f 0%, #333 100%); }
.wizard-theme-preview[data-theme-id="bold"] .wizard-theme-preview-nav { background: #555; }
.wizard-theme-preview[data-theme-id="bold"] .wizard-theme-preview-grid span { background: #555; }

.wizard-theme-preview[data-theme-id="services"] { background: linear-gradient(160deg, #eef9fa 0%, #d4eef0 100%); }

.wizard-theme-preview[data-theme-id="studio"] { background: linear-gradient(160deg, #faf6f0 0%, #ede0c8 100%); }
.wizard-theme-preview[data-theme-id="studio"] .wizard-theme-preview-hero { border-radius: 999px; opacity: 0.9; }

.wizard-theme-card-body {
    padding: var(--wizard-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-1);
}

.wizard-theme-card-header {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-2);
}

.wizard-theme-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.wizard-theme-card-title {
    font-size: var(--wizard-font-size-lg);
    font-weight: 600;
    color: var(--wizard-gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

.wizard-theme-card-desc {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-600);
    margin: 0;
    line-height: 1.45;
}

.wizard-theme-accent-group {
    border-top: 1px solid var(--wizard-gray-200);
    padding-top: var(--wizard-space-6);
}

.wizard-theme-accent-input {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-4);
}

.wizard-theme-accent-input input[type="color"] {
    width: 60px;
    height: 42px;
    border: 1px solid var(--wizard-gray-300);
    border-radius: var(--wizard-radius);
    cursor: pointer;
    padding: 2px;
    background: var(--wizard-white);
}

.wizard-theme-accent-input .wizard-help-text {
    flex: 1;
    margin: 0;
}

/* =====================================================
   Step 2 - Skip block (start blank)
   ===================================================== */
.wizard-skip-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wizard-space-4);
    margin-top: var(--wizard-space-8);
    padding: var(--wizard-space-5) var(--wizard-space-6);
    background: var(--wizard-gray-50);
    border: 1px dashed var(--wizard-gray-300);
    border-radius: var(--wizard-radius-lg);
}

.wizard-skip-block-text {
    flex: 1;
    min-width: 0;
}

.wizard-skip-block-text strong {
    display: block;
    color: var(--wizard-gray-900);
    margin-bottom: var(--wizard-space-1);
}

.wizard-skip-block-text .wizard-help-text {
    margin: 0;
}

.wizard-skip-block button {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .wizard-skip-block {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
}

/* =====================================================
   Step 1 - Subdomain input (name.multitienda.com)
   ===================================================== */
.wizard-subdomain-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--wizard-gray-300);
    border-radius: var(--wizard-radius);
    background: var(--wizard-white);
    transition: var(--wizard-transition);
    overflow: hidden;
}

.wizard-subdomain-input:focus-within {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wizard-subdomain-input input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: var(--wizard-space-3) var(--wizard-space-4);
    font: inherit;
    color: var(--wizard-gray-900);
    outline: none;
    min-width: 0;
}

.wizard-subdomain-suffix {
    display: flex;
    align-items: center;
    padding: 0 var(--wizard-space-4);
    background: var(--wizard-gray-100);
    color: var(--wizard-gray-600);
    font-size: var(--wizard-font-size-sm);
    border-left: 1px solid var(--wizard-gray-200);
    white-space: nowrap;
}

.has-error .wizard-subdomain-input {
    border-color: var(--wizard-error);
}

/* =====================================================
   Step 0 - Mode Chooser (shop vs site)
   ===================================================== */
.wizard-mode-chooser {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--wizard-gray-50) 0%, var(--wizard-white) 60%);
}

.wizard-mode-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--wizard-space-6) var(--wizard-space-8);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.wizard-mode-logo {
    font-weight: 600;
    font-size: var(--wizard-font-size-lg);
    color: var(--wizard-gray-900);
    letter-spacing: -0.01em;
}

.wizard-mode-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--wizard-space-8) var(--wizard-space-6);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.wizard-mode-header {
    margin-bottom: var(--wizard-space-12);
}

.wizard-mode-title {
    font-size: var(--wizard-font-size-4xl);
    font-weight: 700;
    color: var(--wizard-gray-900);
    margin: 0 0 var(--wizard-space-3);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.wizard-mode-subtitle {
    font-size: var(--wizard-font-size-lg);
    color: var(--wizard-gray-600);
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.wizard-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wizard-space-6);
    width: 100%;
    max-width: 900px;
    margin-bottom: var(--wizard-space-8);
}

.wizard-mode-card-form {
    margin: 0;
    display: flex;
}

.wizard-mode-card {
    flex: 1;
    background: var(--wizard-white);
    border: 2px solid var(--wizard-gray-200);
    border-radius: var(--wizard-radius-xl);
    padding: var(--wizard-space-10) var(--wizard-space-8);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wizard-space-4);
    transition: var(--wizard-transition);
    box-shadow: var(--wizard-shadow-sm);
    font-family: inherit;
    color: inherit;
}

.wizard-mode-card:hover {
    border-color: var(--wizard-primary);
    transform: translateY(-2px);
    box-shadow: var(--wizard-shadow-lg);
}

.wizard-mode-card:focus-visible {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.wizard-mode-card-icon {
    color: var(--wizard-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--wizard-radius-full);
    width: 88px;
    height: 88px;
    margin-bottom: var(--wizard-space-2);
}

.wizard-mode-card-title {
    font-size: var(--wizard-font-size-2xl);
    font-weight: 600;
    color: var(--wizard-gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

.wizard-mode-card-desc {
    font-size: var(--wizard-font-size-base);
    color: var(--wizard-gray-600);
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
}

.wizard-mode-trial-note {
    font-size: var(--wizard-font-size-sm);
    color: var(--wizard-gray-500);
    margin: 0;
}

.wizard-mode-footer {
    padding: var(--wizard-space-6) var(--wizard-space-8);
    text-align: center;
    color: var(--wizard-gray-400);
    font-size: var(--wizard-font-size-xs);
}

.wizard-mode-footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .wizard-mode-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .wizard-mode-title {
        font-size: var(--wizard-font-size-3xl);
    }

    .wizard-mode-card {
        padding: var(--wizard-space-8) var(--wizard-space-6);
    }

    .wizard-mode-card-icon {
        width: 72px;
        height: 72px;
    }
}

/* =====================================================================
   multitienda6 — component styles
   New components match the Claude Design mockups in
   materials/design/multitienda6/. They use --mt-* tokens, not --wizard-*.
   ===================================================================== */

.mt-body {
    margin: 0;
    padding: 0;
    background: var(--mt-bg);
    color: var(--mt-ink);
    font-family: var(--mt-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- typography helpers --- */
.mt-tag {
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mt-muted);
    white-space: nowrap;
}
.mt-tag.is-accent { color: var(--mt-accent); }
.mt-tag.is-filled { background: var(--mt-accent-soft); color: var(--mt-accent); padding: 4px 8px; border-radius: 999px; display: inline-block; }
.mt-display { font-family: var(--mt-display); font-weight: 400; letter-spacing: -.02em; }
.mt-mono    { font-family: var(--mt-mono); }

/* --- topbar --- */
.mt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--mt-rule);
    background: var(--mt-panel);
}
.mt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.mt-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--mt-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mt-mono);
    font-size: 12px;
    font-weight: 600;
}
.mt-logo-mark.is-light { background: #fff; color: var(--mt-ink); }
.mt-logo-text {
    font-family: var(--mt-display);
    font-size: 22px;
    letter-spacing: -.02em;
}
.mt-topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--mt-muted);
}

/* --- step 0: mode chooser --- */
.mt-mode {
    width: 100%;
    background: var(--mt-warm);
    color: var(--mt-ink);
    font-family: var(--mt-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.mt-mode-main {
    flex: 1;
    padding: 28px 56px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mt-mode-header h1 {
    font-family: var(--mt-display);
    font-weight: 400;
    font-size: 40px;
    letter-spacing: -.03em;
    line-height: 1.02;
    margin: 8px 0 6px;
}
.mt-mode-header h1 em { font-style: italic; color: var(--mt-accent); }
.mt-mode-header p {
    font-size: 13.5px;
    color: var(--mt-muted);
    margin: 0;
    max-width: 640px;
    line-height: 1.5;
}

.mt-trust-band {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    border-radius: 10px;
    overflow: hidden;
}
.mt-trust-cell {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mt-trust-cell + .mt-trust-cell { border-left: 1px solid var(--mt-rule); }
.mt-trust-check {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--mt-accent-soft);
    color: var(--mt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-top: 1px;
    flex-shrink: 0;
}
.mt-trust-title { font-size: 12.5px; font-weight: 500; color: var(--mt-ink); line-height: 1.2; }
.mt-trust-desc  { font-size: 11px; color: var(--mt-muted); margin-top: 2px; line-height: 1.4; }

.mt-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.mt-type-card {
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    border-radius: 16px;
    padding: 20px 22px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--mt-shadow-card);
    transition: box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    overflow: hidden;
}
/* When the entire card is a <button type="submit">, reset native button chrome
   so the flex layout from .mt-type-card wins. */
button.mt-type-card {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}
.mt-mode-card-form {
    display: block;
    margin: 0;
    padding: 0;
}
.mt-type-card:hover { box-shadow: var(--mt-shadow-warm); }
.mt-type-card.is-selected {
    border: 1.5px solid var(--mt-accent);
    box-shadow: var(--mt-shadow-pop);
}
.mt-type-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1.5px solid var(--mt-rule);
    background: transparent;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-type-card.is-selected .mt-type-check {
    border: none;
    background: var(--mt-accent);
}
.mt-type-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 32px;
}
.mt-type-icon { display: flex; color: var(--mt-ink); }
.mt-type-card.is-selected .mt-type-icon { color: var(--mt-accent); }
.mt-type-card h2 {
    font-family: var(--mt-display);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -.025em;
    line-height: 1.02;
    margin: 0;
}
.mt-type-lead {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mt-muted);
    margin: 6px 0 0;
}
.mt-type-divider {
    border-top: 1px solid var(--mt-rule);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mt-type-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mt-type-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    color: #2a2733;
    line-height: 1.4;
}
.mt-type-list-check {
    width: 13px;
    height: 13px;
    margin-top: 2px;
    border-radius: 999px;
    background: #f0eee9;
    color: var(--mt-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}
.mt-type-card.is-selected .mt-type-list-check {
    background: var(--mt-accent-soft);
    color: var(--mt-accent);
}
.mt-type-examples {
    font-size: 11.5px;
    color: var(--mt-muted);
    line-height: 1.4;
}
.mt-type-examples b { color: var(--mt-ink); font-weight: 500; }
.mt-type-foot {
    margin: auto -22px 0;
    padding: 18px 22px 20px;
    background: var(--mt-panel-soft);
    border-top: 1px solid var(--mt-rule);
    display: flex;
    align-items: center;
    gap: 16px;
}
.mt-type-price-label {
    font-family: var(--mt-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mt-muted);
    white-space: nowrap;
}
.mt-type-price-value {
    font-family: var(--mt-display);
    font-size: 32px;
    letter-spacing: -.025em;
    line-height: 1;
    color: var(--mt-ink);
}
.mt-type-price-unit {
    font-size: 14px;
    color: var(--mt-muted);
    font-weight: 400;
    margin-left: 2px;
}
.mt-type-cta {
    background: var(--mt-ink);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--mt-sans);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
}
.mt-type-card.is-selected .mt-type-cta {
    background: var(--mt-accent);
    box-shadow: 0 10px 24px rgba(75, 61, 240, .25);
}

/* --- step 0 radio-card layout: pick one, then confirm ---
   The whole card is a <label> wrapping a hidden radio. :has() mirrors the
   existing .is-selected style so we keep one source of truth for selected look. */
.mt-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.mt-type-card:has(.mt-type-radio:checked) {
    border: 1.5px solid var(--mt-accent);
    box-shadow: var(--mt-shadow-pop);
}
.mt-type-card .mt-type-check { display: flex; opacity: 0; transition: opacity .15s ease; }
.mt-type-card:has(.mt-type-radio:checked) .mt-type-check { opacity: 1; border: none; background: var(--mt-accent); }
.mt-type-card:has(.mt-type-radio:checked) .mt-type-icon { color: var(--mt-accent); }
.mt-type-card:has(.mt-type-radio:focus-visible) {
    outline: 2px solid var(--mt-accent);
    outline-offset: 2px;
}

.mt-mode-form { margin: 0; }
.mt-mode-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}
.mt-mode-continue {
    background: var(--mt-accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--mt-sans);
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(75, 61, 240, .28);
    transition: opacity .15s ease, box-shadow .15s ease;
}
.mt-mode-continue:disabled {
    background: var(--mt-rule);
    color: var(--mt-muted);
    cursor: not-allowed;
    box-shadow: none;
}
.mt-mode-hint {
    font-size: 13px;
    color: var(--mt-muted);
    margin: 0;
}

/* --- wizard frame (sidebar + content) --- */
.mt-frame {
    width: 100%;
    min-height: 100vh;
    background: var(--mt-warm);
    color: var(--mt-ink);
    font-family: var(--mt-sans);
    display: grid;
    grid-template-columns: 320px 1fr;
}
.mt-content {
    padding: 36px 52px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.mt-content > header h1 {
    font-family: var(--mt-display);
    font-weight: 400;
    font-size: 44px;
    letter-spacing: -.03em;
    line-height: 1.02;
    margin: 8px 0 8px;
}
.mt-content > header h1 em { font-style: italic; color: var(--mt-accent); }
.mt-content > header p {
    font-size: 14px;
    color: var(--mt-muted);
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

/* --- stepper (dark sidebar) --- */
.mt-stepper {
    background: var(--mt-ink);
    color: #fff;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}
.mt-stepper-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.mt-stepper-kind {
    background: var(--mt-ink-soft);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--mt-rule-dark);
}
.mt-stepper-kind-icon { color: var(--mt-accent); display: flex; flex-shrink: 0; }
.mt-stepper-kind-label {
    font-family: var(--mt-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #bbb6c8;
}
.mt-stepper-kind-name { font-size: 14px; font-weight: 500; margin-top: 2px; }
.mt-stepper-kind-change {
    margin-left: auto;
    font-size: 11px;
    color: var(--mt-accent);
    font-family: var(--mt-mono);
    cursor: pointer;
    opacity: .85;
    text-decoration: none;
}
.mt-stepper-list-label {
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: #bbb6c8;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.mt-stepper-list { display: flex; flex-direction: column; gap: 14px; }
.mt-stepper-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.mt-stepper-item.is-next { opacity: .45; }
.mt-stepper-bullet {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    flex-shrink: 0;
    font-family: var(--mt-mono);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-stepper-item.is-done .mt-stepper-bullet { background: #fff; color: var(--mt-ink); }
.mt-stepper-item.is-active .mt-stepper-bullet { background: var(--mt-accent); color: #fff; }
.mt-stepper-item.is-next .mt-stepper-bullet { background: transparent; border: 1px solid #6e6878; color: #fff; }
.mt-stepper-item-title { font-size: 14px; font-weight: 500; }
.mt-stepper-item-desc { font-size: 11px; color: #bbb6c8; margin-top: 2px; line-height: 1.4; }
.mt-stepper-tab {
    padding: 14px;
    background: var(--mt-ink-soft);
    border-radius: 12px;
    font-size: 12px;
    color: #cfc9dc;
    line-height: 1.5;
}
.mt-stepper-tab-label {
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--mt-accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.mt-stepper-tab kbd {
    background: var(--mt-rule-dark);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--mt-mono);
    font-size: 11px;
}

/* --- wizard footer --- */
.mt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--mt-rule);
}
.mt-footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--mt-muted);
}
.mt-footer-back {
    font-family: var(--mt-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.mt-footer-back.is-disabled { opacity: .3; pointer-events: none; }
.mt-footer-progress {
    width: 200px;
    height: 4px;
    border-radius: 999px;
    background: var(--mt-rule);
    position: relative;
    overflow: hidden;
}
.mt-footer-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--mt-accent);
}
.mt-footer-pct { font-family: var(--mt-mono); }
.mt-cta {
    background: var(--mt-ink);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--mt-sans);
    font-weight: 500;
}
.mt-cta.is-primary {
    background: var(--mt-accent);
    box-shadow: var(--mt-shadow-cta);
    padding: 14px 26px;
}

/* --- step 1: form + preview --- */
.mt-step1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    flex: 1;
    min-height: 0;
}
.mt-form-col { display: flex; flex-direction: column; gap: 22px; }
.mt-field-label {
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}
.mt-input,
.mt-input-group {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--mt-rule);
    border-radius: 10px;
    font-size: 18px;
    font-family: var(--mt-sans);
    background: var(--mt-panel);
    color: var(--mt-ink);
    outline: none;
}
.mt-input:focus,
.mt-input-group:focus-within { border-color: var(--mt-accent); box-shadow: 0 0 0 3px var(--mt-accent-soft); }
.mt-input-group {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.mt-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-family: var(--mt-sans);
    font-size: 16px;
    background: transparent;
    color: var(--mt-ink);
}
.mt-input-suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-family: var(--mt-mono);
    font-size: 13px;
    color: var(--mt-muted);
    border-left: 1px solid var(--mt-rule);
    background: var(--mt-panel-soft);
}
.mt-help {
    font-size: 11px;
    color: var(--mt-muted);
    margin-top: 6px;
}
.mt-help.is-ok { color: var(--mt-good); }
.mt-help-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
    background: var(--mt-good);
    vertical-align: 1px;
}

/* language pills */
.mt-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mt-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--mt-rule);
    background: var(--mt-panel);
    color: var(--mt-ink);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.mt-pill input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.mt-pill b { font-family: var(--mt-mono); font-size: 11px; }
.mt-pill.is-selected,
.mt-pill input[type="radio"]:checked + span,
.mt-pill:has(input:checked) {
    border: 1.5px solid var(--mt-accent);
    background: var(--mt-accent-soft);
    color: var(--mt-accent);
}
.mt-pill.is-add {
    border: 1px dashed var(--mt-rule);
    color: var(--mt-muted);
    cursor: default;
}

/* preview column */
.mt-preview {
    background: var(--mt-panel);
    border-radius: 14px;
    border: 1px solid var(--mt-rule);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}
.mt-preview-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mt-preview-bar-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #e6e1d5;
}
.mt-preview-bar-url {
    flex: 1;
    margin-left: 10px;
    font-family: var(--mt-mono);
    font-size: 11px;
    color: var(--mt-muted);
    padding: 5px 10px;
    background: var(--mt-panel-soft);
    border-radius: 6px;
    border: 1px solid var(--mt-rule);
}
.mt-preview-canvas {
    flex: 1;
    min-height: 220px;
    background: repeating-linear-gradient(118deg, #dccfb5 0 22px, #c9bca0 22px 23px);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fbf6ec;
    text-align: center;
    padding: 14px;
}
.mt-preview-caption {
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}
.mt-preview-title {
    font-family: var(--mt-display);
    font-size: 36px;
    letter-spacing: -.02em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.mt-preview-meta {
    margin-top: 12px;
    font-size: 12px;
    font-family: var(--mt-mono);
    letter-spacing: .12em;
    opacity: .8;
}

/* AI hint banner */
.mt-ai-hint {
    background: var(--mt-accent-soft);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.mt-ai-hint-bullet {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--mt-accent);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.mt-ai-hint-text {
    font-size: 11.5px;
    color: var(--mt-accent-deep);
    line-height: 1.45;
}
.mt-ai-hint-text b { color: var(--mt-accent-deep); font-weight: 600; }

/* --- step 2: template grid --- */
.mt-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    flex: 1;
    min-height: 0;
}
.mt-template-card {
    background: var(--mt-panel);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mt-rule);
    box-shadow: var(--mt-shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: left;
}
.mt-template-card.is-selected,
.mt-template-card.is-recommended {
    border: 2px solid var(--mt-accent);
    box-shadow: var(--mt-shadow-warm);
}
.mt-template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--mt-accent);
    color: #fff;
    font-family: var(--mt-mono);
    font-size: 9px;
    letter-spacing: .18em;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.mt-template-preview { height: 100px; position: relative; }
.mt-template-preview.tone-warm   { background: repeating-linear-gradient(118deg, #dccfb5 0 22px, #c9bca0 22px 23px); }
.mt-template-preview.tone-cream  { background: repeating-linear-gradient(118deg, #e9e2cf 0 22px, #d3c9ad 22px 23px); }
.mt-template-preview.tone-night  { background: repeating-linear-gradient(118deg, #22242b 0 22px, #2d2f37 22px 23px); }
.mt-template-preview.tone-sage   { background: repeating-linear-gradient(118deg, #a7b29c 0 22px, #8d9982 22px 23px); }
.mt-template-preview.tone-indigo { background: repeating-linear-gradient(118deg, #c5c3e8 0 22px, #a8a5d4 22px 23px); }
.mt-template-preview.tone-stone  { background: repeating-linear-gradient(118deg, #c8c4ba 0 22px, #b3aea1 22px 23px); }
.mt-template-preview.tone-teal   { background: repeating-linear-gradient(118deg, #9bbcbc 0 22px, #7fa5a4 22px 23px); }
.mt-template-preview.tone-sand   { background: repeating-linear-gradient(118deg, #d5c39a 0 22px, #bea975 22px 23px); }
.mt-template-preview.tone-paper  { background: repeating-linear-gradient(118deg, #ede8db 0 22px, #dcd4c0 22px 23px); }
.mt-template-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mt-template-head { display: flex; align-items: center; gap: 8px; }
.mt-template-title { font-family: var(--mt-display); font-size: 18px; letter-spacing: -.01em; }
.mt-template-swatches { display: flex; gap: 3px; margin-left: auto; }
.mt-template-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
}
.mt-template-desc { font-size: 11.5px; color: var(--mt-muted); line-height: 1.45; }

/* --- step 3 (shop): products --- */
.mt-mode-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-mode-pill {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--mt-rule);
    background: var(--mt-panel);
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    min-width: 140px;
}
.mt-mode-pill.is-selected {
    border: 1.5px solid var(--mt-accent);
    background: var(--mt-accent-soft);
}
.mt-mode-pill-title { font-size: 13px; font-weight: 500; color: var(--mt-ink); }
.mt-mode-pill.is-selected .mt-mode-pill-title { color: var(--mt-accent); }
.mt-mode-pill-desc { font-size: 11px; color: var(--mt-muted); }
.mt-mode-pill.is-selected .mt-mode-pill-desc { color: var(--mt-accent); }

.mt-product-table {
    flex: 1;
    min-height: 0;
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mt-product-row {
    display: grid;
    grid-template-columns: 22px 56px 1fr 90px 80px 90px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mt-rule);
    background: #fff;
}
.mt-product-row.is-unpicked { background: var(--mt-panel-soft); }
.mt-product-row.is-header {
    background: var(--mt-panel-soft);
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mt-muted);
}
.mt-product-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--mt-rule);
    background: transparent;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-product-row.is-picked .mt-product-check {
    border-color: var(--mt-accent);
    background: var(--mt-accent);
}
.mt-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--mt-rule);
    background: repeating-linear-gradient(118deg, #dccfb5 0 22px, #c9bca0 22px 23px);
}
.mt-product-name { font-size: 13px; font-weight: 500; color: var(--mt-ink); }
.mt-product-sku  { font-family: var(--mt-mono); font-size: 10.5px; color: var(--mt-muted); margin-top: 2px; }
.mt-status-tag {
    font-family: var(--mt-mono);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
}
.mt-status-tag.is-draft { color: var(--mt-warn); background: var(--mt-warn-soft); }
.mt-status-tag.is-ready { color: var(--mt-good); background: var(--mt-good-soft); }
.mt-product-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--mt-rule);
    background: var(--mt-panel-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--mt-muted);
}
.mt-product-foot b { color: var(--mt-ink); font-weight: 500; }

/* --- step 3 (site): pages --- */
.mt-pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}
.mt-page-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}
.mt-page-card.is-on { border: 1.5px solid var(--mt-accent); }
.mt-page-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0eee9;
    color: var(--mt-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mt-page-card.is-on .mt-page-icon { background: var(--mt-accent-soft); color: var(--mt-accent); }
.mt-page-title { font-size: 14px; font-weight: 500; color: var(--mt-ink); }
.mt-page-desc { font-size: 11.5px; color: var(--mt-muted); margin-top: 2px; line-height: 1.4; }

/* --- step 4: launch --- */
.mt-launch-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
}
.mt-launch-panel {
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mt-launch-panel-head {
    padding: 12px 16px;
    background: var(--mt-panel-soft);
    border-bottom: 1px solid var(--mt-rule);
    font-family: var(--mt-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mt-muted);
}
.mt-launch-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mt-rule);
}
.mt-launch-row:last-child { border-bottom: none; }
.mt-launch-row-body { flex: 1; min-width: 0; }
.mt-launch-title { font-size: 13.5px; font-weight: 500; }
.mt-launch-desc { font-size: 11.5px; color: var(--mt-muted); margin-top: 2px; line-height: 1.4; }
.mt-toggle {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: #d6d2c8;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .15s ease;
}
.mt-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: left .15s ease;
}
.mt-toggle.is-on { background: var(--mt-accent); }
.mt-toggle.is-on::after { left: 16px; }
.mt-toggle input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }

.mt-summary {
    background: var(--mt-panel);
    border: 1px solid var(--mt-rule);
    border-radius: 12px;
    padding: 16px;
}
.mt-summary-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: var(--mt-muted);
}
.mt-summary-list b { color: var(--mt-ink); font-weight: 500; }

.mt-promo {
    background: var(--mt-ink);
    color: #fff;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}
.mt-promo-body { font-size: 14px; line-height: 1.5; margin-top: 8px; color: #dad6e3; }
.mt-promo-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* --- signup modal (inline at step 4) --- */
.mt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 18, .55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
}
.mt-modal {
    background: var(--mt-panel);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.mt-modal-head {
    padding: 22px 24px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mt-modal-head h2 {
    font-family: var(--mt-display);
    font-weight: 400;
    font-size: 26px;
    letter-spacing: -.02em;
    margin: 0;
}
.mt-modal-body {
    padding: 14px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mt-modal-foot {
    padding: 14px 24px 20px;
    background: var(--mt-panel-soft);
    border-top: 1px solid var(--mt-rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mt-modal-close {
    background: transparent;
    border: none;
    color: var(--mt-muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* --- shared: button helpers --- */
.mt-btn-ghost {
    background: transparent;
    border: none;
    color: var(--mt-accent);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--mt-sans);
}

/* responsive */
@media (max-width: 960px) {
    .mt-frame { grid-template-columns: 1fr; }
    .mt-stepper { display: none; }
    .mt-content { padding: 24px 20px; }
    .mt-step1-grid,
    .mt-mode-cards,
    .mt-launch-grid { grid-template-columns: 1fr; }
    .mt-template-grid { grid-template-columns: 1fr 1fr; }
    .mt-pages-grid { grid-template-columns: 1fr; }
    .mt-trust-band { flex-direction: column; }
    .mt-trust-cell + .mt-trust-cell { border-left: none; border-top: 1px solid var(--mt-rule); }
}
@media (max-width: 600px) {
    .mt-mode-main { padding: 20px 16px; }
    .mt-template-grid { grid-template-columns: 1fr; }
    .mt-content > header h1 { font-size: 34px; }
    .mt-mode-header h1 { font-size: 30px; }
    .mt-product-row { grid-template-columns: 22px 1fr; }
    .mt-product-row > :nth-child(n+3) { display: none; }
}
