/**
 * Store Creation Wizard - Styles
 * Modern, clean design with accessibility in mind.
 */

/* =====================================================
   CSS Variables
   ===================================================== */
: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;
}
