/**
 * ===================================
 * MOBILE SKILL WIZARD STYLES
 * ===================================
 */

/* ============================================
   WIZARD OVERLAY
   ============================================ */

.mobile-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 10100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-wizard-overlay.open {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
}

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

.mobile-wizard-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #0f1219);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
        "header"
        "progress"
        "content"
        "preview"
        "footer";
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-wizard-overlay.open .mobile-wizard-container {
    transform: translateY(0);
}

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

.wizard-header {
    grid-area: header;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    background: var(--bg-secondary, #1a1d2e);
    border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    min-height: 44px;
}

.wizard-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #1e2235);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary, #94a3b8);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.wizard-close:active {
    transform: scale(0.95);
}

.wizard-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.wizard-title i {
    color: var(--accent-primary, #8b5cf6);
    font-size: 1rem;
    flex-shrink: 0;
}

.wizard-title span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    white-space: nowrap;
}

/* Context Badge */
.wizard-context-badge {
    flex-shrink: 0;
}

.wizard-context-badge .context-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-context-badge .context-badge.skill {
    background: var(--accent-primary, #8b5cf6);
    color: white;
}

.wizard-context-badge .context-badge.mob {
    background: var(--warning, #f59e0b);
    color: #1a1d2e;
}

.wizard-step-indicator {
    font-size: 0.7rem;
    color: var(--text-tertiary, #64748b);
    padding: 4px 8px;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.wizard-progress {
    grid-area: progress;
    padding: 8px 12px;
    background: var(--bg-secondary, #1a1d2e);
}

.progress-track {
    height: 3px;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #a78bfa));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
    padding: 4px 0;
}

.progress-steps::-webkit-scrollbar {
    display: none;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 44px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed .step-dot {
    background: var(--success, #10b981);
    border-color: var(--success, #10b981);
}

.step-dot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #1e2235);
    border: 2px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    color: var(--text-tertiary, #64748b);
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.progress-step.active .step-dot {
    background: var(--accent-primary, #8b5cf6);
    border-color: var(--accent-primary, #8b5cf6);
    color: white;
}

.step-label {
    font-size: 0.55rem;
    color: var(--text-tertiary, #64748b);
    text-align: center;
    white-space: nowrap;
    display: none; /* Hide labels by default on mobile */
}

.progress-step.active .step-label {
    color: var(--text-primary, #e2e8f0);
}

/* ============================================
   WIZARD CONTENT
   ============================================ */

.wizard-content {
    grid-area: content;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    min-height: 0;
}

.step-header {
    text-align: center;
    margin-bottom: 12px;
}

.step-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--text-primary, #e2e8f0);
}

.step-header h3 i {
    color: var(--accent-primary, #8b5cf6);
}

.step-header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}

.step-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--error, #ef4444);
    font-size: 0.875rem;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

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

/* ============================================
   SEARCH INPUT
   ============================================ */

.step-search {
    position: relative;
    margin-bottom: 10px;
}

.step-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #64748b);
    font-size: 0.85rem;
}

.wizard-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-tertiary, #1e2235);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-primary, #e2e8f0);
    font-size: 16px; /* Prevents zoom on iOS */
}

.wizard-search:focus {
    outline: none;
    border-color: var(--accent-primary, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.wizard-search::placeholder {
    color: var(--text-tertiary, #64748b);
}

/* ============================================
   CATEGORY CHIPS
   ============================================ */

.category-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 10px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--bg-tertiary, #1e2235);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-chip:active {
    transform: scale(0.95);
}

.category-chip.active {
    background: var(--accent-primary, #8b5cf6);
    border-color: var(--accent-primary, #8b5cf6);
    color: white;
}

/* ============================================
   WIZARD ITEM GRID
   ============================================ */

.wizard-item-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wizard-item-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.wizard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary, #1e2235);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary, #e2e8f0);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.wizard-item:active {
    transform: scale(0.98);
}

.wizard-item.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary, #8b5cf6);
}

.wizard-item.compact {
    padding: 10px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
}

.item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated, #252a3f);
    border-radius: 8px;
    color: var(--accent-primary, #8b5cf6);
    font-size: 1rem;
    flex-shrink: 0;
}

.item-icon.small {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 1px;
}

.item-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-item.compact .item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizard-item.compact .item-desc {
    display: none;
}

.item-selected {
    color: var(--accent-primary, #8b5cf6);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-tertiary, #64748b);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================================
   QUICK TARGETERS
   ============================================ */

.quick-targeters {
    margin-bottom: 20px;
}

.quick-targeters h4 {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 12px;
}

.quick-targeter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-targeter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-tertiary, #1e2235);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-targeter i {
    font-size: 1.25rem;
    color: var(--accent-primary, #8b5cf6);
}

.quick-targeter:active {
    transform: scale(0.95);
}

.quick-targeter.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary, #8b5cf6);
    color: var(--text-primary, #e2e8f0);
}

/* ============================================
   SKIP OPTION
   ============================================ */

.skip-option {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.skip-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-tertiary, #1e2235);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skip-btn:active {
    transform: scale(0.98);
    background: var(--accent-primary, #8b5cf6);
    color: white;
}

.skip-btn.continue-btn {
    background: var(--accent-primary, #8b5cf6);
    border-color: var(--accent-primary, #8b5cf6);
    color: white;
}

/* ============================================
   CONDITIONS STEP
   ============================================ */

.conditions-list {
    margin-bottom: 24px;
}

.condition-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
}

.condition-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-primary, #8b5cf6);
}

.condition-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--error, #ef4444);
    cursor: pointer;
}

.no-conditions {
    padding: 20px;
    text-align: center;
    color: var(--text-tertiary, #64748b);
    font-size: 0.875rem;
}

.add-condition-section h4 {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 12px;
}

/* ============================================
   MODIFIERS STEP
   ============================================ */

.modifiers-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.modifier-section {
    background: var(--bg-tertiary, #1e2235);
    border-radius: 12px;
    padding: 16px;
}

.modifier-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    color: var(--text-primary, #e2e8f0);
}

.modifier-section h4 i {
    color: var(--accent-primary, #8b5cf6);
}

.modifier-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modifier-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modifier-field label {
    font-size: 0.8125rem;
    color: var(--text-secondary, #94a3b8);
}

.modifier-input,
.param-input {
    padding: 12px 14px;
    background: var(--bg-elevated, #252a3f);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--text-primary, #e2e8f0);
    font-size: 16px;
}

.modifier-input:focus,
.param-input:focus {
    outline: none;
    border-color: var(--accent-primary, #8b5cf6);
}

.no-params {
    color: var(--text-tertiary, #64748b);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.common-modifiers {
    padding-top: 20px;
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.common-modifiers h4 {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 16px;
}

.common-modifier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary, #8b5cf6);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================
   REVIEW STEP
   ============================================ */

.review-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.review-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 10px;
}

.review-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
}

.review-section h4 i {
    color: var(--accent-primary, #8b5cf6);
    width: 16px;
    text-align: center;
}

.review-value {
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.final-preview {
    background: var(--bg-tertiary, #1e2235);
    border-radius: 12px;
    padding: 16px;
}

.final-preview h4 {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
}

.final-preview-code {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated, #252a3f);
    border-radius: 8px;
}

.final-preview-code code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-primary, #8b5cf6);
    word-break: break-all;
}

.copy-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #1e2235);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
}

.copy-btn:active {
    color: var(--success, #10b981);
}

/* ============================================
   WIZARD PREVIEW BAR
   ============================================ */

.wizard-preview {
    grid-area: preview;
    padding: 6px 12px;
    background: var(--bg-secondary, #1a1d2e);
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    max-height: 60px;
    overflow: hidden;
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    color: var(--text-tertiary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.preview-code {
    padding: 6px 10px;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 6px;
    min-height: 16px;
    max-height: 36px;
    overflow-y: auto;
}

.preview-code code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-primary, #8b5cf6);
    word-break: break-all;
}

/* ============================================
   WIZARD FOOTER
   ============================================ */

.wizard-footer {
    grid-area: footer;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-secondary, #1a1d2e);
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    min-height: 64px;
}

.wizard-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-tertiary, #1e2235);
    border: none;
    border-radius: 10px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

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

.wizard-btn:not(:disabled):active {
    transform: scale(0.98);
}

.wizard-btn.primary {
    background: var(--accent-primary, #8b5cf6);
    color: white;
}

.wizard-btn.success {
    background: var(--success, #10b981);
    color: white;
}

/* ============================================
   SMART SUGGESTIONS
   ============================================ */

/* Quick Pick Toggle Button */
.quick-pick-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary, #1e2235);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pick-toggle:hover,
.quick-pick-toggle:active {
    background: var(--bg-elevated, #252a3f);
    border-color: var(--primary, #6366f1);
}

.quick-pick-toggle i:first-child {
    color: var(--warning, #f59e0b);
}

.quick-pick-toggle .toggle-icon {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.quick-pick-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.smart-suggestions {
    margin-bottom: 10px;
    padding: 8px 10px;
    background: var(--bg-tertiary, #1e2235);
    border-radius: 10px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.smart-suggestions.hidden {
    display: none;
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
}

.suggestions-header i {
    color: var(--warning, #f59e0b);
}

.suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--bg-elevated, #252a3f);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip i {
    font-size: 0.7rem;
    color: var(--text-tertiary, #64748b);
}

.suggestion-chip i.fa-star {
    color: var(--warning, #f59e0b);
}

.suggestion-chip i.fa-clock {
    color: var(--text-tertiary, #64748b);
}

.suggestion-chip i.fa-fire {
    color: var(--error, #ef4444);
}

.suggestion-chip:active {
    transform: scale(0.95);
    background: var(--accent-primary, #8b5cf6);
    border-color: var(--accent-primary, #8b5cf6);
}

.suggestion-chip.selected {
    background: var(--accent-primary, #8b5cf6);
    border-color: var(--accent-primary, #8b5cf6);
}

/* ============================================
   FAVORITE BUTTON
   ============================================ */

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.favorite-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-tertiary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:active {
    transform: scale(0.9);
}

.favorite-btn.active {
    color: var(--warning, #f59e0b);
}

.favorite-btn.active i {
    animation: star-pop 0.3s ease;
}

@keyframes star-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   EMPTY STATE ENHANCEMENTS
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-tertiary, #64748b);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

.empty-hint {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   WIZARD ITEM ENHANCEMENTS
   ============================================ */

.wizard-item {
    position: relative;
}

.wizard-item .item-selected {
    color: var(--success, #10b981);
}

/* ============================================
   TABLET ADJUSTMENTS (min-width: 900px)
   Only apply to actual tablets, not large phones
   ============================================ */

@media (min-width: 900px) and (min-height: 600px) {
    .mobile-wizard-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 500px;
        height: auto;
        max-height: 85vh;
        border-radius: 20px;
        overflow: hidden;
        grid-template-rows: auto auto minmax(100px, 1fr) auto auto;
    }
    
    .mobile-wizard-overlay.open .mobile-wizard-container {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .quick-targeter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .common-modifier-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .suggestions-chips {
        justify-content: flex-start;
    }
    
    .step-label {
        display: block; /* Show labels on tablet */
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .mobile-wizard-overlay,
    .mobile-wizard-container,
    .wizard-btn,
    .wizard-item {
        transition: none;
    }
    
    .favorite-btn.active i {
        animation: none;
    }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 360px)
   iPhone SE, small Android phones
   ============================================ */

@media (max-width: 360px) {
    .wizard-header {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .wizard-close {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .wizard-title span {
        font-size: 0.85rem;
    }
    
    .wizard-step-indicator {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .wizard-progress {
        padding: 6px 10px;
    }
    
    .progress-track {
        margin-bottom: 6px;
    }
    
    .step-dot {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .wizard-content {
        padding: 10px;
    }
    
    .step-header h3 {
        font-size: 0.95rem;
    }
    
    .step-header p {
        font-size: 0.7rem;
    }
    
    .wizard-search {
        padding: 8px 10px 8px 32px;
    }
    
    .step-search i {
        left: 10px;
    }
    
    .category-chip {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .wizard-item {
        padding: 8px 10px;
        min-height: 44px;
    }
    
    .item-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .item-name {
        font-size: 0.8rem;
    }
    
    .item-desc {
        font-size: 0.65rem;
    }
    
    .wizard-preview {
        padding: 4px 10px;
        max-height: 50px;
    }
    
    .preview-code {
        padding: 4px 8px;
        max-height: 28px;
    }
    
    .preview-code code {
        font-size: 0.7rem;
    }
    
    .wizard-footer {
        padding: 8px 10px;
        min-height: 56px;
    }
    
    .wizard-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .smart-suggestions {
        padding: 6px 8px;
    }
    
    .suggestion-chip {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .wizard-header {
        padding: 6px 12px;
        min-height: 32px;
    }
    
    .wizard-close {
        width: 28px;
        height: 28px;
    }
    
    .wizard-progress {
        padding: 4px 12px;
    }
    
    .progress-track {
        margin-bottom: 4px;
    }
    
    .progress-steps {
        display: none; /* Hide step indicators in landscape */
    }
    
    .wizard-content {
        padding: 8px 12px;
    }
    
    .step-header {
        margin-bottom: 6px;
    }
    
    .step-header h3 {
        font-size: 0.85rem;
    }
    
    .step-header p {
        display: none;
    }
    
    .smart-suggestions {
        display: none;
    }
    
    .wizard-item-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .wizard-item {
        padding: 6px 8px;
        min-height: 32px;
    }
    
    .item-desc {
        display: none;
    }
    
    .wizard-preview {
        padding: 3px 12px;
        max-height: 40px;
    }
    
    .preview-label {
        display: none;
    }
    
    .wizard-footer {
        padding: 6px 12px;
        min-height: 48px;
    }
    
    .wizard-btn {
        padding: 8px 12px;
        min-height: 36px;
        font-size: 0.85rem;
    }
}

