:root{--bg-app: #09090b;--bg-surface: #18181b;--bg-surface-hover: #27272a;--border-color: #27272a;--border-hover: #3f3f46;--primary: #fafafa;--primary-foreground: #09090b;--accent: #3b82f6;--accent-hover: #2563eb;--accent-foreground: #ffffff;--text-primary: #fafafa;--text-secondary: #a1a1aa;--text-muted: #71717a;--error: #ef4444;--success: #10b981;--radius-sm: .5rem;--radius-md: .75rem;--radius-lg: 1rem;--radius-xl: 1.5rem;--container-padding: 1.5rem;--max-width: 1200px;--transition-fast: .15s ease;--transition-base: .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}body{background-color:var(--bg-app);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app{min-height:100vh;display:flex;flex-direction:column;width:100%}.header{padding:2rem var(--container-padding);text-align:center;border-bottom:1px solid var(--border-color);background:#09090bcc;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0;z-index:50}.header-title{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-bottom:.25rem}.header h1{font-size:1.5rem;font-weight:700;letter-spacing:-.025em;background:linear-gradient(to bottom right,#fff,#a1a1aa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.beta-pill{display:inline-flex;align-items:center;padding:.25rem .625rem;background:#3b82f626;border:1px solid rgba(59,130,246,.3);border-radius:999px;font-size:.6875rem;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}.header p{font-size:.875rem;color:var(--text-secondary)}.main{flex:1;width:100%;max-width:var(--max-width);margin:0 auto;padding:2rem var(--container-padding);display:flex;flex-direction:column;align-items:center;justify-content:center}.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;width:100%;max-width:900px;margin-bottom:1.5rem}.mode-tab{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:1.25rem;cursor:pointer;transition:all .2s ease;text-align:left;display:flex;flex-direction:column;gap:.25rem}.mode-tab:hover:not(.disabled){border-color:var(--border-hover);background:var(--bg-surface-hover)}.mode-tab.active{border-color:var(--accent);background:#3b82f61a;box-shadow:0 0 0 1px var(--accent)}.mode-tab.disabled{opacity:.5;cursor:not-allowed}.mode-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mode-tab-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.mode-tab-title{font-size:1rem;font-weight:600;color:var(--text-primary)}.coming-soon-pill{display:inline-flex;align-items:center;padding:.125rem .5rem;background:#a1a1aa26;border:1px solid rgba(161,161,170,.3);border-radius:999px;font-size:.625rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.mode-tab-subtitle{font-size:.875rem;color:var(--text-secondary)}.mode-tab-price{font-size:.75rem;color:var(--text-muted);margin-top:auto;padding-top:.5rem}.mode-tab-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.coming-soon-pill{font-size:.65rem;padding:.2rem .5rem;background:var(--bg-surface-hover);border:1px solid var(--border-color);border-radius:999px;color:var(--text-muted);font-weight:500}.mode-tab.disabled{opacity:.6;cursor:not-allowed}.mode-tab.disabled:hover{border-color:var(--border-color);background:var(--bg-surface)}.custom-prompt-container{width:100%;max-width:600px;margin-bottom:1.5rem;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:1.25rem;animation:fadeIn .3s ease}.prompt-label{display:block;font-size:.875rem;font-weight:500;color:var(--text-primary);margin-bottom:.75rem}.prompt-input{width:100%;padding:.75rem;background:var(--bg-app);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);font-family:inherit;font-size:.9rem;line-height:1.5;resize:vertical;transition:all .2s ease}.prompt-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.prompt-input::placeholder{color:var(--text-muted)}.prompt-hint{margin-top:.5rem;font-size:.75rem;color:var(--text-muted);margin-bottom:0}.upload-zone{width:100%;max-width:600px;min-height:300px;border:2px dashed var(--border-color);border-radius:var(--radius-xl);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;background:var(--bg-surface);padding:2rem;text-align:center}.upload-zone:hover{border-color:var(--text-secondary);background:var(--bg-surface-hover)}.upload-zone.dragging{border-color:var(--accent);background:#3b82f60d}.upload-icon{width:48px;height:48px;color:var(--text-muted);margin-bottom:1.5rem;transition:color .2s ease}.upload-zone:hover .upload-icon{color:var(--text-primary)}.upload-zone h2{font-size:1.25rem;font-weight:600;margin-bottom:.5rem}.upload-zone p{color:var(--text-secondary);font-size:.95rem}.upload-zone .hint{font-size:.8rem;color:var(--text-muted);margin-top:1rem}.processing-container{width:100%;max-width:600px;text-align:center;animation:fadeIn .3s ease}.processing-container h2{font-size:1.5rem;font-weight:600;margin-bottom:.5rem}.processing-subtitle{color:var(--text-secondary);margin-bottom:2rem}.processing-preview{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border-color);margin-bottom:2rem;background:var(--bg-surface)}.processing-preview img{width:100%;height:auto;display:block;opacity:.5}.progress-bar{width:100%;margin-bottom:1rem}.progress-content{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;font-size:.875rem;font-weight:500}.progress-track{width:100%;height:6px;background:var(--bg-surface-hover);border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .3s ease}.result-container{width:100%;max-width:1000px;display:flex;flex-direction:column;align-items:center;animation:fadeIn .3s ease}.moving-image-container{width:100%;display:flex;flex-direction:column;align-items:center;gap:1.5rem}.moving-image-wrapper{width:100%;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border-color);background:var(--bg-surface);position:relative}.moving-image-video{width:100%;height:auto;display:block;max-height:70vh;object-fit:contain}.moving-image-info{text-align:center;max-width:600px}.moving-image-info .hint{color:var(--text-secondary);font-size:.875rem}.enhancement-mode-badge{display:inline-flex;align-items:center;padding:.25rem .75rem;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:999px;font-size:.75rem;font-weight:500;color:var(--text-secondary);margin-bottom:2rem}.image-comparison{width:100%;margin-bottom:2rem}.comparison-wrapper{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border-color);background:var(--bg-surface);line-height:0;user-select:none;-webkit-user-select:none}.comparison-image{width:100%;height:auto;display:block;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;max-width:100%;object-fit:contain;transform:translateZ(0);-webkit-transform:translateZ(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.comparison-overlay{position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;will-change:clip-path;pointer-events:none;transform:translateZ(0);-webkit-transform:translateZ(0)}.slider-line{position:absolute;top:0;bottom:0;width:2px;background:#fff;z-index:10;pointer-events:none;will-change:left}.slider-handle{position:absolute;top:50%;transform:translate(-50%,-50%);width:40px;height:40px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0003;z-index:20;pointer-events:none;will-change:left}.slider-handle:before,.slider-handle:after{content:"";border:solid black;border-width:0 2px 2px 0;display:inline-block;padding:3px}.slider-handle:before{transform:rotate(135deg);margin-right:2px}.slider-handle:after{transform:rotate(-45deg);margin-left:2px}.slider-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:ew-resize;z-index:30;margin:0;padding:0}.labels{display:flex;justify-content:space-between;margin-top:1rem;padding:0 .5rem}.label{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:.05em}.actions{display:flex;gap:1rem;width:100%;max-width:400px}.btn{flex:1;padding:.875rem 1.5rem;border-radius:var(--radius-md);font-weight:500;font-size:.95rem;cursor:pointer;transition:all .2s ease;border:none;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:var(--primary);color:var(--primary-foreground)}.btn-primary:hover{background:#e4e4e7}.btn-primary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn-secondary{background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover{background:var(--bg-surface-hover);border-color:var(--border-hover)}.btn-secondary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.error-message{background:#ef44441a;border:1px solid rgba(239,68,68,.2);color:var(--error);padding:1rem;border-radius:var(--radius-md);margin-bottom:2rem;width:100%;max-width:600px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.error-message p{font-size:.9rem;margin:0}.error-message button{background:transparent;border:1px solid currentColor;color:currentColor;padding:.25rem .75rem;border-radius:var(--radius-sm);font-size:.75rem;cursor:pointer}.footer{padding:2rem;text-align:center;color:var(--text-muted);font-size:.875rem;border-top:1px solid var(--border-color);margin-top:auto}@media(max-width:640px){:root{--container-padding: 1rem}.header{padding:1.5rem var(--container-padding)}.header h1{font-size:1.25rem}.header p{font-size:.8rem}.main{padding:1.5rem var(--container-padding)}.mode-tabs{grid-template-columns:1fr;gap:.75rem;max-width:100%}.moving-image-video{max-height:50vh}.mode-tab{padding:1rem}.upload-zone{padding:1.5rem 1rem;min-height:250px}.upload-icon{width:40px;height:40px;margin-bottom:1rem}.upload-zone h2{font-size:1.1rem}.upload-zone p{font-size:.875rem}.actions{flex-direction:column;max-width:100%}.btn{width:100%}.slider-handle{width:48px;height:48px}.comparison-wrapper{border-radius:var(--radius-md)}}@media(min-width:641px)and (max-width:1024px){.main{padding:2rem}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:2rem;max-width:400px;width:100%;animation:fadeIn .3s ease}.modal-content h3{font-size:1.25rem;font-weight:600;margin-bottom:1.5rem;text-align:center}.modal-actions{display:flex;flex-direction:column;gap:.75rem}.modal-actions .btn{width:100%}*{-webkit-tap-highlight-color:transparent}button{-webkit-appearance:none;-moz-appearance:none;appearance:none}*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;padding:0}#root{min-height:100vh;width:100%}
