/**
 * Modern Product Wizard - Mobile First Design
 * Cool, smooth, TikTok Shop-inspired
 */

/* ============================================
   BASE & RESET
   ============================================ */

* {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   CONTAINER
   ============================================ */

.wizard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

@media (min-width: 768px) {
    .wizard-container {
        max-width: 1000px;
        padding: 32px 24px;
    }
}

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

.wizard-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px;
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wizard-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
}

@media (min-width: 768px) {
    .wizard-title {
        font-size: 32px;
    }

    .wizard-subtitle {
        font-size: 16px;
    }
}

/* ============================================
   STEP PROGRESS INDICATOR
   ============================================ */

.wizard-progress {
    margin: 24px auto 32px;
    max-width: 600px;
    padding: 0 16px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    color: #868e96;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #868e96;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Active step */
.step.active .step-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.step.active .step-label {
    color: #6366f1;
    font-weight: 700;
}

/* Completed step */
.step.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.step.completed .step-label {
    color: #10b981;
}

/* Step connecting lines */
.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 -8px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
        max-width: 80px;
        white-space: normal;
        line-height: 1.2;
    }

    .wizard-progress {
        margin: 16px auto 24px;
    }
}

/* ============================================
   FORM
   ============================================ */

.wizard-form {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out 0.1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.wizard-section {
    padding: 24px 16px;
    border-bottom: 1px solid #f1f3f5;
    animation: slideIn 0.4s ease-out;
}

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

@media (min-width: 768px) {
    .wizard-section {
        padding: 32px 40px;
    }
}

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

/* Step containers */
.wizard-step {
    animation: fadeIn 0.5s ease-out;
}

.wizard-section-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-section-title:before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .wizard-section-title {
        font-size: 21px;
    }
}

/* ============================================
   FIELDS GRID
   ============================================ */

.wizard-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .wizard-fields-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ============================================
   INDIVIDUAL FIELDS
   ============================================ */

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-field-full {
    grid-column: 1 / -1;
}

.wizard-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-mark {
    color: #ef4444;
    font-weight: 700;
}

/* ============================================
   INPUTS & CONTROLS
   ============================================ */

.wizard-input,
.wizard-select,
.wizard-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.wizard-input:focus,
.wizard-select:focus,
.wizard-textarea:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.wizard-input:hover:not(:focus),
.wizard-select:hover:not(:focus),
.wizard-textarea:hover:not(:focus) {
    border-color: #cbd5e1;
    background: white;
}

/* Error state */
.wizard-input.error,
.wizard-select.error,
.wizard-textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
    color: #94a3b8;
}

.wizard-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.wizard-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

/* ============================================
   IMAGE UPLOAD SECTION
   ============================================ */

.wizard-image-upload {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.wizard-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.wizard-upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.wizard-upload-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.wizard-upload-btn i {
    font-size: 20px;
}

.wizard-upload-hint {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 0;
}

.wizard-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .wizard-image-preview {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

.wizard-image-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.wizard-image-preview img:hover {
    border-color: #6366f1;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ACTIONS
   ============================================ */

.wizard-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (min-width: 640px) {
    .wizard-actions {
        flex-direction: row;
        justify-content: flex-end;
        padding: 28px 40px;
    }
}

.wizard-btn {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.wizard-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wizard-btn:active:before {
    width: 300px;
    height: 300px;
}

@media (min-width: 640px) {
    .wizard-btn {
        padding: 14px 28px;
        width: auto;
    }
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.wizard-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.wizard-btn-primary:active {
    transform: translateY(-1px);
}

.wizard-btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wizard-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wizard-btn-secondary:active {
    transform: translateY(0);
}

.wizard-btn-outline {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.wizard-btn-outline:hover {
    background: #f0f4ff;
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.wizard-btn-outline:active {
    transform: translateY(0);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 640px) {
    .wizard-header {
        padding: 24px 16px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .wizard-form {
        border-radius: 20px;
    }

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

    .wizard-input,
    .wizard-select,
    .wizard-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .wizard-btn {
        width: 100%;
        padding: 18px 24px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    flex-direction: column;
    gap: 16px;
}

.wizard-loading:after {
    content: '';
    width: 32px;
    height: 32px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

.wizard-section,
.wizard-field {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.wizard-input:focus-visible,
.wizard-select:focus-visible,
.wizard-textarea:focus-visible,
.wizard-btn:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ERROR/VALIDATION STATES
   ============================================ */

.wizard-input:invalid:not(:placeholder-shown),
.wizard-select:invalid:not(:placeholder-shown),
.wizard-textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: #fef2f2;
}

.wizard-input:invalid:not(:placeholder-shown):focus,
.wizard-select:invalid:not(:placeholder-shown):focus,
.wizard-textarea:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* ============================================
   SUCCESS/COMPLETED STATES
   ============================================ */

.wizard-input.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.wizard-input.success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* ============================================
   TOOLTIPS & HINTS
   ============================================ */

.wizard-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.wizard-hint i {
    color: #6366f1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (min-width: 1024px) {
    .wizard-container {
        padding: 48px 32px;
    }

    .wizard-form {
        border-radius: 28px;
    }
}

/* ============================================
   VARIATIONS SECTION
   ============================================ */

.variations-toggle {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.variation-toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.variation-toggle-option:hover {
    background: white;
    border-color: #cbd5e1;
}

.variation-toggle-option:has(input:checked) {
    background: white;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.variation-toggle-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.variation-toggle-option span {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

#variations-container {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

#variations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.variation-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    animation: slideInUp 0.3s ease-out;
}

.variation-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .variation-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .variation-fields {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 639px) {
    .variations-toggle {
        flex-direction: column;
    }
}

.variation-remove-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fef2f2;
    color: #ef4444;
    border: 2px solid #fecaca;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.variation-remove-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.1);
}

.variation-remove-btn:active {
    transform: scale(0.95);
}

.wizard-btn-add-variation {
    width: 100%;
    padding: 16px 24px;
    background: white;
    border: 2px dashed #cbd5e1;
    color: #6366f1;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wizard-btn-add-variation:hover {
    background: #f8fafc;
    border-color: #6366f1;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.wizard-btn-add-variation:active {
    transform: translateY(0);
}

.wizard-btn-add-variation i {
    font-size: 18px;
}

/* ============================================
   VARIATION IMAGE PICKER
   ============================================ */

.var-img-picker {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    grid-column: 1 / -1;
}

.var-img-picker-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.var-img-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.var-img-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.var-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.var-img-thumb:hover {
    border-color: #a5b4fc;
}

.var-img-thumb.selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.var-img-thumb.selected::after {
    content: '✓';
    position: absolute;
    top: 1px;
    right: 2px;
    background: #6366f1;
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.var-img-none-label {
    font-size: 10px;
    color: #94a3b8;
}

.var-img-none-text {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* ============================================
   CUSTOM BRAND INPUT
   ============================================ */

.custom-brand-input-wrapper {
    padding: 16px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.custom-brand-text {
    width: 100%;
}

.wizard-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.wizard-hint i {
    color: #6366f1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .wizard-container {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .wizard-form {
        background: #1e293b;
    }

    .wizard-section {
        border-bottom-color: #334155;
    }

    .wizard-section-title {
        color: #f1f5f9;
    }

    .wizard-label {
        color: #cbd5e1;
    }

    .wizard-input,
    .wizard-select,
    .wizard-textarea {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }

    .wizard-input:focus,
    .wizard-select:focus,
    .wizard-textarea:focus {
        background: #1e293b;
        border-color: #6366f1;
    }

    .wizard-btn-secondary {
        background: #0f172a;
        color: #cbd5e1;
        border-color: #334155;
    }

    .wizard-actions {
        background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    }
}


/* Image Preview Grid */
.wizard-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    cursor: move;
    transition: all 0.3s ease;
}

.image-preview-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.image-preview-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-main {
    border: 3px solid #6366f1 !important;
    border-style: solid !important;
}

.image-preview-main::after {
    content: 'Main Image';
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.image-preview-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0;
}

.image-preview-item:hover .image-preview-delete {
    opacity: 1;
}

.image-preview-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-preview-index {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wizard-image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
}
