:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--primary-color: #ff6b35;--secondary-color: #f7931e;--accent-color: #4a90e2;--success-color: #27ae60;--error-color: #e74c3c;--warning-color: #f39c12;--bg-primary: #0a0a0f;--bg-secondary: #1a1a2e;--bg-tertiary: #16213e;--bg-card: #1e1e2e;--text-primary: #ffffff;--text-secondary: #b8bcc8;--text-muted: #9ca3af;--border-radius: 12px;--border-radius-lg: 20px;--shadow-sm: 0 2px 4px rgba(0, 0, 0, .1);--shadow-md: 0 4px 12px rgba(0, 0, 0, .15);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .2);--shadow-xl: 0 20px 60px rgba(0, 0, 0, .3);--transition: all .3s ease;--transition-fast: all .15s ease}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg-primary);color:var(--text-primary);line-height:1.6;min-height:100vh}.app{min-height:100vh;width:100%;display:flex;flex-direction:column}.landing-page{min-height:100vh;width:100%;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%)}.landing-header{position:fixed;top:0;left:0;right:0;z-index:100;background:#0a0a0fe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1)}.header-content{max-width:1200px;margin:0 auto;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center}.logo{display:flex;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.logo-icon{font-size:2rem}.hero-section{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:6rem 1rem 2rem;background:radial-gradient(circle at 20% 80%,rgba(255,107,53,.1) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(74,144,226,.1) 0%,transparent 50%);margin:0 auto;text-align:center}.hero-content{max-width:1200px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2rem;margin:0 auto}.hero-text{max-width:800px;width:100%;text-align:center}.hero-title{font-size:clamp(2.5rem,5vw,4rem);font-weight:800;line-height:1.1;margin-bottom:1.5rem}.gradient-text{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-subtitle{font-size:1.25rem;color:var(--text-secondary);margin-bottom:2rem;line-height:1.6}.hero-stats{display:flex;gap:2rem;margin-bottom:2rem;justify-content:center;align-items:center;width:100%}.stat{display:flex;flex-direction:column;align-items:center}.stat-number{font-size:2rem;font-weight:700;color:var(--primary-color)}.stat-label{font-size:.9rem;color:var(--text-muted)}.hero-cta{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.cta-button{padding:1rem 2rem;border-radius:var(--border-radius);font-size:1.1rem;font-weight:600;border:none;cursor:pointer;transition:var(--transition);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-width:200px}.cta-button.primary{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;box-shadow:var(--shadow-md)}.cta-button.primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.cta-button.secondary{background:transparent;color:var(--text-primary);border:2px solid rgba(255,255,255,.2)}.cta-button.secondary:hover{border-color:var(--primary-color);color:var(--primary-color)}.cta-button.large{padding:1.25rem 2.5rem;font-size:1.2rem}.user-welcome{padding:1rem 2rem;background:linear-gradient(135deg,#ff6b351a,#4a90e21a);border:1px solid rgba(255,107,53,.3);border-radius:var(--border-radius);color:var(--text-primary);font-weight:500;display:flex;align-items:center;justify-content:center;min-width:200px}.google-sign-in-btn{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem 2rem;background:#fff;color:#333;border:none;border-radius:var(--border-radius);font-size:1rem;font-weight:500;cursor:pointer;transition:var(--transition);box-shadow:var(--shadow-md);min-width:200px}.google-sign-in-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.google-sign-in-btn:disabled{opacity:.7;cursor:not-allowed;transform:none}.google-icon{display:flex;align-items:center;justify-content:center}.auth-user-info{display:flex;align-items:center;gap:1rem}.user-avatar img{width:40px;height:40px;border-radius:50%;border:2px solid var(--primary-color)}.user-details{display:flex;flex-direction:column;gap:.25rem}.user-name{color:var(--text-primary);font-weight:600}.sign-out-btn,.icon-sign-out-btn{background:transparent;border:1px solid rgba(255,255,255,.2);color:var(--text-secondary);padding:.5rem 1rem;border-radius:6px;cursor:pointer;transition:var(--transition);font-size:.9rem}.sign-out-btn:hover,.icon-sign-out-btn:hover{border-color:var(--primary-color);color:var(--primary-color)}.icon-sign-out-btn{padding:.5rem;min-width:auto}.auth-loading{display:flex;align-items:center;justify-content:center;padding:1rem}.loading-spinner{width:20px;height:20px;border:2px solid var(--text-muted);border-top:2px solid var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}.hero-visual{display:flex;justify-content:center;align-items:center;margin-top:2rem}.thumbnail-showcase{position:relative;opacity:.8}.thumbnail-example{display:flex;align-items:center;gap:1.5rem;scale:.9}.thumbnail-frame{width:200px;height:112px;border-radius:var(--border-radius);overflow:hidden;box-shadow:var(--shadow-lg);position:relative}.thumbnail-frame.generated{box-shadow:0 0 30px #ff6b354d}.thumbnail-content{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column}.thumbnail-bg{position:absolute;inset:0;background:var(--bg-tertiary)}.thumbnail-bg.gradient{background:linear-gradient(135deg,var(--primary-color),var(--accent-color))}.thumbnail-person{font-size:2rem;z-index:1;margin-bottom:.5rem}.thumbnail-text{font-size:.8rem;font-weight:700;color:#fff;z-index:1;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.thumbnail-arrow{font-size:2rem;color:var(--primary-color);animation:pulse 2s infinite}.floating-upgrade-button{position:fixed;left:20px;top:50%;transform:translateY(-50%);z-index:999;display:flex;flex-direction:column;align-items:center;gap:10px}.floating-upgrade-button .upgrade-button{min-width:220px;font-size:14px;padding:12px 18px}@media (max-width: 768px){.floating-upgrade-button{display:none}}.thumbnail-creator .floating-upgrade-button{display:none}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.container{max-width:1200px;margin:0 auto;padding:0 1rem}.section-title{font-size:2.5rem;font-weight:700;text-align:center;margin-bottom:3rem;color:var(--text-primary)}.features-section{padding:6rem 0;background:var(--bg-secondary)}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.feature-card{background:var(--bg-card);padding:2rem;border-radius:var(--border-radius-lg);text-align:center;transition:var(--transition);border:1px solid rgba(255,255,255,.1)}.feature-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-xl);border-color:#ff6b354d}.feature-icon{font-size:3rem;margin-bottom:1rem}.feature-title{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:var(--text-primary)}.feature-description{color:var(--text-secondary);line-height:1.6}.how-it-works{padding:6rem 0;background:var(--bg-primary)}.steps-container{display:flex;align-items:flex-start;justify-content:center;max-width:900px;margin:0 auto;gap:2rem;padding:2rem 0}.step{flex:1;text-align:center;padding:1rem}.step-number{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;margin:0 auto 1.5rem;box-shadow:var(--shadow-md);z-index:1;position:relative}.step-content h3{font-size:1.25rem;margin-bottom:1rem;color:var(--text-primary)}.step-content p{color:var(--text-secondary);font-size:1rem;line-height:1.6}.step-arrow{font-size:2rem;color:var(--primary-color);margin-top:30px;flex-shrink:0}.testimonials-section{padding:6rem 0;background:var(--bg-secondary)}.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.testimonial-card{background:var(--bg-card);padding:2rem;border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1)}.testimonial-content p{font-style:italic;color:var(--text-secondary);margin-bottom:1.5rem;line-height:1.6}.testimonial-author{display:flex;align-items:center;gap:1rem}.author-avatar{width:50px;height:50px;border-radius:50%;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-size:1.5rem}.author-info h4{color:var(--text-primary);margin-bottom:.25rem}.author-info span{color:var(--text-muted);font-size:.9rem}.final-cta{padding:6rem 0;background:linear-gradient(135deg,var(--bg-primary),var(--bg-tertiary))}.cta-content{text-align:center;max-width:600px;margin:0 auto}.cta-content h2{font-size:2.5rem;margin-bottom:1rem;color:var(--text-primary)}.cta-content p{color:var(--text-secondary);font-size:1.1rem;margin-bottom:2rem}.thumbnail-creator{min-height:100vh;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%)}.creator-header{background:var(--bg-secondary);border-bottom:1px solid rgba(255,255,255,.1);padding:1.5rem 0}.header-content{max-width:1200px;margin:0 auto;padding:0 1rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}.header-text{grid-column:2;text-align:center}.back-button{grid-column:1;justify-self:start}.header-auth{display:flex;align-items:center}.back-button,.reset-button{background:transparent;border:1px solid rgba(255,255,255,.2);color:var(--text-secondary);padding:.75rem 1.5rem;border-radius:var(--border-radius);cursor:pointer;transition:var(--transition);font-size:.9rem}.back-button:hover,.reset-button:hover{border-color:var(--primary-color);color:var(--primary-color)}.gallery-nav-button{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));border:none;color:#fff;padding:.75rem 1.5rem;border-radius:var(--border-radius);cursor:pointer;transition:var(--transition);font-size:.9rem;font-weight:600;display:flex;align-items:center;gap:.5rem;box-shadow:0 2px 8px #667eea4d}.gallery-nav-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.gallery-nav-button svg{transition:transform .3s ease}.gallery-nav-button:hover svg{transform:scale(1.1)}.header-text{text-align:center;flex:1;margin:0 2rem}.header-text h1{font-size:2rem;margin-bottom:.5rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-text p{color:var(--text-secondary)}.creator-main{flex:1;padding:3rem 1rem}.creator-container{max-width:800px;margin:0 auto}.tab-navigation{display:flex;gap:.5rem;margin-bottom:2rem;padding:.5rem;background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1)}.tab-button{flex:1;display:flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem 1.5rem;background:transparent;border:none;border-radius:var(--border-radius);color:var(--text-secondary);font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;position:relative}.tab-button svg{transition:all .3s ease}.tab-button:hover{color:var(--primary-color);background:#667eea1a}.tab-button.active{color:#fff;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));box-shadow:0 4px 15px #667eea4d}.tab-button.active svg{transform:scale(1.1)}.shorts-tab-content{margin-top:2rem}.progress-indicator{display:flex;align-items:center;justify-content:center;margin-bottom:3rem;padding:2rem;background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1)}.progress-step{display:flex;flex-direction:column;align-items:center;gap:.5rem;opacity:.5;transition:var(--transition)}.progress-step.active{opacity:1;color:var(--primary-color)}.progress-step.completed{opacity:1;color:var(--success-color)}.step-circle{width:40px;height:40px;border-radius:50%;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-weight:700;border:2px solid currentColor}.progress-step.active .step-circle{background:var(--primary-color);color:#fff}.progress-step.completed .step-circle{background:var(--success-color);color:#fff}.progress-line{width:60px;height:2px;background:#fff3;margin:0 1rem}.creator-steps{display:flex;flex-direction:column;gap:2rem}.creator-step{background:var(--bg-card);border-radius:var(--border-radius-lg);padding:2rem;border:1px solid rgba(255,255,255,.1);transition:var(--transition)}.creator-step:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}@media (max-width: 768px){.hero-content{gap:2rem;text-align:center}.hero-stats{flex-direction:column;gap:1rem;justify-content:center}.hero-cta{flex-direction:column;align-items:center;justify-content:center}.steps-container{flex-direction:column;gap:2rem;align-items:center}.step-arrow{transform:rotate(90deg);margin-top:0}.progress-indicator{padding:1rem}.header-content{flex-direction:column;gap:1rem}.header-text{margin:0}.section-title{font-size:2rem}.features-grid,.testimonials-grid{grid-template-columns:1fr}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%);color:var(--text-primary);line-height:1.6;min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{text-align:center;padding:2rem 1rem;background:linear-gradient(135deg,var(--bg-secondary),var(--bg-tertiary));border-bottom:1px solid rgba(255,255,255,.1);position:relative}.app-header h1{font-size:3rem;font-weight:800;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.app-header p{font-size:1.2rem;color:var(--text-secondary);margin-bottom:1.5rem}.reset-button{background:linear-gradient(135deg,var(--accent-color),#357abd);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:var(--border-radius);font-size:1rem;font-weight:600;cursor:pointer;transition:var(--transition);box-shadow:var(--shadow-sm)}.reset-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.app-main{flex:1;padding:2rem 1rem;max-width:1200px;margin:0 auto;width:100%}.workflow-container{display:flex;flex-direction:column;gap:2rem}.step-section{background:var(--bg-secondary);border-radius:var(--border-radius);padding:2rem;border:1px solid rgba(255,255,255,.1);box-shadow:var(--shadow-md);position:relative;transition:var(--transition)}.step-section:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.step-number{position:absolute;top:-15px;left:2rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;box-shadow:var(--shadow-sm)}.image-upload-container h3{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.upload-area{border:2px dashed rgba(255,255,255,.3);border-radius:var(--border-radius);padding:3rem 2rem;text-align:center;cursor:pointer;transition:var(--transition);background:#ffffff05}.upload-area:hover,.upload-area.drag-over{border-color:var(--primary-color);background:#ff6b351a;transform:scale(1.02)}.upload-placeholder .upload-icon{font-size:3rem;margin-bottom:1rem}.upload-placeholder p{color:var(--text-secondary);margin-bottom:.5rem}.upload-hint{color:var(--text-muted);font-size:.9rem}.image-preview{display:flex;flex-direction:column;align-items:center;gap:1rem}.image-preview img{max-width:200px;max-height:200px;border-radius:var(--border-radius);box-shadow:var(--shadow-md);object-fit:cover}.remove-image{background:var(--error-color);color:#fff;border:none;padding:.5rem 1rem;border-radius:var(--border-radius);cursor:pointer;transition:var(--transition)}.remove-image:hover{background:#c0392b}.thumbnail-prompt-container h3{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.prompt-input-container{position:relative;margin-bottom:2rem}.prompt-textarea{width:100%;background:var(--bg-tertiary);border:1px solid rgba(255,255,255,.2);border-radius:var(--border-radius);padding:1rem;color:var(--text-primary);font-size:1rem;font-family:inherit;resize:vertical;min-height:120px;transition:var(--transition)}.prompt-textarea:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #ff6b351a}.char-counter{position:absolute;bottom:-25px;right:0;color:var(--text-muted);font-size:.8rem}.prompt-examples h4{color:var(--text-secondary);margin-bottom:1rem;font-size:1.1rem}.examples-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:2rem}.example-prompt{background:var(--bg-tertiary);border:1px solid rgba(255,255,255,.1);border-radius:var(--border-radius);padding:.75rem 1rem;color:var(--text-secondary);font-size:.9rem;cursor:pointer;transition:var(--transition);text-align:left}.example-prompt:hover{border-color:var(--primary-color);color:var(--text-primary);transform:translateY(-2px)}.prompt-tips{background:#4a90e21a;border:1px solid rgba(74,144,226,.3);border-radius:var(--border-radius);padding:1.5rem}.prompt-tips h4{color:var(--accent-color);margin-bottom:1rem}.prompt-tips ul{list-style:none;padding-left:0}.prompt-tips li{color:var(--text-secondary);margin-bottom:.5rem;padding-left:1.5rem;position:relative}.prompt-tips li:before{content:"•";color:var(--accent-color);position:absolute;left:0}.thumbnail-generator h3{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.generation-summary{background:var(--bg-tertiary);border-radius:var(--border-radius);padding:1.5rem;margin-bottom:1.5rem}.summary-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.summary-item:last-child{margin-bottom:0}.summary-item .label{color:var(--text-secondary);font-weight:500}.status.ready{color:var(--success-color);font-weight:600}.status.skipped{color:#94a3b8;font-weight:600}.status.missing{color:var(--error-color);font-weight:600}.generate-button{width:100%;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;border:none;padding:1rem 2rem;border-radius:var(--border-radius);font-size:1.1rem;font-weight:600;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem}.generate-button:not(.disabled):hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.generate-button.disabled{background:#555;cursor:not-allowed;opacity:.6}.generate-button.generating{background:var(--accent-color)}.spinner{width:20px;height:20px;border:2px solid transparent;border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.generation-progress{text-align:center;padding:1rem;background:#4a90e21a;border-radius:var(--border-radius);border:1px solid rgba(74,144,226,.3)}.progress-text{color:var(--accent-color);font-weight:600;margin-bottom:.5rem}.progress-subtext{color:var(--text-muted);font-size:.9rem}.requirements-hint{background:#e74c3c1a;border:1px solid rgba(231,76,60,.3);border-radius:var(--border-radius);padding:1rem;color:var(--error-color)}.requirements-hint p{margin-bottom:.5rem}.requirements-hint p:last-child{margin-bottom:0}.error-message{background:#e74c3c1a;border:1px solid var(--error-color);border-radius:var(--border-radius);padding:1rem;margin-bottom:1rem;color:var(--error-color)}.results-container{animation:slideIn .5s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.results-container h3{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.success-result{border-left:4px solid var(--success-color)}.error-result{border-left:4px solid var(--error-color)}.error-content{text-align:center;padding:2rem;background:#e74c3c1a;border-radius:var(--border-radius);margin-bottom:1.5rem}.error-icon{font-size:3rem;margin-bottom:1rem}.error-suggestions{background:var(--bg-tertiary);border-radius:var(--border-radius);padding:1.5rem}.error-suggestions h4{color:var(--warning-color);margin-bottom:1rem}.error-suggestions ul{list-style:none;padding-left:0}.error-suggestions li{color:var(--text-secondary);margin-bottom:.5rem;padding-left:1.5rem;position:relative}.error-suggestions li:before{content:"💡";position:absolute;left:0}.result-content{background:var(--bg-tertiary);border-radius:var(--border-radius);padding:1.5rem;margin-bottom:1.5rem}.image-result h4,.text-result h4{color:var(--success-color);margin-bottom:1rem}.generated-image{margin-bottom:1.5rem;text-align:center}.generated-image img{max-width:100%;height:auto;border-radius:var(--border-radius);box-shadow:var(--shadow-lg);border:2px solid rgba(255,255,255,.1)}.image-actions,.result-actions{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.generated-content{background:#ffffff0d;border-radius:var(--border-radius);padding:1.5rem;color:var(--text-primary);line-height:1.8;white-space:pre-wrap;margin-bottom:1.5rem;border:1px solid rgba(255,255,255,.1)}.action-button{background:var(--accent-color);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:var(--border-radius);font-size:1rem;font-weight:500;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:.5rem}.action-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.download-button{background:var(--primary-color)}.download-button:hover{background:#e55a2e}.image-actions{display:flex;justify-content:center;margin-bottom:1rem}.download-button-large{padding:1rem 2rem;font-size:1.2rem;min-width:200px;font-weight:600}.copy-button:hover{background:#357abd}.save-button{background:var(--success-color)}.save-button:hover{background:#219a52}.result-info{color:var(--text-muted);font-size:.9rem}.download-error{background:#e74c3c1a;color:var(--error-color);padding:.75rem;border-radius:var(--border-radius);margin-bottom:1rem;border:1px solid rgba(231,76,60,.3)}.next-steps,.recommended-tools,.quota-info{background:var(--bg-tertiary);border-radius:var(--border-radius);padding:1.5rem;margin-bottom:1.5rem}.next-steps h4,.recommended-tools h4,.quota-info h4{color:var(--accent-color);margin-bottom:1rem}.next-steps ol{color:var(--text-secondary);padding-left:1.5rem}.next-steps li{margin-bottom:.75rem;line-height:1.6}.next-steps ul{margin:.5rem 0;padding-left:1rem}.next-steps ul li{margin-bottom:.25rem}.quota-info{background:#ffc1071a;border:1px solid rgba(255,193,7,.3)}.quota-info h4{color:var(--warning-color)}.quota-details p{color:var(--text-secondary);margin-bottom:.75rem;line-height:1.6}.quota-details p:last-child{margin-bottom:0}.quota-details strong{color:var(--text-primary)}.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.tool-item{background:#ffffff0d;border-radius:var(--border-radius);padding:1rem;border:1px solid rgba(255,255,255,.1);transition:var(--transition)}.tool-item:hover{transform:translateY(-2px);border-color:var(--accent-color)}.tool-item strong{color:var(--text-primary);display:block;margin-bottom:.5rem}.tool-item p{color:var(--text-muted);font-size:.9rem;margin:0}.app-footer{text-align:center;padding:2rem 1rem;background:var(--bg-secondary);border-top:1px solid rgba(255,255,255,.1);color:var(--text-muted)}@media (max-width: 768px){.app-header h1{font-size:2rem}.app-header p{font-size:1rem}.step-section{padding:1.5rem}.examples-grid{grid-template-columns:1fr}.result-actions{flex-direction:column}.action-button{justify-content:center}.tools-grid{grid-template-columns:1fr}}@media (max-width: 480px){.app-main{padding:1rem .5rem}.step-section{padding:1rem}.upload-area{padding:2rem 1rem}}.auth-modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.auth-modal{background:var(--bg-card);border-radius:var(--border-radius-lg);padding:2rem;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-xl);border:1px solid rgba(255,255,255,.1);position:relative}.modal-close{position:absolute;top:1rem;right:1rem;background:transparent;border:none;color:var(--text-secondary);font-size:1.5rem;cursor:pointer;padding:.5rem;border-radius:50%;transition:var(--transition)}.modal-close:hover{background:#ffffff1a;color:var(--text-primary)}.modal-content{text-align:center}.modal-icon{font-size:3rem;margin-bottom:1rem}.modal-content h2{margin-bottom:1rem;color:var(--text-primary);font-size:1.5rem}.gallery-page{min-height:100vh;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%)}.gallery-header{background:var(--bg-secondary);border-bottom:1px solid rgba(255,255,255,.1);padding:1.5rem 0}.gallery-header .header-content{max-width:1200px;margin:0 auto;padding:0 1rem;display:flex;align-items:center;justify-content:space-between}.gallery-header .header-text{text-align:center;flex:1}.gallery-header h1{font-size:2rem;margin-bottom:.5rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.gallery-header p{color:var(--text-secondary)}.gallery-main{padding:3rem 1rem}.gallery-container{max-width:1200px;margin:0 auto}.gallery-loading,.gallery-error,.gallery-empty{text-align:center;padding:4rem 2rem;background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1)}.gallery-loading svg,.gallery-empty svg{margin:0 auto 1.5rem;opacity:.5;color:var(--primary-color)}.gallery-empty h2{font-size:1.5rem;margin-bottom:.5rem;color:var(--text-primary)}.gallery-empty p{color:var(--text-secondary);margin-bottom:1.5rem}.loading-spinner{width:50px;height:50px;margin:0 auto 1rem;border:4px solid rgba(102,126,234,.2);border-top-color:var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem;align-items:start}.gallery-item{background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1);overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;height:fit-content}.gallery-item-vertical{max-width:350px;justify-self:center}.gallery-item:hover{transform:translateY(-5px);box-shadow:0 10px 30px #0000004d}.gallery-item-image{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0000004d}.gallery-item-vertical .gallery-item-image{aspect-ratio:9/16}.gallery-item-image img{width:100%;height:100%;object-fit:cover;display:block}.gallery-item-overlay{position:absolute;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;gap:1rem;opacity:0;transition:opacity .3s ease}.gallery-item:hover .gallery-item-overlay{opacity:1}.gallery-action-button{padding:.75rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#fff;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.gallery-action-button:hover{background:var(--primary-color);border-color:var(--primary-color);transform:scale(1.1)}.gallery-action-button.delete:hover{background:#ef4444;border-color:#ef4444}.gallery-item-info{padding:1rem}.gallery-item-prompt{color:var(--text-primary);margin-bottom:.5rem;font-size:.9rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gallery-item-meta{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--text-secondary)}.gallery-item-orientation{padding:.25rem .5rem;background:#667eea33;border-radius:4px;color:var(--primary-color);font-weight:600;text-transform:capitalize}.cta-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));border:none;border-radius:var(--border-radius);color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d}.cta-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.retry-button{padding:.5rem 1rem;background:transparent;border:1px solid var(--primary-color);border-radius:var(--border-radius);color:var(--primary-color);cursor:pointer;transition:all .3s ease;margin-top:1rem}.retry-button:hover{background:var(--primary-color);color:#fff}.gallery-upgrade-card{background:linear-gradient(135deg,#667eea1a,#764ba21a);border:2px solid rgba(102,126,234,.3);border-radius:var(--border-radius-lg);padding:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;min-height:400px;position:relative;overflow:hidden}.gallery-upgrade-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));opacity:0;transition:opacity .3s ease}.gallery-upgrade-card:hover:before{opacity:.1}.gallery-upgrade-card:hover{transform:translateY(-5px);border-color:var(--primary-color);box-shadow:0 10px 30px #667eea4d}.upgrade-card-content{text-align:center;position:relative;z-index:1}.upgrade-icon{color:var(--primary-color);margin-bottom:1rem;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}.upgrade-card-content h3{font-size:1.5rem;margin-bottom:.75rem;color:var(--text-primary);background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.upgrade-card-content p{color:var(--text-secondary);margin-bottom:1.5rem;font-size:.95rem;line-height:1.5}.upgrade-features{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem;text-align:left}.feature-item{display:flex;align-items:center;gap:.5rem;color:var(--text-secondary);font-size:.9rem}.feature-item svg{color:var(--primary-color);flex-shrink:0}.upgrade-button{padding:.75rem 2rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));border:none;border-radius:var(--border-radius);color:#fff;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d;width:100%}.upgrade-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}@media (max-width: 768px){.gallery-grid{grid-template-columns:1fr;gap:1.5rem}.gallery-header h1{font-size:1.5rem}}.shorts-creator{max-width:1200px;margin:0 auto;padding:2rem}.ffmpeg-loading-banner{background:linear-gradient(90deg,#667eea26,#ff6b3526);border:1px solid rgba(102,126,234,.3);border-radius:var(--border-radius);padding:1rem 1.5rem;margin-bottom:2rem;display:flex;align-items:center;gap:1rem;color:var(--text-primary);animation:pulse 2s ease-in-out infinite}.loading-spinner{width:20px;height:20px;border:3px solid rgba(102,126,234,.3);border-top-color:var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.shorts-header{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:2rem;position:relative}.shorts-header h2{font-size:1.8rem;color:var(--text-primary);margin:0}.info-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:#667eea1a;border:1px solid rgba(102,126,234,.3);border-radius:50%;color:var(--primary-color);cursor:pointer;transition:all .3s ease}.info-button:hover{background:#667eea33;border-color:var(--primary-color);transform:scale(1.1)}.info-modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem;animation:fadeIn .2s ease}.info-modal-content{background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1);max-width:600px;width:100%;max-height:90vh;overflow-y:auto;padding:2rem;position:relative;animation:slideUp .3s ease}.info-modal-close{position:absolute;top:1rem;right:1rem;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.info-modal-close:hover{background:#ffffff1a;color:var(--text-primary)}.info-modal-content h3{font-size:1.5rem;color:var(--primary-color);margin-bottom:1.5rem;text-align:center}.info-modal-body{display:flex;flex-direction:column;gap:1.5rem}.info-section{display:flex;gap:1rem;padding:1rem;background:#ffffff05;border-radius:var(--border-radius);border:1px solid rgba(255,255,255,.05)}.info-icon{font-size:2rem;flex-shrink:0}.info-text h4{color:var(--text-primary);font-size:1.1rem;margin-bottom:.5rem}.info-text p{color:var(--text-secondary);line-height:1.6;margin:0}.info-note{padding:1rem;background:#667eea1a;border:1px solid rgba(102,126,234,.3);border-radius:var(--border-radius);color:var(--text-primary);line-height:1.6}.info-note strong{color:var(--primary-color)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.shorts-mode-selector{display:flex;gap:1rem;margin-bottom:2rem;justify-content:center}.shorts-summary{display:flex;gap:3rem;padding:1.5rem 2rem;background:#ffffff08;border-radius:var(--border-radius);border:1px solid rgba(255,255,255,.1);margin-bottom:2rem;justify-content:center;align-items:center}.summary-check-item{display:flex;flex-direction:column;align-items:center;gap:.5rem;transition:all .3s ease}.summary-check-item.completed{animation:checkPulse .5s ease}.check-icon{display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.summary-check-item:hover .check-icon{transform:scale(1.1)}.check-label{color:var(--text-secondary);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.summary-check-item.completed .check-label{color:#10b981}@keyframes checkPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.mode-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:var(--border-radius);color:var(--text-secondary);font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease}.mode-button:hover{background:#ffffff14;border-color:#fff3}.mode-button.active{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));border-color:var(--primary-color);color:#fff}.shorts-content{background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1);padding:2rem;margin-bottom:2rem}.shorts-section h3{font-size:1.5rem;color:var(--text-primary);margin-bottom:.5rem;text-align:center}.section-description{color:var(--text-secondary);margin-bottom:1.5rem;font-size:.95rem;text-align:center}.video-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;border:2px dashed rgba(255,255,255,.2);border-radius:var(--border-radius);background:#ffffff05;cursor:pointer;transition:all .3s ease;text-align:center}.video-upload-zone:hover{border-color:var(--primary-color);background:#667eea0d}.video-upload-zone svg{margin-bottom:1rem;color:var(--primary-color)}.video-upload-zone p{font-size:1.1rem;color:var(--text-primary);margin-bottom:.5rem}.video-upload-zone span{font-size:.9rem;color:var(--text-secondary)}.video-preview{display:flex;flex-direction:column;align-items:center;gap:1rem}.thumbnail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;max-height:500px;overflow-y:auto;padding:1rem;background:#0003;border-radius:var(--border-radius)}.thumbnail-option{position:relative;aspect-ratio:9/16;border-radius:var(--border-radius);overflow:hidden;cursor:pointer;border:2px solid transparent;transition:all .3s ease}.thumbnail-option:hover{border-color:var(--primary-color);transform:scale(1.02)}.thumbnail-option.selected{border-color:var(--primary-color);box-shadow:0 0 20px #667eea80}.thumbnail-option img{width:100%;height:100%;object-fit:cover}.selected-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000b3;border-radius:50%;padding:.5rem}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;text-align:center}.loading-state svg,.empty-state svg{margin-bottom:1rem;color:var(--text-secondary);opacity:.5}.loading-state p,.empty-state p{font-size:1.1rem;color:var(--text-primary);margin-bottom:.5rem}.empty-state span{color:var(--text-secondary);font-size:.9rem}.shorts-actions{text-align:center}.process-button{display:inline-flex;align-items:center;gap:.75rem;padding:1rem 2rem;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));border:none;border-radius:var(--border-radius);color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d}.process-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.process-button:disabled{opacity:.7;cursor:not-allowed}.button-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.result-section{margin-top:2rem;padding:2rem;background:var(--bg-card);border-radius:var(--border-radius-lg);border:1px solid rgba(255,255,255,.1)}.result-section h3{font-size:1.5rem;color:var(--primary-color);margin-bottom:.5rem;text-align:center}.result-description{color:var(--text-secondary);text-align:center;margin-bottom:1.5rem;font-size:.95rem;line-height:1.5}.processed-video{margin-bottom:1rem;display:flex;justify-content:center;background:#0000004d;padding:1rem;border-radius:var(--border-radius)}.result-info{margin-bottom:1.5rem;display:flex;justify-content:center}.info-badge{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#667eea1a;border:1px solid rgba(102,126,234,.3);border-radius:var(--border-radius);color:var(--primary-color);font-size:.9rem}.info-badge svg{flex-shrink:0}.result-actions{display:flex;gap:1rem;justify-content:center}.download-button{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#10b981,#059669);border:none;border-radius:var(--border-radius);color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease}.download-button:hover{transform:translateY(-2px);box-shadow:0 4px 15px #10b9814d}.reset-button{padding:.75rem 1.5rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:var(--border-radius);color:var(--text-secondary);font-weight:500;cursor:pointer;transition:all .3s ease}.reset-button:hover{background:#ffffff14;border-color:#fff3;color:var(--text-primary)}.error-message{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:var(--border-radius);color:#fca5a5;margin-bottom:1.5rem}@keyframes spin{to{transform:rotate(360deg)}}.modal-content p{margin-bottom:2rem;color:var(--text-secondary);line-height:1.6}.modal-auth-buttons{margin-bottom:2rem}.modal-auth-btn{width:100%}.modal-benefits h3{margin-bottom:1rem;color:var(--text-primary);font-size:1.1rem}.modal-benefits ul{list-style:none;text-align:left;margin:0 auto;display:inline-block}.modal-benefits li{padding:.5rem 0;color:var(--text-secondary);display:flex;align-items:center;gap:.5rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-spinner{border:3px solid rgba(102,126,234,.3);border-top:3px solid #667eea;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}
