        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #ffffff;
            color: #1e293b;
            overflow-x: hidden;
        }

        /* Top Navigation */
        .top-nav {
            height: 64px;
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 32px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .btn-pro {
            background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .btn-pro:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245,158,11,0.3);
        }

        .btn-account {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #f1f5f9;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .btn-account:hover {
            background: #e2e8f0;
        }

        /* Main Container */
        .main-container {
            display: flex;
            height: calc(100vh - 64px);
            overflow: hidden;
        }

        /* Left Sidebar */
        .sidebar {
            width: 360px;
            background: #f8fafc;
            border-right: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 16px;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        /* Upload Section */
        .upload-section {
            margin-bottom: 16px;
        }

        .section-title {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            margin-bottom: 8px;
        }

        .upload-zone {
            background: #ffffff;
            border: 2px dashed #cbd5e1;
            border-radius: 10px;
            padding: 12px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .upload-zone:hover {
            border-color: #6366f1;
            background: #f8fafc;
        }

        .upload-zone.dragover {
            border-color: #6366f1;
            background: rgba(99,102,241,0.05);
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
            opacity: 0.6;
        }

        .upload-text {
            font-size: 0.8rem;
            color: #475569;
            margin-bottom: 2px;
        }

        .upload-subtext {
            font-size: 0.65rem;
            color: #94a3b8;
        }

        #imageInput {
            display: none;
        }

        .upload-preview {
            display: none;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px;
            align-items: center;
            gap: 10px;
        }

        .upload-preview.show {
            display: flex;
        }

        .preview-thumb {
            width: 50px;
            height: 50px;
            border-radius: 6px;
            object-fit: cover;
        }

        .preview-info {
            flex: 1;
            min-width: 0;
        }

        .preview-name {
            font-size: 0.85rem;
            font-weight: 500;
            color: #1e293b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .preview-size {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-top: 2px;
        }

        .btn-remove {
            width: 28px;
            height: 28px;
            border: none;
            background: #fee2e2;
            color: #dc2626;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 0.85rem;
        }

        .btn-remove:hover {
            background: #fecaca;
        }

        /* Divider */
        .divider {
            height: 1px;
            background: #e2e8f0;
            margin: 12px 0;
        }

        /* Presets Section */
        .presets-section {
            margin-bottom: 12px;
        }

        .presets-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        /* [VERWIJDERD] Background section 3 column rule */

        .preset-card {
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .preset-card:hover {
            transform: translateY(-2px);
            border-color: #cbd5e1;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .preset-card.tooltip-active {
            z-index: 1002;
        }

        .preset-card.active {
            border-color: #6366f1;
            background: rgba(99,102,241,0.05);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
        }

        .preset-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
        }

        .preset-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 2px;
        }

        .preset-desc {
            font-size: 0.65rem;
            color: #64748b;
            line-height: 1.2;
        }

        /* Preset Tooltip Styles */
        .preset-help-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            background: #f1f5f9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: #64748b;
            cursor: help;
            transition: all 0.2s ease;
            z-index: 2;
        }

        .preset-help-icon:hover {
            background: #e2e8f0;
            color: #475569;
            transform: scale(1.1);
        }

        .preset-tooltip {
            position: fixed;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 1003; /* Higher than tooltip-active card (1002) */
            min-width: 240px;
            max-width: 280px;
            font-size: 0.8rem;
            color: #475569;
            line-height: 1.5;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            pointer-events: none;
        }

        .preset-tooltip.show {
            opacity: 1;
            visibility: visible;
        }

        .preset-tooltip::before {
            content: '';
            position: absolute;
            top: 12px;
            left: -6px;
            width: 12px;
            height: 12px;
            background: white;
            border-left: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
            transform: rotate(45deg);
        }

        @media (max-width: 768px) {
            .preset-tooltip {
                min-width: 280px;
            }
            
            .preset-tooltip::before {
                display: none;
            }
        }

        .preset-group-header {
            font-size: 0.75rem;
            font-weight: 600;
            color: #475569;
            margin-top: 12px;
            margin-bottom: 8px;
            letter-spacing: 0.02em;
        }

        .preset-group-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 12px 0;
        }

        /* Advanced Controls - [VERWIJDERD] */
        
        /* Transform Button */
        .transform-section {
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid #e2e8f0;
        }

        .btn-transform {
            width: 100%;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: white;
            border: none;
            padding: 14px 20px;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(99,102,241,0.3);
        }

        .btn-transform:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(99,102,241,0.4);
        }

        .btn-transform:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-transform .btn-icon {
            font-size: 1.2rem;
        }

        /* Right Canvas Area */
        .canvas-area {
            flex: 1;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        /* Right Output Pane */
        .output-pane {
            width: 340px;
            background: #f8fafc;
            border-left: 1px solid #e2e8f0;
            display: none;
            flex-direction: column;
            overflow-y: auto;
            padding: 16px;
            animation: slideInRight 0.3s ease;
        }

        .output-pane.show {
            display: flex;
        }

        .output-pane::-webkit-scrollbar {
            width: 6px;
        }

        .output-pane::-webkit-scrollbar-track {
            background: transparent;
        }

        .output-pane::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Output Pane Sections */
        .output-section {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 16px;
        }

        .output-section-title {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .output-info-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 0.85rem;
            color: #475569;
        }

        .output-info-row:last-child {
            margin-bottom: 0;
        }

        .output-info-icon {
            font-size: 1rem;
            opacity: 0.7;
        }

        .output-info-label {
            font-weight: 500;
            min-width: 45px;
        }

        .output-info-value {
            color: #1e293b;
            font-weight: 500;
        }

        .btn-download-subtle {
            width: 100%;
            padding: 8px 16px;
            background: transparent;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.85rem;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-download-subtle:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
            color: #475569;
        }

        .btn-download-sketch {
            width: 100%;
            padding: 12px 16px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-download-sketch:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99,102,241,0.3);
        }

        /* Upscale Section */
        .upscale-slider-container {
            margin: 16px 0;
        }

        .upscale-slider-label {
            font-size: 0.75rem;
            font-weight: 500;
            color: #64748b;
            margin-bottom: 8px;
            display: block;
        }

        .upscale-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
        }

        .upscale-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .upscale-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .upscale-marks {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 0.7rem;
            color: #94a3b8;
            position: relative;
        }

        .upscale-mark {
            text-align: center;
            width: 20px;
        }

        .upscale-mark:first-child {
            text-align: left;
        }

        .upscale-mark:last-child {
            text-align: right;
        }

        .upscale-mark.active {
            color: #6366f1;
            font-weight: 600;
        }

        .btn-upscale {
            width: 100%;
            padding: 12px 16px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-upscale:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99,102,241,0.3);
        }

        .btn-upscale:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Upscale Progress */
        .upscale-progress {
            display: none;
            margin-top: 16px;
        }

        .upscale-progress.show {
            display: block;
        }

        .upscale-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #6366f1;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .upscale-progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .upscale-progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            transition: width 0.3s ease;
            border-radius: 4px;
        }

        /* Upscale Complete */
        .upscale-complete {
            display: none;
            margin-top: 16px;
        }

        .upscale-complete.show {
            display: block;
        }

        .upscale-success {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background: #ecfdf5;
            border: 1px solid #10b981;
            border-radius: 6px;
            margin-bottom: 12px;
        }

        .upscale-success-icon {
            font-size: 1.2rem;
        }

        .upscale-success-text {
            font-size: 0.85rem;
            color: #059669;
            font-weight: 500;
        }

        .btn-download-upscale {
            width: 100%;
            padding: 12px 16px;
            background: #10b981;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-download-upscale:hover {
            background: #059669;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16,185,129,0.3);
        }


        /* Empty State */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 40px;
            text-align: center;
        }

        .empty-state.hidden {
            display: none;
        }

        .empty-icon {
            font-size: 4rem;
            opacity: 0.3;
            margin-bottom: 24px;
        }

        .empty-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .empty-text {
            font-size: 1rem;
            color: #64748b;
            margin-bottom: 24px;
            max-width: 400px;
        }

        .example-btn {
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .example-btn:hover {
            background: #e2e8f0;
        }

        /* Preview State */
        .preview-state {
            display: none;
            flex-direction: column;
            height: 100%;
        }

        .preview-state.show {
            display: flex;
        }

        .preview-header {
            padding: 20px 32px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .preview-title {
            font-size: 0.9rem;
            color: #64748b;
        }

        .preview-filename {
            font-weight: 600;
            color: #1e293b;
        }

        .preview-actions {
            display: flex;
            gap: 8px;
        }

        .btn-icon-only {
            width: 36px;
            height: 36px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 1rem;
        }

        .btn-icon-only:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .preview-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            overflow: auto;
        }

        .preview-image {
            max-width: 100%;
            max-height: 100%;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }

        .preview-footer {
            padding: 20px 32px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
        }

        .ready-text {
            font-size: 0.9rem;
            color: #64748b;
        }

        .ready-arrow {
            color: #6366f1;
            font-weight: 600;
        }

        /* Processing State */
        .processing-state {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 40px;
        }

        .processing-state.show {
            display: flex;
        }

        .processing-spinner {
            width: 64px;
            height: 64px;
            border: 4px solid #e2e8f0;
            border-top: 4px solid #6366f1;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 24px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .processing-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 8px;
            text-align: center;
        }

        .processing-text {
            font-size: 0.95rem;
            color: #64748b;
            margin-bottom: 24px;
        }

        .progress-bar {
            width: 300px;
            height: 6px;
            background: #e2e8f0;
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
            width: 0%;
            transition: width 0.5s ease;
        }

        /* Result State */
        .result-state {
            display: none;
            flex-direction: column;
            height: 100%;
        }

        .result-state.show {
            display: flex;
        }

        .result-header {
            padding: 20px 32px;
            border-bottom: 1px solid #e2e8f0;
        }

        .result-labels {
            display: grid;
            grid-template-columns: 1fr 1fr;
            text-align: center;
            gap: 1px;
        }

        .result-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Result Tabs */
        /* Result Content */
        .result-header {
            padding: 20px 32px;
            border-bottom: 1px solid #e2e8f0;
        }

        .result-content {
            flex: 1;
            position: relative;
            overflow: hidden;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .result-content .comparison-slider {
            max-width: 90%;
            max-height: 90%;
        }

        .result-footer {
            padding: 20px 32px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .btn-secondary {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-secondary:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .btn-primary {
            background: #6366f1;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary:hover:not(:disabled) {
            background: #4f46e5;
            transform: translateY(-1px);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Success animation */
        @keyframes successPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .success-animation {
            animation: successPulse 0.5s ease;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                width: 320px;
            }

            .presets-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                max-height: 50vh;
                border-right: none;
                border-bottom: 1px solid #e2e8f0;
            }

            .comparison-container {
                grid-template-columns: 1fr;
            }
        }

        /* Floating Feedback Button */

        /* Feedback button hover in nav */
        .btn-feedback:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #475569;
        }

        /* Before/After Slider */
        .slider-demo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0;
            height: 100%;
            width: 100%;
        }

        .slider-demo-title {
            font-size: 1.75rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 12px;
            text-align: center;
        }

        .slider-demo-subtitle {
            font-size: 0.95rem;
            color: #64748b;
            margin-bottom: 32px;
            text-align: center;
        }

        .image-comparison-wrapper {
            position: relative;
            width: 100%;
            max-width: 500px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            user-select: none;
        }

        /* New Lean Comparison Slider */
        .comparison-slider {
            position: relative;
            width: 100%;
            /* aspect-ratio removed - will be set dynamically via JS */
            height: 300px; /* Default mobile height */
            max-width: 1200px;
            overflow: hidden;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            margin: 0 auto;
        }

        /* Desktop height */
        @media (min-width: 769px) {
            .comparison-slider {
                height: 600px;
            }
        }

        .img-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .img-wrapper img {
            width: auto;
            height: 100%;
            display: block;
            object-fit: contain;
            pointer-events: none;
            max-width: none;
        }

        .img-before-wrapper {
            width: 50%;
            overflow: hidden;
        }
        
        .img-after-wrapper {
            width: 100%;
        }

        .slider-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 4px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            transform: translateX(-50%);
            cursor: ew-resize;
            z-index: 10;
        }

        .slider-handle-grabber {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            display: grid;
            place-items: center;
            font-size: 1.2rem;
            color: #333;
            transition: transform 0.2s ease, background-color 0.2s ease;
        }

        .slider-handle:hover .slider-handle-grabber {
            transform: translate(-50%, -50%) scale(1.05);
            background-color: #ffffff;
        }

        .slider-label {
            position: absolute;
            top: 16px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            z-index: 5;
            pointer-events: none;
        }

        .label-before {
            left: 16px;
        }

        .label-after {
            right: 16px;
        }

        .slider-instruction {
            text-align: center;
            margin-top: 16px;
            font-size: 0.85rem;
            color: #94a3b8;
        }

        @media (max-width: 768px) {
            .slider-demo-title {
                font-size: 1.5rem;
            }

            .slider-handle-grabber {
                width: 40px;
                height: 40px;
            }
        }

        /* Make slider bigger on desktop - MUST come after mobile media query */
        @media (min-width: 769px) {
            .image-comparison-wrapper {
                max-width: 900px !important;
            }
        }

        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #cbd5e1;
            transition: 0.3s;
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }

        .control-label .toggle-switch {
            margin-left: auto;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 24px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 1000;
            opacity: 0;
            transition: all 0.3s ease;
            max-width: 90%;
            min-width: 300px;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .toast-icon {
            font-size: 1.5rem;
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 2px;
        }

        .toast-message {
            font-size: 0.85rem;
            color: #64748b;
        }

        /* Upscale Lock Tooltip */
        .upscale-lock-tooltip {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            z-index: 1000;
            white-space: nowrap;
            font-size: 0.85rem;
            color: #475569;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .upscale-lock-tooltip::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 12px;
            height: 12px;
            background: white;
            border-right: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }

        .upscale-lock-tooltip.show {
            opacity: 1;
            visibility: visible;
            top: -70px;
        }

        /* Welcome Modal (Mobile First-Time) */
        .welcome-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .welcome-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .welcome-modal-content {
            background: white;
            border-radius: 16px;
            padding: 32px 24px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .welcome-modal.show .welcome-modal-content {
            transform: scale(1);
        }

        .welcome-modal-icon {
            font-size: 3rem;
            margin-bottom: 16px;
        }

        .welcome-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .welcome-modal-text {
            font-size: 0.95rem;
            color: #64748b;
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .welcome-modal-button {
            width: 100%;
            padding: 14px 24px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .welcome-modal-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
        }

        /* ============================================ */
        /* MOBILE RESPONSIVE LAYOUT */
        /* ============================================ */
        @media (max-width: 768px) {
            /* Main container - stack vertically */
            .main-container {
                flex-direction: column;
                height: auto;
            }

            /* Sidebar - full width, maintain order */
            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #e2e8f0;
                order: 3; /* Changed from 1 to 3 - comes last on mobile */
                max-height: none;
            }

            /* Main pane - full width */
            .main-pane {
                width: 100%;
                order: 1; /* Stays first */
                min-height: 400px;
            }
            
            /* Canvas area - acts as main pane */
            .canvas-area {
                width: 100%;
                order: 1; /* Stays first */
                min-height: 400px;
            }

            /* Output pane - full width, comes after main pane but BEFORE sidebar */
            .output-pane {
                width: 100%;
                border-left: none;
                border-top: 1px solid #e2e8f0;
                order: 2; /* Changed from 3 to 2 - comes second on mobile */
                position: relative;
            }

            /* Presets grid - 2 per row on mobile */
            .presets-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .preset-card {
                padding: 10px 8px;
            }

            .preset-icon {
                font-size: 1.2rem;
            }

            .preset-name {
                font-size: 0.75rem;
            }

            .preset-desc {
                font-size: 0.6rem;
            }

            /* Top nav adjustments */
            .top-nav {
                padding: 0 16px;
                position: relative !important; /* Remove sticky on mobile */
            }

            .logo {
                font-size: 1rem;
            }
            
            .logo img {
                height: 28px !important;
            }

            .logo-icon {
                width: 28px;
                height: 28px;
            }
            
            /* Make nav buttons smaller on mobile */
            .btn-how-it-works,
            .btn-feedback {
                padding: 6px 10px !important;
                font-size: 0.7rem !important;
                gap: 4px !important;
            }
            
            /* Hide original text spans and replace with shorter text */
            .btn-how-it-works span:not(:first-child) {
                display: none !important;
            }
            
            .btn-how-it-works::after {
                content: 'Guide';
            }
            
            .btn-feedback span:not(:first-child) {
                display: none !important;
            }
            
            .btn-feedback::after {
                content: 'Feedback';
            }
            
            .nav-actions {
                gap: 8px !important;
            }

            /* Slider adjustments */
            .slider-demo-title {
                font-size: 1.3rem;
            }

            .slider-demo-subtitle {
                font-size: 0.85rem;
            }

            .slider-instruction {
                font-size: 0.8rem;
            }

            .slider-handle-grabber {
                width: 38px;
                height: 38px;
                font-size: 1rem;
            }

            /* Result state adjustments */
            .result-header {
                padding: 16px 20px;
            }

            .result-header h3 {
                font-size: 1rem;
            }

            .result-content {
                padding: 12px;
            }

            .result-content .comparison-slider {
                max-width: 100%;
            }

            /* Output pane sections */
            .output-section {
                padding: 16px 20px;
            }

            .output-section-title {
                font-size: 0.85rem;
            }

            /* Buttons */
            .btn-transform,
            .btn-download-sketch,
            .btn-upscale {
                padding: 12px 20px;
                font-size: 0.9rem;
            }

            /* Advanced settings on mobile - [VERWIJDERD] */
        }
