.sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;background:var(--bg-surface);border-right:1px solid var(--border-color);display:flex;flex-direction:column;z-index:30;overflow-y:auto}.sidebar-content{display:flex;flex-direction:column;height:100%;padding:1.5rem;gap:2rem}.sidebar-logo{padding:.5rem 0 1.5rem;margin-bottom:1rem;text-align:center}.logo-link{text-decoration:none;color:inherit;display:inline-block;position:relative}.logo-text{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;margin:0;display:inline-block;position:relative;padding-right:.5em}.beta-exponent{font-size:.5em;font-weight:600;position:absolute;top:.1em;right:0;-webkit-text-fill-color:rgba(59,130,246,.8);text-transform:lowercase;pointer-events:none;line-height:1}.sidebar-profile-section{background:var(--bg-app);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:1.5rem}.profile-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--bg-surface);border:2px solid var(--border-color);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar span{font-size:1.25rem;font-weight:700;color:var(--text-primary)}.profile-info{flex:1;min-width:0}.profile-name{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-email{font-size:.8125rem;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-credits{background:#3b82f61a;border:1px solid rgba(59,130,246,.2);border-radius:var(--radius-lg);padding:1rem;margin-bottom:1.5rem;text-align:center}.credits-label{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin-bottom:.5rem}.credits-amount{font-size:2rem;font-weight:700;background:linear-gradient(to bottom right,var(--accent),#60a5fa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;line-height:1}.profile-actions{display:flex;flex-direction:column;gap:.5rem}.profile-action-btn{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);text-decoration:none;font-size:.9375rem;font-weight:500;transition:all var(--transition-base);cursor:pointer;width:100%}.profile-action-btn:hover{background:var(--bg-surface-hover);border-color:var(--border-hover);color:var(--text-primary)}.profile-action-btn.active{background:#3b82f61a;border-color:var(--accent);color:var(--accent)}.profile-action-logout{color:var(--text-secondary)}.profile-action-logout:hover{background:#ef44441a;border-color:#ef44444d;color:var(--error)}.sidebar-tools-section{flex:1}.sidebar-section-title{font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem;padding:0 .5rem}.sidebar-nav{display:flex;flex-direction:column;gap:.25rem}.sidebar-nav-link{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;color:var(--text-secondary);text-decoration:none;border-radius:var(--radius-md);font-size:.9375rem;font-weight:500;transition:all var(--transition-base)}.sidebar-nav-link:hover{background:var(--bg-surface-hover);color:var(--text-primary)}.sidebar-nav-link.active{background:#3b82f61a;color:var(--accent)}.sidebar-nav-link svg{flex-shrink:0}@media(max-width:1024px){.sidebar{width:240px}}.mobile-menu-button{position:fixed;top:1rem;left:1rem;z-index:100;width:44px;height:44px;display:none;align-items:center;justify-content:center;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;transition:all var(--transition-base)}.mobile-menu-button:hover{background:var(--bg-surface-hover);border-color:var(--border-hover)}.mobile-menu-button svg{width:24px;height:24px}.sidebar-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:29;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}@media(max-width:768px){.mobile-menu-button{display:flex}.sidebar-overlay{display:block}.sidebar{transform:translate(-100%);transition:transform var(--transition-base);box-shadow:2px 0 8px #0000004d}.sidebar.open{transform:translate(0)}}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:var(--container-padding);background:var(--bg-app)}.auth-card{width:100%;max-width:420px;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:2.5rem;animation:fadeIn .3s ease}.auth-header{text-align:center;margin-bottom:2rem}.auth-header h1{font-size:2rem;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;margin-bottom:.5rem}.auth-subtitle{color:var(--text-secondary);font-size:.9375rem}.auth-error{background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:var(--radius-md);padding:.75rem 1rem;margin-bottom:1.5rem}.auth-error p{color:var(--error);font-size:.875rem;margin:0}.auth-form{margin-bottom:1.5rem}.form-group{margin-bottom:1.25rem}.form-group label{display:block;color:var(--text-primary);font-size:.875rem;font-weight:500;margin-bottom:.5rem}.form-group input{width:100%;padding:.75rem 1rem;background:var(--bg-app);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);font-size:.9375rem;transition:all var(--transition-base);box-sizing:border-box}.form-group input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #3b82f61a}.form-group input:disabled{opacity:.6;cursor:not-allowed}.form-group input::placeholder{color:var(--text-muted)}.btn-google{display:flex;align-items:center;gap:.75rem;background:var(--bg-surface);border:1px solid var(--border-color);color:var(--text-primary)}.btn-google:hover:not(:disabled){background:var(--bg-surface-hover);border-color:var(--border-hover)}.google-icon{flex-shrink:0}.auth-divider{display:flex;align-items:center;text-align:center;margin:1.5rem 0;color:var(--text-muted);font-size:.875rem}.auth-divider:before,.auth-divider:after{content:"";flex:1;border-bottom:1px solid var(--border-color)}.auth-divider span{padding:0 1rem}.auth-footer{margin-top:1.5rem;text-align:center;color:var(--text-secondary);font-size:.875rem}.auth-link{background:none;border:none;color:var(--accent);cursor:pointer;font-size:inherit;font-weight:500;padding:0;text-decoration:underline;transition:color var(--transition-base)}.auth-link:hover:not(:disabled){color:var(--accent-hover)}.auth-link:disabled{opacity:.6;cursor:not-allowed}@media(max-width:640px){.auth-card{padding:2rem 1.5rem}.auth-header h1{font-size:1.75rem}}.login-prompt-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--container-padding);animation:fadeIn .2s ease}.login-prompt-modal{position:relative;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);max-width:480px;width:100%;padding:2.5rem;box-shadow:0 20px 60px #00000080;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-prompt-close{position:absolute;top:1rem;right:1rem;width:36px;height:36px;background:var(--bg-app);border:1px solid var(--border-color);border-radius:50%;color:var(--text-secondary);font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-base)}.login-prompt-close:hover{background:var(--bg-surface-hover);border-color:var(--border-hover);color:var(--text-primary)}.login-prompt-content{display:flex;flex-direction:column;align-items:center;text-align:center}.login-prompt-icon{width:80px;height:80px;background:#3b82f61a;border:2px solid rgba(59,130,246,.3);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--accent);margin-bottom:1.5rem}.login-prompt-title{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin-bottom:.75rem}.login-prompt-message{font-size:1rem;color:var(--text-secondary);line-height:1.6;margin-bottom:2rem;max-width:400px}.login-prompt-actions{display:flex;flex-direction:column;gap:.75rem;width:100%;margin-bottom:2rem}.btn-full{width:100%;justify-content:center}.login-prompt-features{display:flex;flex-direction:column;gap:.75rem;width:100%;padding-top:1.5rem;border-top:1px solid var(--border-color)}.feature-item{display:flex;align-items:center;gap:.75rem;color:var(--text-secondary);font-size:.9375rem}.feature-item svg{color:var(--success);flex-shrink:0}@media(max-width:640px){.login-prompt-modal{padding:2rem 1.5rem}.login-prompt-title{font-size:1.5rem}.login-prompt-message{font-size:.9375rem}}.upload-page{width:100%;max-width:900px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%}.landing-logo{text-align:center;margin-bottom:3rem}.landing-logo .logo-text{font-size:3rem;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;margin:0 0 .5rem;display:inline-block;position:relative}.landing-logo .beta-exponent{font-size:.5em;font-weight:600;vertical-align:super;margin-left:.25rem;-webkit-text-fill-color:rgba(59,130,246,.8);position:relative;top:-.4em;text-transform:lowercase}.landing-tagline{font-size:1.125rem;color:var(--text-secondary);margin:0 0 1.5rem}.landing-signin-btn{margin-top:.5rem}.saving-indicator{background:#10b9811a;border:1px solid rgba(16,185,129,.3);border-radius:var(--radius-md);padding:.75rem 1rem;margin-bottom:1rem;text-align:center}.saving-indicator p{color:var(--success);font-size:.875rem;margin:0}.insufficient-credits-warning{background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:var(--radius-md);padding:.75rem 1rem;margin-bottom:1rem;text-align:center}.insufficient-credits-warning p{color:var(--error);font-size:.875rem;margin:0}.gallery-container{padding:var(--container-padding);max-width:var(--max-width);margin:0 auto;width:100%}.gallery-loading,.gallery-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center;color:var(--text-secondary)}.gallery-empty-icon{width:64px;height:64px;margin-bottom:1rem;opacity:.5}.gallery-empty h2{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;color:var(--text-primary)}.gallery-header{margin-bottom:2rem}.gallery-header h2{font-size:1.875rem;font-weight:700;margin-bottom:.25rem;color:var(--text-primary)}.gallery-count{color:var(--text-secondary);font-size:.9375rem}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.gallery-item{position:relative;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-lg);overflow:hidden;cursor:pointer;transition:all var(--transition-base)}.gallery-item:hover{transform:translateY(-4px);border-color:var(--border-hover);box-shadow:0 8px 24px #0000004d}.gallery-item-image{position:relative;width:100%;padding-top:100%;overflow:hidden;background:var(--bg-app)}.gallery-item-image img,.gallery-item-image video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.gallery-video{background:#000}.gallery-item-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(to bottom,rgba(0,0,0,.4),transparent);opacity:0;transition:opacity var(--transition-base);display:flex;align-items:flex-start;justify-content:flex-end;padding:.75rem}.gallery-item:hover .gallery-item-overlay{opacity:1}.gallery-item-mode{background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--text-primary);padding:.25rem .75rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.gallery-item-actions{position:absolute;bottom:0;left:0;right:0;display:flex;gap:.5rem;padding:.75rem;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);opacity:0;transition:opacity var(--transition-base)}.gallery-item:hover .gallery-item-actions{opacity:1}.gallery-action-btn{flex:1;display:flex;align-items:center;justify-content:center;padding:.5rem;background:#ffffff1a;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;transition:all var(--transition-base)}.gallery-action-btn:hover:not(:disabled){background:#fff3;border-color:#ffffff4d}.gallery-action-btn:disabled{opacity:.6;cursor:not-allowed}.gallery-action-delete:hover:not(:disabled){background:#ef444433;border-color:#ef444466;color:var(--error)}.gallery-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--container-padding);animation:fadeIn .2s ease}.gallery-modal-content{position:relative;max-width:90vw;max-height:90vh;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);overflow:hidden;display:flex;flex-direction:column}.gallery-modal-close{position:absolute;top:1rem;right:1rem;width:40px;height:40px;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);border-radius:50%;color:var(--text-primary);font-size:1.5rem;line-height:1;cursor:pointer;z-index:10;transition:all var(--transition-base);display:flex;align-items:center;justify-content:center}.gallery-modal-close:hover{background:#000000e6;border-color:#ffffff4d}.gallery-modal-image,.gallery-modal-video{width:100%;max-height:70vh;object-fit:contain;background:var(--bg-app)}.gallery-modal-info{padding:1.5rem;border-top:1px solid var(--border-color)}.gallery-modal-info p{margin-bottom:.75rem;color:var(--text-secondary);font-size:.9375rem}.gallery-modal-info p:last-of-type{margin-bottom:1.5rem}.gallery-modal-info strong{color:var(--text-primary);font-weight:600}.gallery-modal-actions{display:flex;gap:.75rem}.gallery-modal-actions .btn{flex:1}@media(max-width:640px){.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.gallery-modal-content{max-width:100vw;max-height:100vh;border-radius:0}.gallery-modal-image,.gallery-modal-video{max-height:60vh}}.wallet-container{padding:var(--container-padding);max-width:var(--max-width);margin:0 auto;width:100%}.wallet-loading{display:flex;align-items:center;justify-content:center;min-height:60vh;color:var(--text-secondary)}.wallet-header{margin-bottom:2rem}.wallet-header h2{font-size:1.875rem;font-weight:700;margin-bottom:1.5rem;color:var(--text-primary)}.wallet-balance{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:2rem}.balance-amount{display:flex;flex-direction:column;align-items:center;gap:.5rem}.balance-label{font-size:.875rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.balance-value{font-size:3rem;font-weight:700;background:linear-gradient(to bottom right,var(--accent),#60a5fa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;line-height:1}.wallet-content{display:grid;gap:2rem}.top-up-section{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:2rem;overflow:visible}.section-header{margin-bottom:2rem;text-align:center}.section-header h3{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;color:var(--text-primary)}.section-subtitle{font-size:.9375rem;color:var(--text-secondary);margin:0}.top-up-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;overflow:visible}.top-up-card{position:relative;background:var(--bg-app);border:2px solid var(--border-color);border-radius:var(--radius-xl);padding:1.5rem;display:flex;flex-direction:column;align-items:center;text-align:center;transition:all var(--transition-base);cursor:pointer;overflow:visible}.top-up-card:hover{border-color:var(--border-hover);transform:translateY(-4px);box-shadow:0 8px 24px #0003}.top-up-card.popular{border-color:var(--accent);background:linear-gradient(135deg,#3b82f60d,#3b82f605)}.top-up-card.selected{border-color:var(--accent);box-shadow:0 0 0 3px #3b82f633}.popular-badge{position:absolute;top:-12px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,var(--accent),#60a5fa);color:#fff;padding:.25rem .75rem;border-radius:999px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 4px 12px #3b82f64d}.bonus-badge{position:absolute;top:1rem;right:1rem;background:#10b98126;border:1px solid rgba(16,185,129,.3);color:var(--success);padding:.25rem .5rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;z-index:10;white-space:nowrap}.top-up-price{display:flex;align-items:flex-start;justify-content:center;margin-bottom:1rem;margin-top:1.5rem}.price-currency{font-size:.65rem;font-weight:600;color:var(--text-secondary);margin-top:.15rem}.price-amount{font-size:1.3rem;font-weight:700;background:linear-gradient(to bottom right,var(--text-primary),var(--text-secondary));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;line-height:1}.top-up-credits{display:flex;flex-direction:column;align-items:center;gap:.25rem;margin-bottom:1rem}.credits-amount{font-size:1.75rem;font-weight:700;color:var(--accent);line-height:1}.credits-label{font-size:.875rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.bonus-info{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem;padding:.75rem;background:#10b9811a;border-radius:var(--radius-md);width:100%}.base-credits{font-size:.8125rem;color:var(--text-secondary)}.bonus-credits{font-size:.875rem;font-weight:600;color:var(--success)}.top-up-button{width:100%;padding:.75rem 1.5rem;background:var(--accent);border:none;border-radius:var(--radius-md);color:#fff;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all var(--transition-base);display:flex;align-items:center;justify-content:center;gap:.5rem}.top-up-button:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-2px);box-shadow:0 4px 12px #3b82f64d}.top-up-button:disabled{opacity:.6;cursor:not-allowed}.top-up-card.popular .top-up-button{background:linear-gradient(135deg,var(--accent),#60a5fa)}.top-up-card.popular .top-up-button:hover:not(:disabled){background:linear-gradient(135deg,var(--accent-hover),#3b82f6)}.spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.credit-info,.wallet-info{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:2rem}.credit-info h3,.wallet-info h3{font-size:1.25rem;font-weight:600;margin-bottom:1.5rem;color:var(--text-primary)}.cost-list{display:flex;flex-direction:column;gap:1rem}.cost-item{padding:1.25rem;background:var(--bg-app);border:1px solid var(--border-color);border-radius:var(--radius-lg);transition:all var(--transition-base)}.cost-item:hover{border-color:var(--border-hover);background:var(--bg-surface-hover)}.cost-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.cost-item-name{font-size:1rem;font-weight:600;color:var(--text-primary)}.cost-item-price{font-size:1.125rem;font-weight:700;color:var(--accent)}.cost-item-description{font-size:.875rem;color:var(--text-secondary);margin:0}.info-content{display:flex;flex-direction:column;gap:.75rem}.info-content p{font-size:.9375rem;color:var(--text-secondary);margin:0;line-height:1.6}@media(max-width:1024px){.top-up-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}@media(max-width:768px){.top-up-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.wallet-balance{padding:1.5rem}.balance-value{font-size:2.5rem}.top-up-section,.credit-info,.wallet-info{padding:1.5rem}.top-up-grid{grid-template-columns:1fr}.price-amount{font-size:1.3rem}.credits-amount{font-size:1.5rem}}: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)}.app-layout{display:flex;flex:1;min-height:0}.main{flex:1;width:100%;padding:2rem var(--container-padding);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;margin-left:0;transition:margin-left var(--transition-base);position:relative;z-index:1;box-sizing:border-box}.main.with-sidebar{margin-left:280px;max-width:calc(100% - 280px)}@media(max-width:1024px){.main.with-sidebar{margin-left:240px;max-width:calc(100% - 240px)}}@media(max-width:768px){.main.with-sidebar{margin-left:0;max-width:100%}}.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:5.5rem var(--container-padding) 1.5rem}.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%}
