/**
 * Manual Recipe Creation Wizard CSS
 * Landing Page V3 Design - Gold/Brown Theme with Glassmorphism
 */

/* Import Material Symbols if not already included */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Variables matching landing page v3 */
:root {
    --wizard-gold-primary: #f2cf7b;
    --wizard-gold-secondary: #d29658;
    --wizard-brown-accent: #7d3f26;
    --wizard-brown-dark: #5a2d1a;
    --wizard-text-primary: #E8DCC4;
    --wizard-text-secondary: #9B8B7E;
    --wizard-text-muted: rgba(155, 139, 126, 0.6);
    --wizard-bg-dark: #0a0a0a;
    --wizard-bg-card: rgba(15, 12, 10, 0.6);
    --wizard-glass-bg: rgba(255, 255, 255, 0.03);
    --wizard-glass-border: rgba(255, 255, 255, 0.08);
    --wizard-gradient-gold: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%);
}

/* Overlay */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-overlay.active {
    opacity: 1;
}

/* Modal */
.wizard-modal {
    background: var(--wizard-bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(242, 207, 123, 0.1);
    animation: wizardSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes wizardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.wizard-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wizard-glass-border);
    color: var(--wizard-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wizard-close:hover {
    background: rgba(242, 207, 123, 0.1);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-gold-primary);
    transform: rotate(90deg);
}

/* Header */
.wizard-header {
    padding: 24px 40px 20px;
    border-bottom: 1px solid var(--wizard-glass-border);
    background: linear-gradient(180deg, rgba(242, 207, 123, 0.03) 0%, transparent 100%);
}

.wizard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--wizard-text-primary);
    margin: 0 0 4px 0;
    background: var(--wizard-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    color: var(--wizard-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Progress Bar */
.wizard-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--wizard-gradient-gold);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(242, 207, 123, 0.5);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--wizard-text-muted);
    transition: all 0.3s ease;
}

.progress-step span {
    font-size: 11px;
    font-weight: 600;
    color: var(--wizard-text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--wizard-gradient-gold);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-bg-dark);
    box-shadow: 0 4px 16px rgba(242, 207, 123, 0.4);
    transform: scale(1.1);
}

.progress-step.active span {
    color: var(--wizard-gold-primary);
}

.progress-step.completed .step-circle {
    background: rgba(242, 207, 123, 0.15);
    border-color: var(--wizard-gold-secondary);
    color: var(--wizard-gold-primary);
}

.progress-step.completed span {
    color: var(--wizard-text-secondary);
}

/* Body */
.wizard-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* Custom scrollbar */
.wizard-body::-webkit-scrollbar {
    width: 8px;
}

.wizard-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.wizard-body::-webkit-scrollbar-thumb {
    background: rgba(242, 207, 123, 0.2);
    border-radius: 4px;
}

.wizard-body::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 207, 123, 0.3);
}

/* Steps */
.wizard-step {
    display: none !important;
    animation: stepFadeIn 0.4s ease;
}

.wizard-step.active {
    display: block !important;
}

/* Ensure recipe wizard steps are visible when active */
#recipeWizardOverlay .wizard-step {
    display: none;
}

#recipeWizardOverlay .wizard-step.active {
    display: block;
}

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

.step-content {
    padding: 32px 40px;
}

/* Form */
.wizard-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--wizard-text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.required {
    color: var(--wizard-gold-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 12px;
    color: var(--wizard-text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    box-shadow: 0 0 0 3px rgba(242, 207, 123, 0.1);
}

/* Input Error State */
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: inputErrorShake 0.4s ease;
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--wizard-text-muted);
}

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

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--wizard-text-muted);
}

.form-hint .material-symbols-rounded {
    font-size: 16px;
    color: var(--wizard-gold-secondary);
}

/* Image Upload */
.image-upload-wrapper {
    width: 100%;
}

.image-upload-area {
    width: 100%;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--wizard-glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--wizard-gold-primary);
}

.image-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 12px;
    height: 100%;
}

.image-upload-content .material-symbols-rounded {
    font-size: 48px;
    color: var(--wizard-gold-secondary);
    opacity: 0.7;
}

.upload-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--wizard-text-primary);
}

.upload-hint {
    font-size: 13px;
    color: var(--wizard-text-muted);
}

.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-image-btn:hover {
    background: rgba(220, 50, 50, 0.9);
    border-color: rgba(255, 100, 100, 0.5);
    transform: scale(1.1);
}

.remove-image-btn .material-symbols-rounded {
    font-size: 20px;
    color: white;
}

/* Roast Selector */
.roast-selector {
    display: flex;
    gap: 12px;
}

.roast-option {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--wizard-glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--wizard-text-secondary);
    font-weight: 600;
}

.roast-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    transform: translateY(-2px);
}

.roast-option.active {
    background: rgba(242, 207, 123, 0.1);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-gold-primary);
    box-shadow: 0 4px 16px rgba(242, 207, 123, 0.2);
}

.roast-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid currentColor;
}

.roast-circle.light {
    background: linear-gradient(135deg, #f4e4c1 0%, #e8d4a8 100%);
}

.roast-circle.medium {
    background: linear-gradient(135deg, #c9966e 0%, #a67c52 100%);
}

.roast-circle.dark {
    background: linear-gradient(135deg, #6b4226 0%, #4a2c1a 100%);
}

/* Parameters Grid */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.param-input-card {
    background: var(--wizard-glass-bg);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.param-input-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    transform: translateY(-2px);
}

.param-icon-small {
    width: 40px;
    height: 40px;
    background: var(--wizard-gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.param-icon-small .material-symbols-rounded {
    font-size: 24px;
    color: var(--wizard-bg-dark);
}

.param-input-card label {
    font-size: 13px;
    font-weight: 700;
    color: var(--wizard-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.param-input-card input {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--wizard-text-primary);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.param-input-card input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--wizard-gold-primary);
}

/* Brew Type Selector */
.brew-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.brew-option {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--wizard-glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--wizard-text-secondary);
    font-weight: 600;
}

.brew-option .material-symbols-rounded {
    font-size: 32px;
    color: var(--wizard-gold-secondary);
}

.brew-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    transform: translateY(-2px);
}

.brew-option.active {
    background: rgba(242, 207, 123, 0.1);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-gold-primary);
    box-shadow: 0 4px 16px rgba(242, 207, 123, 0.2);
}

.brew-option.active .material-symbols-rounded {
    color: var(--wizard-gold-primary);
}

/* Equipment Select Wrapper */
.equipment-select-wrapper {
    position: relative;
}

.equipment-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 12px;
    color: var(--wizard-text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.equipment-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    box-shadow: 0 0 0 3px rgba(242, 207, 123, 0.1);
}

.equipment-select option {
    background: var(--wizard-bg-dark);
    color: var(--wizard-text-primary);
    padding: 12px;
}

.equipment-select-wrapper .material-symbols-rounded {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wizard-gold-primary);
    pointer-events: none;
    font-size: 24px;
}

/* No Equipment Card */
.no-equipment-card {
    background: rgba(242, 207, 123, 0.05);
    border: 2px dashed rgba(242, 207, 123, 0.25);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 20px 0;
}

.no-equipment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(242, 207, 123, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-equipment-icon .material-symbols-rounded {
    font-size: 36px;
    color: var(--wizard-gold-primary);
}

.no-equipment-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0 0 8px 0;
}

.no-equipment-card p {
    font-size: 14px;
    color: var(--wizard-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.equipment-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--wizard-gradient-gold);
    border-radius: 12px;
    color: var(--wizard-bg-dark);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.equipment-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 207, 123, 0.4);
}

.equipment-link-btn .material-symbols-rounded {
    font-size: 20px;
}

/* Equipment Footer */
.equipment-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--wizard-glass-border);
    text-align: center;
}

.manage-equipment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wizard-gold-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.manage-equipment-link:hover {
    color: var(--wizard-gold-primary);
    gap: 10px;
}

.manage-equipment-link .material-symbols-rounded {
    font-size: 18px;
}

/* Tasting Section */
.tasting-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tasting-section:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(242, 207, 123, 0.15);
}

.tasting-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tasting-header .material-symbols-rounded {
    font-size: 22px;
    color: var(--wizard-gold-primary);
}

.tasting-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0;
    flex: 1;
}

.tasting-hint {
    font-size: 12px;
    color: var(--wizard-text-muted);
    font-style: italic;
}

/* Taste Tags Grid */
.taste-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.taste-tag {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--wizard-glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--wizard-text-secondary);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.taste-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 207, 123, 0.1), transparent);
    transition: left 0.5s ease;
}

.taste-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 207, 123, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.taste-tag:hover::before {
    left: 100%;
}

.taste-tag.active {
    background: rgba(242, 207, 123, 0.15);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-gold-primary);
    box-shadow: 0 4px 16px rgba(242, 207, 123, 0.3);
    transform: translateY(-2px);
}

.taste-tag.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    font-weight: 900;
    color: var(--wizard-gold-primary);
    animation: checkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.taste-tag-icon {
    font-size: 18px;
    filter: grayscale(0.7);
    transition: filter 0.3s ease;
}

.taste-tag.active .taste-tag-icon {
    filter: grayscale(0);
}

/* Single select tags special styling */
.taste-tag.single-select {
    min-width: 100px;
}

/* Textarea in tasting section */
.tasting-section textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 12px;
    color: var(--wizard-text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.tasting-section textarea:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--wizard-gold-primary);
    box-shadow: 0 0 0 3px rgba(242, 207, 123, 0.1);
}

.tasting-section textarea::placeholder {
    color: var(--wizard-text-muted);
}

/* Rating Selector */
.rating-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.star-btn .material-symbols-rounded {
    font-size: 32px;
    color: rgba(242, 207, 123, 0.3);
    transition: all 0.2s ease;
}

.star-btn:hover .material-symbols-rounded,
.star-btn.active .material-symbols-rounded {
    color: var(--wizard-gold-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(242, 207, 123, 0.5));
}

.star-btn.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

.star-btn.bad-rating .material-symbols-rounded {
    color: #ff5555 !important;
    filter: drop-shadow(0 0 8px rgba(255, 85, 85, 0.5)) !important;
}

.star-btn.bad-rating:hover .material-symbols-rounded {
    color: #ff6666 !important;
}

.rating-text {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--wizard-gold-primary);
    margin: 0;
    min-height: 24px;
    transition: color 0.3s ease;
}

/* Rating color classes */
.rating-text.rating-bad {
    color: #ff5555;
    text-shadow: 0 0 8px rgba(255, 85, 85, 0.3);
}

.rating-text.rating-okay {
    color: #ffaa55;
}

.rating-text.rating-good {
    color: var(--wizard-gold-primary);
}

.rating-text.rating-great {
    color: #7dc37d;
    text-shadow: 0 0 8px rgba(125, 195, 125, 0.3);
}

/* Completion Message */
.completion-message {
    background: rgba(125, 195, 125, 0.1);
    border: 1px solid rgba(125, 195, 125, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.completion-message .material-symbols-rounded {
    font-size: 48px;
    color: #7dc37d;
    flex-shrink: 0;
}

.completion-text h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--wizard-text-primary);
}

.completion-text p {
    margin: 0;
    font-size: 14px;
    color: var(--wizard-text-secondary);
}

/* Footer */
.wizard-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--wizard-glass-border);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* Buttons */
.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.wizard-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.wizard-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wizard-glass-border);
    color: var(--wizard-text-secondary);
}

.wizard-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--wizard-gold-primary);
    color: var(--wizard-gold-primary);
    transform: translateY(-2px);
}

.wizard-btn-primary {
    background: var(--wizard-gradient-gold);
    color: var(--wizard-bg-dark);
    box-shadow: 0 4px 16px rgba(242, 207, 123, 0.3);
}

.wizard-btn-primary:hover {
    box-shadow: 0 6px 24px rgba(242, 207, 123, 0.5);
    transform: translateY(-2px);
}

.wizard-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wizard-btn-primary:hover::before {
    left: 100%;
}

.wizard-btn-success {
    background: linear-gradient(135deg, #7dc37d 0%, #5aa85a 100%);
}

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

/* Success Overlay */
.wizard-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: rgba(15, 12, 10, 0.9);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(125, 195, 125, 0.3);
    border-radius: 20px;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-content .material-symbols-rounded {
    font-size: 64px;
    color: #7dc37d;
    animation: successCheck 0.6s ease;
}

.success-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--wizard-text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successCheck {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Readonly styling */
input[readonly] {
    background: rgba(242, 207, 123, 0.05) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive for tasting tags */
@media (max-width: 640px) {
    .taste-tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    
    .taste-tag {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .taste-tag-icon {
        font-size: 16px;
    }
    
    .tasting-section {
        padding: 16px;
    }
    
    .tasting-header h4 {
        font-size: 15px;
    }
}

/* Equipment Preview Card */
.equipment-preview-card {
    background: rgba(242, 207, 123, 0.05);
    border: 1px solid rgba(242, 207, 123, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    animation: fadeInSlide 0.3s ease;
}

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

.equipment-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wizard-glass-border);
    flex-shrink: 0;
}

.equipment-preview-icon {
    width: 48px;
    height: 48px;
    background: var(--wizard-gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.equipment-preview-icon .material-symbols-rounded {
    font-size: 28px;
    color: var(--wizard-bg-dark);
}

.equipment-preview-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-preview-title h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0;
}

.default-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(242, 207, 123, 0.15);
    border: 1px solid rgba(242, 207, 123, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--wizard-gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-preview-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    flex: 1;
}

.equipment-detail-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.equipment-detail-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(242, 207, 123, 0.2);
    transform: translateY(-2px);
}

.equipment-detail-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.equipment-detail-section-header .material-symbols-rounded {
    font-size: 20px;
    color: var(--wizard-gold-primary);
}

.equipment-detail-section-header h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-detail-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equipment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--wizard-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text-primary);
}

.equipment-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    flex: 1;
    min-height: 300px;
}

.equipment-preview-icon-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(242, 207, 123, 0.1);
    border: 2px dashed rgba(242, 207, 123, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.equipment-preview-icon-placeholder .material-symbols-rounded {
    font-size: 32px;
    color: var(--wizard-text-secondary);
    opacity: 0.5;
}

.equipment-preview-placeholder p {
    font-size: 14px;
    color: var(--wizard-text-secondary);
    margin: 0;
}

.equipment-detail-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.equipment-detail-empty .material-symbols-rounded {
    font-size: 48px;
    color: var(--wizard-text-secondary);
    opacity: 0.4;
    margin-bottom: 12px;
}

.equipment-detail-empty p {
    font-size: 13px;
    color: var(--wizard-text-secondary);
    margin: 0;
    opacity: 0.8;
}

/* ==========================================
   QUICK FILL SECTION
   ========================================== */
.wizard-quick-fill-section {
    margin-bottom: 32px;
}

.quick-fill-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(242, 207, 123, 0.08) 0%, rgba(210, 150, 88, 0.05) 100%);
    border: 1px solid rgba(242, 207, 123, 0.2);
    border-radius: 16px;
    color: var(--wizard-text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-fill-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 207, 123, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-fill-toggle:hover {
    border-color: var(--wizard-gold-primary);
    background: linear-gradient(135deg, rgba(242, 207, 123, 0.12) 0%, rgba(210, 150, 88, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 207, 123, 0.15);
}

.quick-fill-toggle:hover::before {
    opacity: 1;
}

.quick-fill-icon {
    font-size: 24px;
    color: var(--wizard-gold-primary);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

.quick-fill-title {
    flex: 1;
    text-align: left;
}

.quick-fill-badge {
    padding: 4px 12px;
    background: rgba(242, 207, 123, 0.15);
    border: 1px solid rgba(242, 207, 123, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--wizard-gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-fill-chevron {
    font-size: 24px;
    color: var(--wizard-text-secondary);
    transition: transform 0.3s ease;
}

/* Quick Fill Panel */
.quick-fill-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.quick-fill-panel.expanded {
    max-height: 600px;
    opacity: 1;
    margin-top: 16px;
}

.quick-fill-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.quick-fill-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-fill-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(242, 207, 123, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-fill-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 207, 123, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quick-fill-option:hover::before {
    opacity: 1;
}

/* PRO Badge - Corner Style */
.quick-fill-pro-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(242, 207, 123, 0.15) 0%, rgba(210, 150, 88, 0.2) 100%);
    border: 1px solid rgba(242, 207, 123, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--wizard-gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(242, 207, 123, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(242, 207, 123, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 2px 12px rgba(242, 207, 123, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.quick-fill-pro-badge .material-symbols-rounded {
    font-size: 14px;
    animation: boltFlash 2s ease-in-out infinite;
}

@keyframes boltFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.quick-fill-option-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.quick-fill-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-fill-option-icon.photo-icon {
    background: linear-gradient(135deg, #b794f4 0%, #9f7aea 70%, #805ad5 100%);
}

.quick-fill-option-icon.url-icon {
    background: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%);
}

.quick-fill-option-icon .material-symbols-rounded {
    font-size: 24px;
    color: white;
}

.quick-fill-option-info {
    flex: 1;
}

.quick-fill-option-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0 0 4px 0;
}

.quick-fill-option-desc {
    font-size: 12px;
    color: var(--wizard-text-secondary);
    margin: 0;
    line-height: 1.4;
}


.quick-fill-url-input-wrapper {
    margin-bottom: 12px;
}

.quick-fill-url-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wizard-glass-border);
    border-radius: 10px;
    color: var(--wizard-text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.quick-fill-url-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wizard-gold-primary);
    box-shadow: 0 0 0 3px rgba(242, 207, 123, 0.1);
}

.quick-fill-url-input::placeholder {
    color: var(--wizard-text-muted);
}

.quick-fill-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(242, 207, 123, 0.1);
    border: 1px solid rgba(242, 207, 123, 0.3);
    border-radius: 10px;
    color: var(--wizard-gold-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-fill-btn:hover:not(:disabled) {
    background: rgba(242, 207, 123, 0.15);
    border-color: var(--wizard-gold-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 207, 123, 0.2);
}

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

.quick-fill-btn .material-symbols-rounded {
    font-size: 18px;
}

.quick-fill-btn .rotating {
    animation: rotate 1s linear infinite;
}

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

.quick-fill-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(183, 148, 244, 0.05);
    border: 1px solid rgba(183, 148, 244, 0.15);
    border-radius: 12px;
    font-size: 12px;
    color: var(--wizard-text-secondary);
    line-height: 1.5;
}

.quick-fill-hint .material-symbols-rounded {
    font-size: 18px;
    color: #b794f4;
    flex-shrink: 0;
}

/* Field populated animation */
@keyframes fieldPopulated {
    0% { background: rgba(242, 207, 123, 0.2); }
    100% { background: rgba(255, 255, 255, 0.03); }
}

.field-populated {
    animation: fieldPopulated 2s ease;
    border-color: var(--wizard-gold-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    /* Full-screen modal on mobile */
    .wizard-overlay {
        padding: 0;
        align-items: stretch;
    }
    
    .wizard-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Compact header for mobile */
    .wizard-header {
        padding: 16px 16px 12px;
        flex-shrink: 0;
    }
    
    .wizard-title {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .wizard-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    /* Compact close button */
    .wizard-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    /* Very compact progress steps - icons only on small screens */
    .wizard-progress {
        margin-top: 12px;
    }
    
    .progress-bar {
        margin-bottom: 12px;
    }
    
    .progress-steps {
        gap: 4px;
        justify-content: center;
    }
    
    .progress-step {
        flex: 0 0 auto;
        min-width: 60px;
    }
    
    .progress-step span {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
    }
    
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .progress-step.active .step-circle {
        transform: scale(1.05);
    }
    
    /* Scrollable body with proper flex */
    .wizard-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    
    .step-content {
        padding: 16px;
        padding-bottom: 24px;
    }
    
    /* Quick Fill - Mobile Optimizations */
    .wizard-quick-fill-section {
        margin-bottom: 24px;
    }
    
    .quick-fill-toggle {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .quick-fill-icon {
        font-size: 22px;
    }
    
    .quick-fill-badge {
        display: none; /* Hide on mobile to save space */
    }
    
    .quick-fill-chevron {
        font-size: 22px;
    }
    
    .quick-fill-panel.expanded {
        max-height: 800px; /* More space on mobile */
    }
    
    .quick-fill-options {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 12px;
    }
    
    .quick-fill-option {
        padding: 16px;
        border-radius: 12px;
    }
    
    .quick-fill-option-header {
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .quick-fill-option-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    
    .quick-fill-option-icon .material-symbols-rounded {
        font-size: 22px;
    }
    
    .quick-fill-option-title {
        font-size: 14px;
    }
    
    .quick-fill-option-desc {
        font-size: 11px;
    }
    
    .quick-fill-pro-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .quick-fill-pro-badge .material-symbols-rounded {
        font-size: 12px;
    }
    
    .quick-fill-url-input {
        padding: 11px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .quick-fill-btn {
        padding: 11px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .quick-fill-btn .material-symbols-rounded {
        font-size: 16px;
    }
    
    .quick-fill-hint {
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 10px;
    }
    
    .quick-fill-hint .material-symbols-rounded {
        font-size: 16px;
    }
    
    /* Form optimizations */
    .wizard-form {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .form-hint {
        font-size: 12px;
        margin-top: 6px;
    }
    
    /* Compact image upload */
    .image-upload-area {
        min-height: 120px;
        border-radius: 12px;
    }
    
    .image-upload-content {
        padding: 20px;
        gap: 8px;
    }
    
    .image-upload-content .material-symbols-rounded {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
    
    /* Compact roast selector */
    .roast-selector {
        gap: 8px;
    }
    
    .roast-option {
        padding: 12px 8px;
        border-radius: 10px;
        font-size: 12px;
    }
    
    .roast-circle {
        width: 32px;
        height: 32px;
    }
    
    /* Parameters grid - 2 columns on mobile */
    .params-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .param-input-card {
        padding: 14px;
        border-radius: 12px;
        gap: 6px;
    }
    
    .param-icon-small {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-bottom: 4px;
    }
    
    .param-icon-small .material-symbols-rounded {
        font-size: 18px;
    }
    
    .param-input-card label {
        font-size: 11px;
    }
    
    .param-input-card input {
        padding: 8px 10px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    /* Brew type selector */
    .brew-type-selector {
        gap: 10px;
        max-width: 100%;
    }
    
    .brew-option {
        padding: 12px;
        border-radius: 10px;
        font-size: 13px;
    }
    
    .brew-option .material-symbols-rounded {
        font-size: 24px;
    }
    
    /* Tasting sections */
    .tasting-section {
        padding: 14px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .tasting-header {
        margin-bottom: 12px;
    }
    
    .tasting-header .material-symbols-rounded {
        font-size: 18px;
    }
    
    .tasting-header h4 {
        font-size: 14px;
    }
    
    .tasting-hint {
        font-size: 11px;
    }
    
    /* Rating selector */
    .rating-selector {
        gap: 4px;
    }
    
    .star-btn {
        padding: 6px;
    }
    
    .star-btn .material-symbols-rounded {
        font-size: 28px;
    }
    
    .rating-text {
        font-size: 14px;
    }
    
    /* Equipment preview card */
    .equipment-preview-card {
        padding: 16px;
        min-height: auto;
        margin-top: 12px;
    }
    
    .equipment-preview-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .equipment-preview-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .equipment-preview-icon .material-symbols-rounded {
        font-size: 22px;
    }
    
    .equipment-preview-title h4 {
        font-size: 15px;
    }
    
    .default-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .equipment-preview-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .equipment-detail-section {
        padding: 12px;
        border-radius: 10px;
    }
    
    .equipment-detail-section-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .equipment-detail-section-header .material-symbols-rounded {
        font-size: 18px;
    }
    
    .equipment-detail-section-header h5 {
        font-size: 12px;
    }
    
    .detail-label {
        font-size: 10px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    /* No equipment card */
    .no-equipment-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .no-equipment-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .no-equipment-icon .material-symbols-rounded {
        font-size: 28px;
    }
    
    .no-equipment-card h4 {
        font-size: 17px;
    }
    
    .no-equipment-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .equipment-link-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    /* Equipment footer */
    .equipment-footer {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .manage-equipment-link {
        font-size: 13px;
    }
    
    /* Fixed footer at bottom */
    .wizard-footer {
        padding: 12px 16px;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(242, 207, 123, 0.1);
        z-index: 10;
    }
    
    /* Buttons */
    .wizard-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
        gap: 8px;
    }
    
    .wizard-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Success overlay */
    .success-content {
        padding: 32px 24px;
        margin: 20px;
        border-radius: 16px;
    }
    
    .success-content .material-symbols-rounded {
        font-size: 48px;
    }
    
    .success-content h3 {
        font-size: 20px;
    }
    
    /* Completion message */
    .completion-message {
        padding: 16px;
        border-radius: 10px;
        margin-top: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .completion-message .material-symbols-rounded {
        font-size: 40px;
    }
    
    .completion-text h4 {
        font-size: 16px;
    }
    
    .completion-text p {
        font-size: 13px;
    }
}

/* Extra small screens (< 380px) */
@media (max-width: 380px) {
    .wizard-header {
        padding: 12px 12px 10px;
    }
    
    .wizard-title {
        font-size: 16px;
    }
    
    .wizard-subtitle {
        font-size: 11px;
    }
    
    .progress-step span {
        display: none;
    }
    
    .progress-step {
        min-width: 40px;
    }
    
    .step-content {
        padding: 12px;
    }
    
    .params-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .param-input-card {
        padding: 10px;
    }
    
    .wizard-footer {
        padding: 10px 12px;
    }
    
    .wizard-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .wizard-modal {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .wizard-footer {
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }
    }
}

