/* ==========================================================================
   Creator Wizard Styles
   Clean, modular CSS for the step-based loyalty card creator
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --wizard-primary: #2563eb;
    --wizard-primary-dark: #1d4ed8;
    --wizard-primary-light: #3b82f6;
    --wizard-primary-glow: rgba(37, 99, 235, 0.1);
    --wizard-success: #10b981;
    --wizard-success-light: #d1fae5;
    --wizard-warning: #f59e0b;
    --wizard-danger: #ef4444;
    --wizard-text: #1f2937;
    --wizard-text-muted: #6b7280;
    --wizard-bg: #f9fafb;
    --wizard-card-bg: #ffffff;
    --wizard-border: #e5e7eb;
    --wizard-radius-sm: 6px;
    --wizard-radius-md: 12px;
    --wizard-radius-lg: 16px;
    --wizard-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --wizard-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --wizard-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --wizard-transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wizard-container {
    min-height: 100vh;
    background: var(--wizard-bg);
    padding-bottom: 3rem;
}

.wizard-header {
    background: var(--wizard-card-bg);
    border-bottom: 1px solid var(--wizard-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wizard-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-logo {
    height: 36px;
}

@media (max-width: 540px) {
    .wizard-logo {
        height: 29px;
    }
}

.wizard-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wizard-text-muted);
    background: transparent;
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    transition: all var(--wizard-transition);
}

.wizard-header-btn:hover {
    color: var(--wizard-primary);
    border-color: var(--wizard-primary);
    background: var(--wizard-primary-glow);
}

.wizard-header-btn i {
    font-size: 0.75rem;
}

.wizard-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Progress Indicator
   -------------------------------------------------------------------------- */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.wizard-progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.wizard-progress-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wizard-card-bg);
    border: 3px solid var(--wizard-border);
    color: var(--wizard-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.wizard-progress-step.active .wizard-progress-dot {
    background: var(--wizard-primary);
    border-color: var(--wizard-primary);
    color: white;
    transform: scale(1.1);
    box-shadow:
        0 0 0 6px var(--wizard-primary-glow),
        0 4px 12px rgba(37, 99, 235, 0.4);
    animation: wizardPulseActive 2s ease-in-out infinite;
}

@keyframes wizardPulseActive {
    0%, 100% {
        box-shadow:
            0 0 0 6px var(--wizard-primary-glow),
            0 4px 12px rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(37, 99, 235, 0.1),
            0 4px 20px rgba(37, 99, 235, 0.5);
    }
}

.wizard-progress-step.completed .wizard-progress-dot {
    background: var(--wizard-success);
    border-color: var(--wizard-success);
    color: white;
    animation: wizardCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizardCheckPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wizard-progress-step.completed .wizard-progress-dot span {
    display: none;
}

.wizard-progress-step.completed .wizard-progress-dot::after {
    content: '';
    width: 10px;
    height: 16px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) translateY(-2px);
}

.wizard-progress-line {
    width: 60px;
    height: 4px;
    background: var(--wizard-border);
    margin: 0 -2px;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.wizard-progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--wizard-success), var(--wizard-primary));
    transition: width 0.5s ease-out;
    border-radius: 2px;
}

.wizard-progress-step.completed + .wizard-progress-line::after,
.wizard-progress-line.completed::after {
    width: 100%;
}

@media (max-width: 540px) {
    .wizard-progress-dot {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
    .wizard-progress-line {
        width: 36px;
    }
}

@media (max-width: 380px) {
    .wizard-progress-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
        border-width: 2px;
    }
    .wizard-progress-line {
        width: 24px;
        height: 3px;
    }
}

/* --------------------------------------------------------------------------
   Step Container
   -------------------------------------------------------------------------- */
.wizard-step {
    display: none;
    opacity: 0;
}

.wizard-step.active {
    display: block;
    animation: wizardStepIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wizard-step.leaving {
    display: block;
    animation: wizardStepOut 0.3s ease-out forwards;
}

@keyframes wizardStepIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wizardStepOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

/* Confetti burst effect on step completion */
.wizard-step-title {
    position: relative;
}

.wizard-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.wizard-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--wizard-primary);
    animation: wizardConfettiFall 1s ease-out forwards;
}

@keyframes wizardConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.wizard-step-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
}

/* Smaller title/subtitle for step 1 to save vertical space */
.wizard-step[data-step="1"] .wizard-step-title {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.wizard-step[data-step="1"] .wizard-step-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.wizard-step-subtitle {
    text-align: center;
    color: var(--wizard-text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Step 3 title/subtitle hiding animation */
.wizard-step[data-step="3"] .wizard-step-title,
.wizard-step[data-step="3"] .wizard-step-subtitle {
    transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    overflow: hidden;
    max-height: 100px;
}

.wizard-step[data-step="3"].wizard-header-hidden .wizard-step-title,
.wizard-step[data-step="3"].wizard-header-hidden .wizard-step-subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Cards & Forms
   -------------------------------------------------------------------------- */
.wizard-card {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-lg);
    border: 1px solid var(--wizard-border);
    box-shadow: var(--wizard-shadow-md);
    padding: 1.5rem;
}

.wizard-form-group {
    margin-bottom: 1.25rem;
}

.wizard-form-group:last-child {
    margin-bottom: 0;
}

.wizard-label {
    display: block;
    font-weight: 500;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.wizard-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-md);
    font-size: 1rem;
    transition: all var(--wizard-transition);
    background: var(--wizard-card-bg);
}

.wizard-input:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px var(--wizard-primary-glow);
}

.wizard-input::placeholder {
    color: var(--wizard-text-muted);
}

/* --------------------------------------------------------------------------
   Collapsible Field Chips (Dopamine Effect)
   -------------------------------------------------------------------------- */
.wizard-form-group.collapsed {
    margin-bottom: 0.5rem;
}

.wizard-form-group.collapsed .wizard-label,
.wizard-form-group.collapsed .wizard-input,
.wizard-form-group.collapsed .wizard-field-error {
    display: none;
}

.wizard-field-chip {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    animation: chipAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-form-group.collapsed .wizard-field-chip {
    display: flex;
}

@keyframes chipAppear {
    0% { opacity: 0; transform: scale(0.95) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wizard-field-chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-field-chip-icon i {
    color: white;
    font-size: 0.65rem;
}

.wizard-field-chip-value {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wizard-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.wizard-field-chip-edit {
    background: none;
    border: none;
    color: var(--wizard-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wizard-field-chip-edit:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* --------------------------------------------------------------------------
   Specialist Selector - Compact 3-Slot Carousel
   -------------------------------------------------------------------------- */
.wizard-specialist-wrapper {
    position: relative;
    margin-bottom: 1rem;
    padding-top: 6px;
}

.wizard-specialist-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.wizard-specialist-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
    animation: specialistBarShimmer 4s ease-in-out infinite;
    border-radius: 50px;
}

@keyframes specialistBarShimmer {
    0% { left: -50%; }
    100% { left: 150%; }
}

.wizard-specialist-slots {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.wizard-specialist-slot {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    flex-shrink: 0;
}

/* Left slot - biggest */
.wizard-specialist-slot:nth-child(1) {
    width: 40px;
    height: 40px;
    z-index: 3;
    border-color: var(--wizard-primary);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

/* Middle slot - medium */
.wizard-specialist-slot:nth-child(2) {
    width: 32px;
    height: 32px;
    margin-left: -10px;
    z-index: 2;
    opacity: 0.85;
}

/* Right slot - smallest */
.wizard-specialist-slot:nth-child(3) {
    width: 26px;
    height: 26px;
    margin-left: -8px;
    z-index: 1;
    opacity: 0.65;
}

.wizard-specialist-slot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.wizard-specialist-slot .specialist-img-current {
    opacity: 1;
    z-index: 2;
}

.wizard-specialist-slot .specialist-img-next {
    opacity: 0;
    z-index: 1;
}

.wizard-specialist-slot.crossfading .specialist-img-current {
    opacity: 0;
}

.wizard-specialist-slot.crossfading .specialist-img-next {
    opacity: 1;
}

.wizard-specialist-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.wizard-specialist-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--wizard-text);
    line-height: 1.2;
}

.wizard-specialist-hint {
    font-size: 0.7rem;
    color: var(--wizard-text-muted);
    transition: all 0.3s ease;
}

.wizard-specialist-hint.searching {
    color: var(--wizard-primary);
    animation: hintPulse 0.8s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wizard-specialist-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.wizard-specialist-badge i {
    color: white;
    font-size: 0.75rem;
}

/* Free badge - floating above container */
.wizard-specialist-free-badge {
    position: absolute;
    top: 0;
    right: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

/* Assigned state */
.wizard-specialist-bar.assigned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.06) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.wizard-specialist-bar.assigned::before {
    animation: none;
    opacity: 0;
}

.wizard-specialist-bar.assigned .wizard-specialist-slot:nth-child(1) {
    width: 48px;
    height: 48px;
    border-color: #10b981;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    opacity: 1;
}

.wizard-specialist-bar.assigned .wizard-specialist-slot:nth-child(2),
.wizard-specialist-bar.assigned .wizard-specialist-slot:nth-child(3) {
    width: 0;
    height: 0;
    opacity: 0;
    margin-left: 0;
    border-width: 0;
}

.wizard-specialist-bar.assigned .wizard-specialist-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: badgeCheck 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-specialist-bar.assigned .wizard-specialist-badge i::before {
    content: '\f00c';
}

@keyframes badgeCheck {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wizard-specialist-bar.assigned .wizard-specialist-hint {
    color: #10b981;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--wizard-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.wizard-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wizard-btn:active::before {
    width: 300px;
    height: 300px;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.wizard-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.wizard-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.wizard-btn-secondary {
    background: var(--wizard-card-bg);
    color: var(--wizard-text-muted);
    border: 2px solid var(--wizard-border);
}

.wizard-btn-secondary:hover {
    background: var(--wizard-bg);
    color: var(--wizard-text);
    border-color: var(--wizard-text-muted);
    transform: translateY(-1px);
}

.wizard-btn-success {
    background: linear-gradient(135deg, var(--wizard-success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.wizard-btn-success:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.wizard-btn-success:active {
    transform: translateY(0) scale(0.98);
}

.wizard-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--wizard-radius-lg);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ensure button children don't block click events */
.wizard-btn > * {
    pointer-events: none;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.wizard-actions-end {
    justify-content: flex-end;
}

.wizard-actions-center {
    justify-content: center;
}

/* Step 3 actions appear with animation */
#step3-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

#step3-actions.wizard-actions-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Template Grid
   -------------------------------------------------------------------------- */
.wizard-templates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 540px) {
    .wizard-templates {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .wizard-template-image {
        aspect-ratio: 16/10;
    }

    .wizard-template-info {
        padding: 0.5rem 0.5rem;
    }

    .wizard-template-name {
        font-size: 0.8125rem;
    }

    .wizard-template-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
        top: 4px;
        right: 4px;
    }

    .wizard-template-check {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        top: 6px;
        left: 6px;
    }
}

.wizard-template {
    background: var(--wizard-card-bg);
    border: 3px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.wizard-template:hover {
    border-color: var(--wizard-primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.wizard-template.selected {
    border-color: var(--wizard-primary);
    box-shadow:
        0 0 0 4px var(--wizard-primary-glow),
        0 8px 20px rgba(37, 99, 235, 0.25);
    transform: scale(1.02);
    animation: wizardTemplateSelect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizardTemplateSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

.wizard-template-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--wizard-warning);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    z-index: 1;
}

.wizard-template-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--wizard-bg);
}

.wizard-template-info {
    padding: 0.75rem 1rem;
    text-align: center;
}

.wizard-template-name {
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0;
}

.wizard-template-check {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--wizard-success) 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.wizard-template.selected .wizard-template-check {
    display: flex;
    animation: wizardCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Logo Upload
   -------------------------------------------------------------------------- */
.wizard-upload {
    border: 2px dashed var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--wizard-transition);
    background: var(--wizard-bg);
    position: relative;
}

.wizard-upload:hover {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary-glow);
}

.wizard-upload-icon {
    font-size: 2.5rem;
    color: var(--wizard-primary);
    margin-bottom: 0.75rem;
}

.wizard-upload-text {
    color: var(--wizard-text);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.wizard-upload-hint {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
}

.wizard-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.wizard-upload-preview {
    max-width: 120px;
    max-height: 120px;
    margin: 1rem auto 0;
    border-radius: var(--wizard-radius-md);
    display: none;
}

.wizard-upload.has-file .wizard-upload-preview {
    display: block;
}

.wizard-upload.has-file .wizard-upload-icon,
.wizard-upload.has-file .wizard-upload-text,
.wizard-upload.has-file .wizard-upload-hint {
    display: none;
}

.wizard-skip-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--wizard-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.wizard-skip-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Reward Type Selection
   -------------------------------------------------------------------------- */
.wizard-reward-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-reward-type {
    padding: 1.25rem;
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--wizard-transition);
    position: relative;
}

.wizard-reward-type:hover {
    border-color: var(--wizard-primary-light);
}

.wizard-reward-type.active {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary-glow);
}

.wizard-reward-type.active::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--wizard-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-reward-type-icon {
    font-size: 1.75rem;
    color: var(--wizard-primary);
    margin-bottom: 0.5rem;
}

.wizard-reward-type-title {
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: 0.25rem;
}

.wizard-reward-type-desc {
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
}

/* --------------------------------------------------------------------------
   Stamps Slider
   -------------------------------------------------------------------------- */
.wizard-slider-group {
    margin-bottom: 1.5rem;
}

.wizard-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.wizard-slider-value {
    font-weight: 700;
    color: var(--wizard-primary);
    font-size: 1.125rem;
}

.wizard-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--wizard-border);
    appearance: none;
    outline: none;
}

.wizard-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wizard-primary);
    cursor: pointer;
    box-shadow: var(--wizard-shadow-md);
    transition: transform var(--wizard-transition);
}

.wizard-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.wizard-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wizard-primary);
    cursor: pointer;
    border: none;
}

/* --------------------------------------------------------------------------
   Bonus Stamps Control
   -------------------------------------------------------------------------- */
.wizard-bonus-control {
    background: var(--wizard-success-light);
    border-radius: var(--wizard-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.wizard-bonus-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wizard-bonus-badge {
    background: var(--wizard-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.wizard-bonus-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.wizard-bonus-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--wizard-text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--wizard-transition);
    box-shadow: var(--wizard-shadow-sm);
}

.wizard-bonus-btn:hover:not(:disabled) {
    background: var(--wizard-success);
    color: white;
}

.wizard-bonus-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-bonus-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-success);
    min-width: 40px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Multiple Rewards Grid
   -------------------------------------------------------------------------- */
.wizard-rewards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.wizard-stamp-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--wizard-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--wizard-transition);
    background: var(--wizard-card-bg);
    margin: 0 auto;
}

.wizard-stamp-circle:hover {
    border-color: var(--wizard-primary-light);
    background: var(--wizard-primary-glow);
}

.wizard-stamp-circle.selected {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary);
    color: white;
}

/* Stamp wrapper for circle + inline icons */
.wizard-stamp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 44px;
}

/* Icon container with label */
.wizard-inline-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.wizard-inline-icon-label {
    font-size: 0.65rem;
    color: var(--wizard-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inline icon picker (appears under selected stamp) */
.wizard-inline-icon-picker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.wizard-inline-icon-btn {
    width: 24px;
    height: 24px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-inline-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

.wizard-inline-icon-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

.wizard-inline-icon-btn.selected {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary);
}

/* Compact icon indicator (shown when not expanded) */
.wizard-compact-icon-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
    border: 2px solid var(--wizard-primary);
}

.wizard-compact-icon-indicator img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(1.2);
}

.wizard-compact-icon-indicator:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.8);
}

/* Expanded icon picker row */
.wizard-expanded-icon-row {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--wizard-primary);
    border-radius: var(--wizard-radius-md);
    padding: 1rem;
    margin-top: 1rem;
    animation: wizardExpandIn 0.3s ease;
}

@keyframes wizardExpandIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-expanded-icon-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--wizard-text-secondary);
    margin-bottom: 0.75rem;
}

.wizard-expanded-icon-label i {
    color: var(--wizard-primary);
}

.wizard-expanded-icon-label strong {
    color: var(--wizard-primary);
    font-weight: 700;
}

.wizard-expanded-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wizard-expanded-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.wizard-expanded-icon-btn .wizard-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-expanded-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
}

.wizard-expanded-icon-btn span {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
    font-weight: 500;
}

.wizard-expanded-icon-btn:hover {
    border-color: var(--wizard-primary);
    background: rgba(0, 169, 240, 0.05);
    transform: translateY(-2px);
}

.wizard-expanded-icon-btn:hover .wizard-icon-circle {
    background: rgba(0, 0, 0, 0.8);
}

.wizard-expanded-icon-btn.selected {
    border-color: var(--wizard-primary);
    background: rgba(0, 169, 240, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 169, 240, 0.15);
}

.wizard-expanded-icon-btn.selected .wizard-icon-circle {
    background: var(--wizard-primary);
}

.wizard-expanded-icon-btn.selected span {
    color: var(--wizard-primary);
    font-weight: 600;
}

/* Card updated alert - fixed bottom toast */
.wizard-card-updated-alert {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--wizard-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: calc(100% - 2rem);
}

.wizard-card-updated-alert.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.wizard-card-updated-alert i.fa-check-circle {
    color: #4ade80;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.4));
}

.wizard-card-updated-alert span {
    flex: 1;
    font-size: 0.9375rem;
    color: white;
    font-weight: 500;
}

.wizard-alert-preview-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, #0095cc 100%);
    color: white;
    border: none;
    border-radius: var(--wizard-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 169, 240, 0.3);
}

.wizard-alert-preview-btn i {
    color: white !important;
    font-size: 0.9rem !important;
    filter: none !important;
}

.wizard-alert-preview-btn:hover {
    background: linear-gradient(135deg, #0095cc 0%, #0077a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 169, 240, 0.4);
}

/* --------------------------------------------------------------------------
   Success Step
   -------------------------------------------------------------------------- */
.wizard-success {
    text-align: center;
    padding: 1rem 0;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--wizard-success-light);
    color: var(--wizard-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: wizardSuccessPop 0.5s ease;
}

@keyframes wizardSuccessPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wizard-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
}

.wizard-success-text {
    color: var(--wizard-text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-success-cta {
    background: var(--wizard-primary-glow);
    border-radius: var(--wizard-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wizard-success-cta p {
    margin-bottom: 1rem;
    color: var(--wizard-text);
}

.wizard-benefits {
    text-align: left;
    border-top: 1px solid var(--wizard-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.wizard-benefits-title {
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: 1rem;
    text-align: center;
}

.wizard-benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 480px) {
    .wizard-benefits-list {
        grid-template-columns: 1fr;
    }
}

.wizard-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--wizard-radius-md);
    transition: background var(--wizard-transition);
}

.wizard-benefits-list li:hover {
    background: var(--wizard-bg);
}

.wizard-benefits-list i {
    color: var(--wizard-primary);
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Info & Notice Boxes
   -------------------------------------------------------------------------- */
.wizard-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #eff6ff;
    border-left: 3px solid var(--wizard-primary);
    border-radius: var(--wizard-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-info-icon {
    color: var(--wizard-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wizard-info-text {
    color: #1e40af;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.wizard-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef3c7;
    border-left: 3px solid var(--wizard-warning);
    border-radius: var(--wizard-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-notice-icon {
    color: var(--wizard-warning);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wizard-notice-text {
    color: #92400e;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Psychology Hint
   -------------------------------------------------------------------------- */
.wizard-psychology {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--wizard-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #bae6fd;
}

.wizard-psychology-header {
    background: #0284c7;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-psychology-header i {
    font-size: 1.25rem;
}

.wizard-psychology-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.wizard-psychology-source {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wizard-psychology-body {
    padding: 1rem;
}

.wizard-psychology-body p {
    margin: 0 0 1rem;
    color: #0c4a6e;
    line-height: 1.5;
}

.wizard-psychology-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.wizard-psychology-stat {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--wizard-radius-md);
    text-align: center;
    box-shadow: var(--wizard-shadow-sm);
}

.wizard-psychology-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wizard-success);
}

.wizard-psychology-stat-label {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.wizard-hidden {
    display: none !important;
}

.wizard-text-center {
    text-align: center;
}

.wizard-mt-1 { margin-top: 0.5rem; }
.wizard-mt-2 { margin-top: 1rem; }
.wizard-mt-3 { margin-top: 1.5rem; }
.wizard-mb-1 { margin-bottom: 0.5rem; }
.wizard-mb-2 { margin-bottom: 1rem; }
.wizard-mb-3 { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Field Validation Errors
   -------------------------------------------------------------------------- */
.wizard-field-error {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--wizard-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: var(--wizard-radius-sm);
    border-left: 3px solid var(--wizard-danger);
    animation: wizardErrorSlide 0.3s ease-out;
}

.wizard-field-error.visible {
    display: flex;
}

.wizard-field-error i {
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.wizard-field-error-center {
    justify-content: center;
    text-align: center;
    border-left: none;
    border: 1px solid #fecaca;
}

@keyframes wizardErrorSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-input-error {
    border-color: var(--wizard-danger) !important;
    background: #fef2f2 !important;
}

.wizard-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Toast Error (for non-field errors) */
.wizard-toast-error {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--wizard-danger);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--wizard-radius-lg);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.wizard-toast-error.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wizard-toast-error i {
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   AI Design Section
   -------------------------------------------------------------------------- */
.wizard-ai-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Transition Screen (between Step 1 and 2)
   -------------------------------------------------------------------------- */
.wizard-transition-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wizardTransitionFadeIn 0.4s ease;
}

@keyframes wizardTransitionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wizard-transition-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    animation: wizardTransitionSlideUp 0.5s ease 0.2s both;
}

@keyframes wizardTransitionSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-transition-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
    animation: wizardTransitionIconPulse 2s ease-in-out infinite;
}

@keyframes wizardTransitionIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(139, 92, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(139, 92, 246, 0.6); }
}

.wizard-transition-icon i {
    font-size: 2.5rem;
    color: white;
}

.wizard-transition-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wizard-transition-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.wizard-transition-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.wizard-transition-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--wizard-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: wizardFeatureSlideIn 0.4s ease backwards;
}

.wizard-transition-feature:nth-child(1) { animation-delay: 0.5s; }
.wizard-transition-feature:nth-child(2) { animation-delay: 0.65s; }
.wizard-transition-feature:nth-child(3) { animation-delay: 0.8s; }

@keyframes wizardFeatureSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-transition-feature i {
    font-size: 1.25rem;
    color: #4ade80;
    width: 24px;
    text-align: center;
}

.wizard-transition-feature span {
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
}

.wizard-transition-btn {
    transition: all 0.4s ease;
}

.wizard-transition-btn.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: wizardTransitionBtnAppear 0.5s ease;
}

@keyframes wizardTransitionBtnAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 2 Intro Screen */
.wizard-step2-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.wizard-intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.wizard-intro-icon i {
    font-size: 2rem;
    color: white;
}

.wizard-step2-intro .wizard-step-title {
    margin-bottom: 1rem;
}

.wizard-intro-text {
    color: var(--wizard-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.wizard-intro-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.wizard-intro-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wizard-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

.wizard-intro-feature i {
    color: var(--wizard-success);
    font-size: 1rem;
}

.wizard-intro-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--wizard-radius-md);
    color: var(--wizard-primary);
    font-size: 0.9375rem;
}

/* Logo Selected Card */
.wizard-logo-selected {
    text-align: center;
    margin-bottom: 0.5rem;
}

.wizard-selected-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wizard-success);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.wizard-selected-header i {
    font-size: 1.125rem;
}

.wizard-selected-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--wizard-radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--wizard-border);
}

.wizard-selected-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--wizard-shadow-md);
    flex-shrink: 0;
}

.wizard-selected-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.wizard-selected-name {
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 1rem;
}

.wizard-btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--wizard-border);
    background: white;
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wizard-text-muted);
    transition: all var(--wizard-transition);
    flex-shrink: 0;
}

.wizard-btn-icon:hover {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
    background: var(--wizard-primary-glow);
}

/* Auto Facebook Card */
.wizard-auto-fb-card {
    margin-bottom: 1.5rem;
    animation: autoFbSlideIn 0.4s ease-out;
}

@keyframes autoFbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-auto-fb-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    color: var(--wizard-primary);
    font-size: 1rem;
}

.wizard-auto-fb-found {
    text-align: center;
}

.wizard-auto-fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wizard-auto-fb-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--wizard-radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--wizard-border);
}

.wizard-auto-fb-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--wizard-shadow-md);
    flex-shrink: 0;
}

.wizard-auto-fb-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.wizard-auto-fb-name {
    display: block;
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 1.125rem;
    line-height: 1.3;
}

.wizard-auto-fb-category {
    display: block;
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wizard-btn-full {
    width: 100%;
    justify-content: center;
}

.wizard-btn-link {
    background: none;
    border: none;
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    transition: color var(--wizard-transition);
}

.wizard-btn-link:hover {
    color: var(--wizard-primary);
    text-decoration: underline;
}

.wizard-ai-header {
    text-align: center;
    margin-bottom: 1rem;
}

.wizard-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wizard-ai-subtitle {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Compact Layout */
.wizard-ai-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Input with icons */
.wizard-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.wizard-input-icon-left {
    position: absolute;
    left: 14px;
    color: #1877f2;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.wizard-input-icon-right {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--wizard-primary);
    color: white;
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wizard-transition);
}

.wizard-input-icon-right:hover {
    background: var(--wizard-primary-dark);
}

.wizard-input-icon-both {
    padding-left: 44px;
    padding-right: 50px;
}

.wizard-ai-divider-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.wizard-ai-divider-compact::before,
.wizard-ai-divider-compact::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wizard-border);
}

.wizard-ai-divider-compact span {
    color: var(--wizard-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Inline Upload */
.wizard-upload-inline {
    display: flex;
    align-items: center;
    border: 2px dashed var(--wizard-border);
    border-radius: var(--wizard-radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--wizard-transition);
    background: white;
}

.wizard-upload-inline:hover,
.wizard-upload-inline.dragover {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary-glow);
}

.wizard-upload-inline-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--wizard-text-muted);
    width: 100%;
}

.wizard-upload-inline-placeholder i {
    font-size: 1.25rem;
    color: var(--wizard-primary);
}

.wizard-upload-inline-placeholder span {
    font-size: 0.9375rem;
}

.wizard-upload-inline-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.wizard-upload-inline-preview img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.wizard-upload-filename {
    flex: 1;
    font-size: 0.875rem;
    color: var(--wizard-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-upload-inline-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--wizard-danger);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--wizard-transition);
    flex-shrink: 0;
}

.wizard-upload-inline-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Facebook Input */
.wizard-facebook-input {
    display: flex;
    gap: 0.5rem;
}

.wizard-facebook-input .wizard-input {
    flex: 1;
}

.wizard-btn-facebook {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1877f2 0%, #0866ff 100%);
    color: white;
    border: none;
    border-radius: var(--wizard-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wizard-transition);
}

.wizard-btn-facebook:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.wizard-btn-facebook:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Facebook Result */
.wizard-facebook-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--wizard-radius-md);
}

.wizard-facebook-result img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.wizard-facebook-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wizard-facebook-info span {
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 0.9375rem;
}

.wizard-facebook-info small {
    color: var(--wizard-text-muted);
    font-size: 0.8125rem;
}

.wizard-btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--wizard-success);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wizard-transition);
}

.wizard-btn-sm:hover {
    transform: scale(1.1);
}

.wizard-btn-sm.selected {
    background: var(--wizard-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* AI Divider */
.wizard-ai-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.wizard-ai-divider::before,
.wizard-ai-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wizard-border);
}

.wizard-ai-divider span {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Generate Button */
.wizard-ai-generate {
    margin-top: 1.25rem;
    text-align: center;
}

.wizard-btn-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--wizard-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.wizard-btn-ai:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.wizard-btn-ai:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wizard-btn-ai i {
    font-size: 1.125rem;
}

/* AI Loading */
.wizard-ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--wizard-text-muted);
}

.wizard-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--wizard-border);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: wizardSpin 0.8s linear infinite;
}

@keyframes wizardSpin {
    to { transform: rotate(360deg); }
}

/* Templates Header */
.wizard-templates-header {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wizard-templates-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wizard-text-muted);
    text-align: center;
    margin: 0;
}

/* AI Template Badge */
.wizard-template-badge-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.wizard-template-ai {
    border-color: #8b5cf6;
    position: relative;
    overflow: hidden;
}

.wizard-template-ai::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 0;
}

.wizard-template-ai:hover {
    border-color: #8b5cf6;
}

.wizard-template-ai.selected {
    border-color: #8b5cf6;
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.2),
        0 8px 20px rgba(139, 92, 246, 0.25);
}

/* AI Result Info (shown below the generated design) */
.wizard-ai-result-info {
    padding: 1rem 0.5rem 0.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wizard-ai-result-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wizard-success);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.wizard-ai-result-header i {
    font-size: 1.25rem;
    animation: wizardSparkle 1.5s ease-in-out infinite;
}

@keyframes wizardSparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.wizard-ai-result-text {
    font-size: 0.875rem;
    color: var(--wizard-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.wizard-ai-fallback-text {
    width: 100%;
    text-align: center;
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    margin: 0.5rem 0 0.75rem 0;
    padding: 0;
}

.wizard-show-templates-btn {
    display: block;
    margin: 0 auto 1.5rem auto;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    color: var(--wizard-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-show-templates-btn:hover {
    background: var(--wizard-bg-hover);
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
}

/* AI Template - Full Width */
.wizard-template-fullwidth {
    width: 100%;
    margin-bottom: 1rem;
}

.wizard-template-fullwidth .wizard-template-image {
    aspect-ratio: 16/9;
    max-height: 280px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Template image animation */
.wizard-template-image {
    transition: opacity 0.4s ease-in-out;
}

.wizard-template-image.fading {
    opacity: 0.3;
}

@media (max-width: 540px) {
    .wizard-template-fullwidth .wizard-template-image {
        max-height: 200px;
    }
}

/* AI Proposals Grid - Multiple design options */
.wizard-ai-proposals {
    width: 100%;
    margin-bottom: 1.5rem;
}

.wizard-ai-proposals-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--wizard-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.wizard-ai-proposals-header i {
    color: #8b5cf6;
    animation: wizardSparkle 1.5s ease-in-out infinite;
}

.wizard-ai-proposals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .wizard-ai-proposals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .wizard-ai-proposals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.wizard-ai-proposal {
    position: relative;
    border-radius: 12px;
    border: 2px solid var(--wizard-border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    aspect-ratio: 16/10;
}

.wizard-ai-proposal:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.wizard-ai-proposal.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(139, 92, 246, 0.25);
}

.wizard-ai-proposal.selected .wizard-ai-proposal-check {
    opacity: 1;
    transform: scale(1);
}

.wizard-ai-proposal-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    z-index: 10;
}

.wizard-ai-proposal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(99, 102, 241, 0.12) 50%,
        rgba(139, 92, 246, 0.08) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: var(--wizard-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.wizard-ai-proposal-loading span {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.wizard-ai-proposal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    position: relative;
    animation: spinnerPulse 2s ease-in-out infinite;
}

.wizard-ai-proposal-spinner::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 3px solid transparent;
    border-top-color: #8b5cf6;
    border-right-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.wizard-ai-proposal-spinner::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 2px solid transparent;
    border-bottom-color: #a78bfa;
    border-left-color: #818cf8;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinnerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.wizard-ai-proposal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.wizard-ai-proposal-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wizard-ai-proposal.has-error .wizard-ai-proposal-loading {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.wizard-ai-proposal.has-error .wizard-ai-proposal-spinner {
    display: none;
}

.wizard-ai-proposal.has-error .wizard-ai-proposal-loading::after {
    content: '✕';
    font-size: 1.5rem;
    color: #ef4444;
}

/* Step 3 Layout */
.wizard-step3-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Card Preview */
.wizard-step3-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--wizard-radius-lg);
    padding: 1.25rem;
    text-align: center;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.wizard-preview-card {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.wizard-preview-card img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.wizard-preview-info {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
}

.wizard-preview-separator {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* Preview Toggle */
.wizard-preview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.wizard-preview-toggle input[type="checkbox"] {
    display: none;
}

.wizard-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.wizard-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wizard-preview-toggle input:checked + .wizard-toggle-slider {
    background: var(--wizard-primary);
}

.wizard-preview-toggle input:checked + .wizard-toggle-slider::after {
    left: calc(100% - 18px);
    background: #fff;
}

.wizard-toggle-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
}

.wizard-preview-toggle:hover .wizard-toggle-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Settings Panel */
.wizard-step3-settings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Setting Section */
.wizard-setting-section {
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.wizard-setting-section.collapsed {
    background: var(--wizard-bg);
}

.wizard-setting-section.collapsed .wizard-setting-content {
    display: none;
}

.wizard-setting-section.collapsed .wizard-setting-compact {
    display: flex !important;
}

.wizard-setting-section.collapsed .wizard-setting-header {
    border-bottom: none;
}

.wizard-setting-section.collapsed .wizard-setting-number {
    background: var(--wizard-success);
    font-size: 0;
}

.wizard-setting-section.collapsed .wizard-setting-number::after {
    content: '\2713';
    font-size: 0.75rem;
    font-weight: 700;
}

.wizard-setting-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border-bottom: 1px solid var(--wizard-border);
    transition: background 0.2s ease;
    user-select: none;
}

.wizard-setting-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.wizard-setting-section.collapsed .wizard-setting-header:hover {
    background: rgba(37, 99, 235, 0.05);
}

.wizard-setting-number {
    width: 24px;
    height: 24px;
    background: var(--wizard-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wizard-setting-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--wizard-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.wizard-setting-toggle {
    margin-left: auto;
    color: var(--wizard-text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.wizard-setting-section.collapsed .wizard-setting-toggle {
    transform: rotate(-90deg);
}

.wizard-setting-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.wizard-setting-content {
    padding: 1rem;
}

.wizard-setting-compact {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--wizard-bg);
}

.wizard-compact-value {
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 0.9375rem;
}

.wizard-compact-change {
    background: var(--wizard-primary-glow);
    border: 1px solid var(--wizard-primary);
    color: var(--wizard-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.wizard-compact-change:hover {
    background: var(--wizard-primary);
    color: white;
}

/* Section Confirm Button */
.wizard-section-confirm {
    margin-top: 1rem;
    width: 100%;
}

/* Hidden sections */
.wizard-setting-section.hidden {
    display: none !important;
}

/* Custom Stamp Picker */
.wizard-stamp-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.wizard-picker-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--wizard-border);
    background: var(--wizard-bg);
    color: var(--wizard-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wizard-picker-btn:hover:not(:disabled) {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
    background: rgba(99, 102, 241, 0.1);
}

.wizard-picker-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-stamp-track {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 280px;
    justify-content: center;
    position: relative;
}

.wizard-stamp-dot {
    width: var(--dot-size, 16px);
    height: var(--dot-size, 16px);
    border-radius: 50%;
    background: var(--wizard-primary);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.wizard-stamp-connector {
    width: var(--connector-width, 8px);
    height: 3px;
    background: var(--wizard-primary);
    transition: background 0.2s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.wizard-stamp-count-display {
    text-align: center;
    margin-top: 0.75rem;
}

#stamp-count-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wizard-primary);
    line-height: 1;
}

.wizard-stamp-count-label {
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
    margin-left: 0.25rem;
}

/* Bonus Picker */
.wizard-bonus-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.wizard-bonus-display {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wizard-bonus-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.wizard-bonus-hint {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
}

/* Reward Options */
.wizard-reward-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-reward-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--wizard-card-bg);
}

.wizard-reward-option:hover {
    border-color: var(--wizard-primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.wizard-reward-option.active {
    border-color: var(--wizard-primary);
    background: rgba(99, 102, 241, 0.1);
}

.wizard-reward-option i {
    font-size: 1.25rem;
    color: var(--wizard-primary);
    width: 28px;
    text-align: center;
}

.wizard-reward-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.wizard-reward-option-text strong {
    font-size: 0.875rem;
    color: var(--wizard-text);
}

.wizard-reward-option-text span {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wizard-step3-layout {
        grid-template-columns: 1fr;
    }

    .wizard-step3-preview {
        position: relative;
        top: 0;
    }

    .wizard-preview-card img {
        max-height: 180px;
        width: auto;
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .wizard-step3-preview {
        padding: 1rem;
    }

    .wizard-preview-card img {
        max-height: 140px;
    }

    .wizard-setting-header {
        padding: 0.75rem;
    }

    .wizard-setting-content {
        padding: 0.75rem;
    }

    .wizard-stamp-track {
        max-width: 220px;
        --dot-size: 10px !important;
        --connector-width: 4px !important;
    }

    #stamp-count-number {
        font-size: 1.5rem;
    }

    .wizard-bonus-display {
        width: 50px;
        height: 50px;
    }

    .wizard-bonus-number {
        font-size: 1.5rem;
    }

    .wizard-picker-btn {
        width: 32px;
        height: 32px;
    }
}

/* Responsive adjustments */
@media (max-width: 540px) {
    .wizard-ai-section {
        padding: 1rem;
    }

    .wizard-ai-subtitle {
        font-size: 0.8125rem;
    }

    .wizard-upload-inline-placeholder span {
        font-size: 0.8125rem;
    }

    .wizard-ai-generate {
        margin-top: 1rem;
    }

    .wizard-btn-ai {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Pricing Drawer
   -------------------------------------------------------------------------- */
.wizard-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.wizard-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.wizard-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--wizard-card-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.wizard-drawer.open {
    transform: translateX(0);
}

.wizard-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wizard-border);
    flex-shrink: 0;
}

.wizard-drawer-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wizard-text);
}

.wizard-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--wizard-text-muted);
    font-size: 1.125rem;
    cursor: pointer;
    border-radius: var(--wizard-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wizard-transition);
}

.wizard-drawer-close:hover {
    background: var(--wizard-bg);
    color: var(--wizard-text);
}

.wizard-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

/* Pricing Motivational Highlight */
.wizard-pricing-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #d1e7fd 100%);
    border: 1px solid #0066cc;
    border-radius: var(--wizard-radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.wizard-pricing-highlight i {
    color: #0066cc;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.wizard-pricing-highlight p {
    margin: 0;
    color: #0052a3;
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.8125rem;
}

.wizard-pricing-highlight .highlight-intro {
    font-size: 0.875rem;
    font-weight: 600;
    color: #003580;
}

.wizard-pricing-highlight strong {
    font-weight: 700;
    color: #003580;
}

/* Pricing Trial Banner */
.wizard-pricing-trial {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: var(--wizard-radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.wizard-pricing-trial i {
    font-size: 1.5rem;
    color: #10b981;
}

.wizard-pricing-trial div {
    display: flex;
    flex-direction: column;
}

.wizard-pricing-trial strong {
    font-size: 0.9375rem;
    color: #047857;
}

.wizard-pricing-trial span {
    font-size: 0.8125rem;
    color: #059669;
}

/* Pricing Grid */
.wizard-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-pricing-card {
    background: white;
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wizard-pricing-card.wizard-pricing-popular {
    border: 2px solid #ff6b35;
}

.wizard-pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b35;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: 0 var(--wizard-radius-md) 0 var(--wizard-radius-sm);
}

.wizard-pricing-header {
    padding: 0.875rem 1rem;
}

.wizard-pricing-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-pricing-lite {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

.wizard-pricing-growth {
    background: linear-gradient(135deg, #fff4e5 0%, #ffe8cc 100%);
}

.wizard-pricing-premium {
    background: linear-gradient(135deg, #f0f0ff 0%, #e5e5ff 100%);
}

.wizard-pricing-name {
    font-size: 1rem;
    font-weight: 700;
}

.wizard-pricing-lite .wizard-pricing-name {
    color: #0066cc;
}

.wizard-pricing-growth .wizard-pricing-name {
    color: #ff6b35;
}

.wizard-pricing-premium .wizard-pricing-name {
    color: #6b46c1;
}

.wizard-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.wizard-pricing-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
}

.wizard-pricing-currency {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wizard-text);
}

.wizard-pricing-period {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

.wizard-pricing-features {
    list-style: none;
    margin: 0;
    padding: 0.625rem 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.wizard-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--wizard-text);
    line-height: 1.3;
}

.wizard-pricing-features li i {
    font-size: 0.75rem;
    color: var(--wizard-primary);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.wizard-pricing-features li span {
    flex: 1;
}

.wizard-pricing-card:first-child .wizard-pricing-features li i {
    color: #0066cc;
}

.wizard-pricing-popular .wizard-pricing-features li i {
    color: #ff6b35;
}

.wizard-pricing-card:last-child .wizard-pricing-features li i {
    color: #6b46c1;
}

.wizard-pricing-note {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.wizard-drawer-close-bottom {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 540px) {
    .wizard-drawer {
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Step 2: Immersive Search Section
   -------------------------------------------------------------------------- */
.wizard-manual-search-section {
    animation: wizardFadeIn 0.4s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Hero */
.wizard-search-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-search-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.wizard-search-hero-icon i {
    font-size: 1.75rem;
    color: white;
}

.wizard-search-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin: 0 0 0.5rem 0;
}

.wizard-search-hero-subtitle {
    color: var(--wizard-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Search Container */
.wizard-search-container {
    margin-bottom: 1.5rem;
}

.wizard-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--wizard-card-bg);
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--wizard-shadow-md);
}

.wizard-search-input-wrapper:focus-within {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 4px var(--wizard-primary-glow), var(--wizard-shadow-lg);
}

.wizard-search-fb-icon {
    font-size: 1.5rem;
    color: #1877f2;
    margin-left: 1rem;
    margin-right: 0.75rem;
}

.wizard-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--wizard-text);
    padding: 0.75rem 0.5rem;
    outline: none;
}

.wizard-search-input::placeholder {
    color: var(--wizard-text-muted);
}

.wizard-search-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    border: none;
    border-radius: var(--wizard-radius-md);
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wizard-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.wizard-search-btn:active {
    transform: scale(0.98);
}

.wizard-search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
}

.wizard-search-hint i {
    color: var(--wizard-warning);
}

/* Search Loading State */
.wizard-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--wizard-radius-lg);
    border: 1px solid #bae6fd;
}

.wizard-search-loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-search-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1877f2;
    opacity: 0.2;
    animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {
    0% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.15; }
    100% { transform: scale(0.8); opacity: 0.4; }
}

.wizard-search-loading-animation i {
    font-size: 2rem;
    color: #1877f2;
    z-index: 1;
}

.wizard-search-loading span {
    font-size: 1rem;
    color: #0369a1;
    font-weight: 500;
}

/* Search Result */
.wizard-search-result {
    background: var(--wizard-card-bg);
    border: 2px solid var(--wizard-success);
    border-radius: var(--wizard-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: wizardSlideUp 0.4s ease;
}

@keyframes wizardSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-search-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wizard-search-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--wizard-radius-md);
    margin-bottom: 1.25rem;
}

.wizard-search-result-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--wizard-shadow-md);
    flex-shrink: 0;
}

.wizard-search-result-info {
    flex: 1;
    min-width: 0;
}

.wizard-search-result-name {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--wizard-text);
    margin-bottom: 0.25rem;
}

.wizard-search-result-category {
    display: block;
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
}

/* Search Divider */
.wizard-search-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.wizard-search-divider::before,
.wizard-search-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wizard-border);
}

.wizard-search-divider span {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Upload Zone */
.wizard-upload-zone {
    border: 2px dashed var(--wizard-border);
    border-radius: var(--wizard-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.wizard-upload-zone:hover,
.wizard-upload-zone.dragover {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
}

.wizard-upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.wizard-upload-zone-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.wizard-upload-zone-icon i {
    font-size: 1.5rem;
    color: white;
}

.wizard-upload-zone-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wizard-text);
}

.wizard-upload-zone-hint {
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
}

.wizard-upload-zone-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--wizard-radius-md);
    box-shadow: var(--wizard-shadow-sm);
}

.wizard-upload-zone-preview img {
    width: 56px;
    height: 56px;
    border-radius: var(--wizard-radius-md);
    object-fit: cover;
}

.wizard-upload-zone-preview-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.wizard-upload-zone-preview .wizard-upload-filename {
    font-weight: 500;
    color: var(--wizard-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-upload-zone-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--wizard-danger);
    color: var(--wizard-danger);
    border-radius: var(--wizard-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wizard-upload-zone-remove:hover {
    background: var(--wizard-danger);
    color: white;
}

/* Generate Section */
.wizard-search-generate {
    margin-top: 1.5rem;
    text-align: center;
}

/* AI Loading Overlay */
.wizard-ai-loading-overlay {
    position: fixed;
    inset: 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    animation: wizardOverlayAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.wizard-ai-loading-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: wizardAmbientGlow 8s ease-in-out infinite;
}

@keyframes wizardAmbientGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes wizardOverlayAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
        border-radius: 48px;
    }
    to {
        opacity: 1;
        transform: scale(1);
        border-radius: 24px;
    }
}

.wizard-ai-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wizard-ai-loading-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: wizardIconFloat 3s ease-in-out infinite, wizardGradientShift 4s ease infinite;
}

.wizard-ai-loading-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa, #8b5cf6);
    background-size: 300% 300%;
    animation: wizardRingRotate 3s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

.wizard-ai-loading-icon::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(139, 92, 246, 0.5);
    border-right-color: rgba(99, 102, 241, 0.3);
    animation: wizardOrbitSpin 2s linear infinite;
}

@keyframes wizardIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wizardGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes wizardRingRotate {
    0% { background-position: 0% 50%; filter: blur(8px); }
    50% { filter: blur(12px); }
    100% { background-position: 100% 50%; filter: blur(8px); }
}

@keyframes wizardOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wizard-ai-loading-icon i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: wizardIconSparkle 2s ease-in-out infinite;
}

@keyframes wizardIconSparkle {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)); }
}

.wizard-ai-loading-content > span {
    font-size: 1.35rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: wizardTextPulse 2s ease-in-out infinite;
}

@keyframes wizardTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.wizard-ai-loading-bar {
    width: 240px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.wizard-ai-loading-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: wizardBarShimmer 2s ease-in-out infinite;
}

@keyframes wizardBarShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wizard-ai-loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #6366f1, #8b5cf6);
    background-size: 300% 100%;
    animation: wizardAiBarFill 2s ease-in-out infinite;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

@keyframes wizardAiBarFill {
    0% { width: 15%; background-position: 0% 0; }
    50% { width: 85%; background-position: 100% 0; }
    100% { width: 15%; background-position: 0% 0; }
}

/* Floating Continue Button (after AI generation) */
.wizard-floating-continue {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: wizardFloatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizardFloatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-floating-continue .wizard-btn {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.1);
    animation: wizardFloatPulse 2s ease-in-out infinite;
}

@keyframes wizardFloatPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5), 0 0 0 8px rgba(37, 99, 235, 0.08);
    }
}

@media (max-width: 540px) {
    .wizard-search-hero-icon {
        width: 60px;
        height: 60px;
    }

    .wizard-search-hero-icon i {
        font-size: 1.5rem;
    }

    .wizard-search-hero-title {
        font-size: 1.25rem;
    }

    .wizard-search-input {
        font-size: 1rem;
    }

    .wizard-search-btn {
        width: 42px;
        height: 42px;
    }

    .wizard-upload-zone {
        padding: 1.5rem 1rem;
    }

    .wizard-upload-zone-icon {
        width: 52px;
        height: 52px;
    }

    .wizard-floating-continue {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .wizard-floating-continue .wizard-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Step 2 Bottom Drawer */
.wizard-step2-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.5rem));
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wizardDrawerSlideUp 0.3s ease;
}

@keyframes wizardDrawerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wizard-step2-drawer .wizard-btn {
    min-width: 200px;
    justify-content: center;
}

@media (max-width: 768px) {
    .wizard-step2-drawer {
        padding: 1rem;
    }

    .wizard-step2-drawer .wizard-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Stamp Icon Selection (Step 3 - for AI designs)
   -------------------------------------------------------------------------- */
.wizard-stamp-icon-selection {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wizard-border);
}

.wizard-stamp-icon-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-stamp-icon-header i {
    color: var(--wizard-primary);
}

.wizard-stamp-icon-subheader {
    font-size: 0.8rem;
    color: var(--wizard-text-muted);
    margin-bottom: 0.75rem;
}

.wizard-stamp-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.stamp-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--wizard-border);
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stamp-icon-card:hover {
    border-color: var(--wizard-primary-light);
}

.stamp-icon-card.selected {
    border-color: var(--wizard-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.stamp-icon-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--wizard-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    z-index: 1;
}

.stamp-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-icon-preview img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.stamp-icon-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--wizard-text-muted);
    text-align: center;
}

.stamp-icon-card.selected .stamp-icon-label {
    color: var(--wizard-success);
}

.stamp-icon-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.stamp-icon-loading {
    color: var(--wizard-text-muted);
    font-size: 0.9rem;
}

.stamp-icon-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stamp-icon-card:not(.loading) .stamp-icon-loading {
    display: none;
}

@media (max-width: 480px) {
    .wizard-stamp-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact Stamp Icon View (after selection) */
.wizard-stamp-icon-compact {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wizard-success);
    background: rgba(16, 185, 129, 0.05);
}

.stamp-compact-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stamp-compact-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 2px solid var(--wizard-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stamp-compact-preview img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.stamp-compact-info {
    flex: 1;
    min-width: 0;
}

.stamp-compact-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wizard-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stamp-compact-label i {
    color: var(--wizard-success);
    font-size: 0.75rem;
}

.stamp-compact-sublabel {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

.wizard-compact-change {
    background: white;
    border: 1px solid var(--wizard-border);
    color: var(--wizard-text);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wizard-compact-change:hover {
    background: var(--wizard-primary);
    border-color: var(--wizard-primary);
    color: white;
}

.wizard-compact-change i {
    font-size: 0.65rem;
}

/* Cycling animation for stamp preview */
.stamp-icon-card.cycling {
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Step 4: Registration Form */
.wizard-registration {
    text-align: center;
    padding: 0.5rem 0;
}

.wizard-reg-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.wizard-reg-icon i {
    font-size: 1.5rem;
    color: var(--wizard-success);
}

.wizard-reg-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 0.5rem;
}

.wizard-reg-subtitle {
    font-size: 1rem;
    color: var(--wizard-text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.wizard-reg-subtitle strong {
    color: var(--wizard-text);
    font-weight: 700;
}

.wizard-reg-email-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.wizard-reg-email-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
    flex-shrink: 0;
}

.wizard-reg-email-icon i {
    font-size: 1rem;
    color: var(--wizard-primary);
}

.wizard-reg-email-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
}

.wizard-reg-email-label {
    font-size: 0.8rem;
    color: var(--wizard-text-muted);
    line-height: 1.3;
}

.wizard-reg-email-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wizard-primary);
    word-break: break-all;
    line-height: 1.3;
}

.wizard-password-form {
    max-width: 320px;
    margin: 0 auto;
}

.wizard-password-prompt {
    color: var(--wizard-text);
    font-size: 0.9rem;
    margin-bottom: 0.625rem;
    text-align: center;
}

.wizard-password-form .wizard-field {
    margin-bottom: 0.875rem;
}

.wizard-password-form .wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--wizard-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.wizard-password-form .wizard-input:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.wizard-password-form .wizard-field.has-error .wizard-input {
    border-color: var(--wizard-danger);
}

.wizard-password-form .wizard-field-error {
    display: none;
    color: var(--wizard-danger);
    font-size: 0.8125rem;
    text-align: left;
    margin-top: 0.375rem;
}

.wizard-password-form .wizard-field.has-error .wizard-field-error {
    display: block;
}

.wizard-btn-register {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.wizard-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.wizard-btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wizard-reg-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.wizard-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.625rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

.wizard-reg-badge i {
    font-size: 0.7rem;
}

.wizard-reg-badge-free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
    font-weight: 600;
}

.wizard-reg-badge-free i {
    color: #10b981;
}
