html,body,#root{margin:0;padding:0;width:100%;height:100%}body{background:#050509;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;color:#f9fafb;overflow-x:hidden}:root{--bg: #050509;background:var(--bg);color:#f9fafb;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer;border:none;background:none}body{margin:0;padding:0;background:var(--bg);overflow-x:hidden}.landing{position:relative;min-height:100vh;background:var(--bg);color:var(--text);font-family:system-ui,sans-serif;overflow-x:hidden}.video-grid{position:relative;width:100%;max-width:1650px;margin:0 auto;padding:160px 24px 240px;display:grid;grid-gap:12px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-auto-rows:260px;z-index:1}@media(max-width:1200px){.video-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-auto-rows:220px;padding:140px 20px 260px}}@media(max-width:600px){.video-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:160px;padding:130px 10px 300px}}.video-card{position:relative;overflow:hidden;border-radius:16px;background:#000;border:1px solid rgba(255,255,255,.08);display:flex;justify-content:center;align-items:center}.video-card video{width:100%;height:100%;object-fit:contain;background-color:#000}.video-card-overlay{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,#000a 12%,transparent 70%)}.video-grid-darken{position:fixed;inset:0;pointer-events:none;background:linear-gradient(to bottom,#0006,#000d);z-index:2}.landing-header{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:20px 26px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.logo{font-size:22px;font-weight:700}.logo span{color:var(--accent)}.nav{display:flex;gap:12px}.nav-link{padding:7px 16px;border-radius:999px;border:1px solid transparent;background:transparent;cursor:pointer;color:var(--muted);transition:.2s}.nav-link.ghost:hover{background:#111;border-color:#333;color:#fff}.nav-link.primary{background:var(--accent);color:#fff}@media(max-width:600px){.landing-header{padding:16px 18px}}.hero{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9;width:100%;max-width:700px;padding:0 20px;display:flex;justify-content:center;pointer-events:none}.hero-inner{pointer-events:auto;background:#0f0f12cc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:32px 30px;border-radius:20px;width:100%;max-width:580px;border:1px solid #333;text-align:center}.hero-inner h1{margin-top:0;font-size:38px}.hero-inner p{margin:6px 0 18px;color:var(--muted)}.hero-cta{width:100%;padding:12px 20px;font-size:15px;border-radius:999px;border:none;cursor:pointer;background:linear-gradient(135deg,#2563eb,#ec4899);color:#fff;margin-bottom:10px}.hero-sub{font-size:12px;color:var(--muted)}@media(max-width:900px){.hero{position:fixed;bottom:200px;top:auto;left:50%;transform:translate(-50%);width:100%;max-width:95%;padding:0 14px}.hero-inner{padding:22px}.hero-inner h1{font-size:26px}}.bottom-bar{position:fixed;bottom:22px;left:50%;transform:translate(-50%);width:min(850px,92%);background:#0b0b0dcc;padding:12px 18px;border-radius:999px;border:1px solid #333;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);display:flex;justify-content:space-between;align-items:center;z-index:10}.bottom-label{font-size:11px;color:#9aaaff;text-transform:uppercase}.bottom-text{font-size:12px;color:var(--muted)}.bottom-button{background:var(--accent);color:#fff;border:none;padding:8px 20px;border-radius:999px;cursor:pointer}@media(max-width:600px){.bottom-bar{border-radius:40px!important;padding:30px 25px!important;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);background:#ffffff14;border:1px solid rgba(255,255,255,.15)}.bottom-button{width:100%}}@media(max-width:600px){.nav .ghost{display:none}.user-box{gap:6px}.user-name{font-size:14px;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.login-page{min-height:100vh;width:100%;background:var(--bg);display:flex;justify-content:center;align-items:center;position:relative;overflow-x:hidden;padding:0;box-sizing:border-box}.login-center-wrapper{width:100%;max-width:100%;display:flex;justify-content:center;align-items:center;padding:20px;box-sizing:border-box}.login-card{width:100%;max-width:420px;background:#0f0f12d9;border:1px solid #222;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:30px 24px;border-radius:18px;text-align:center;box-sizing:border-box;z-index:5;animation:fadeIn .35s ease}.login-card h1{margin:0;font-size:28px;color:#fff}.sub{color:var(--muted);font-size:14px;margin-top:6px;margin-bottom:20px}.back-btn{position:fixed;top:16px;left:16px;background:#0f0f12d9;border:1px solid #333;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);padding:8px 14px;border-radius:999px;color:var(--muted);cursor:pointer;font-size:14px;z-index:30;transition:.2s}.back-btn:hover{color:#fff;border-color:#666}.btn-google{width:100%;padding:12px;border-radius:999px;border:none;cursor:pointer;background:#fff;color:#111;font-weight:500;display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:12px}@media(max-width:600px){.login-center-wrapper{padding:12px}.login-card{padding:24px 18px;border-radius:16px;max-width:100%}.login-card h1{font-size:24px}.back-btn{top:12px;left:12px;padding:6px 12px;font-size:13px}}.user-box{display:flex;align-items:center;gap:10px;padding:6px 14px;background:#ffffff1a;border-radius:999px;cursor:pointer;transition:.2s}.user-box:hover{background:#ffffff2e}.user-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}.user-avatar.placeholder{background:#3b82f6;color:#fff;font-weight:700;display:flex;justify-content:center;align-items:center}.user-name{color:#fff;font-weight:500}.user-balance{color:#8b95a5;font-size:13px}:root{--bg: #050509;--accent: #3b82f6;--text: #f9fafb;--muted: #9ca3af}.register-page{height:100vh;width:100%;background:var(--bg);display:flex;justify-content:center;align-items:center;position:relative;padding:20px;overflow-x:hidden}.register-center-wrapper{width:100%;display:flex;justify-content:center;align-items:center}.register-card{width:100%;max-width:420px;background:#0f0f12d9;border:1px solid #222;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:34px 28px;border-radius:20px;text-align:center;animation:fadeIn .35s ease;box-sizing:border-box}@keyframes fadeIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.register-card h1{margin:0;font-size:28px}.sub{color:var(--muted);font-size:14px;margin:6px 0 20px}.back-btn{position:fixed;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));background:#0f0f12d9;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid #333;padding:8px 14px;border-radius:999px;color:var(--muted);cursor:pointer;font-size:14px;z-index:30;transition:.2s}.back-btn:hover{color:#fff;border-color:#555}.btn-google{width:100%;padding:12px;border-radius:999px;background:#fff;color:#111;border:none;cursor:pointer;font-weight:500;display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:12px}.btn-google img{width:18px}.divider{margin:20px 0;position:relative;text-align:center}.divider span{background:#0f0f12d9;padding:0 10px;font-size:13px;color:var(--muted)}.divider:before{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:#333;z-index:-1}.inp{width:100%;padding:12px;border-radius:12px;background:#111;border:1px solid #333;color:var(--text);margin-bottom:14px;box-sizing:border-box}.inp:focus{border-color:var(--accent);outline:none}.btn-primary{width:100%;padding:12px;border-radius:999px;border:none;background:var(--accent);color:#fff;font-size:15px;cursor:pointer;margin-top:4px}.btn-primary:disabled{opacity:.6;cursor:default}.error{padding:10px;border-radius:8px;background:#ff2d2d22;border:1px solid #ff4d4d;color:#ff8080;margin-bottom:12px;font-size:14px}.bottom-text{margin-top:20px;color:var(--muted);font-size:14px}.bottom-text span{color:var(--accent);cursor:pointer;margin-left:4px}@media(max-width:600px){.register-page{padding:14px}.register-card{padding:26px 20px;border-radius:16px}.register-card h1{font-size:24px}.back-btn{padding:6px 12px;font-size:13px;top:12px;left:12px}}.page-generate .gen-container{height:100%;box-sizing:border-box;padding:20px;display:grid;grid-template-columns:300px 1fr;gap:20px}.gen-left-menu{height:100%;overflow-y:auto;overflow-x:hidden;padding:14px;border-radius:16px;border:1px solid #27272f;background:#050509}.gen-left-menu::-webkit-scrollbar{width:6px}.gen-left-menu::-webkit-scrollbar-thumb{background:#2a2a33;border-radius:8px}.gen-model-item{border:1px solid #27272f;border-radius:12px;padding:12px;margin-bottom:12px;cursor:pointer;background:#0b0b10;transition:.15s}.gen-model-item:hover{border-color:#3b82f6aa}.gen-model-item.active{border-color:#3b82f6;background:linear-gradient(135deg,#0f172a,#020617)}.gen-model-settings{margin-top:8px;margin-bottom:16px}.gen-setting-label{font-size:13px;opacity:.8;margin-bottom:6px;color:#e5e7eb}.gen-setting-options{display:flex;flex-wrap:wrap;gap:6px}.pill-btn{padding:7px 14px;border-radius:999px;border:1px solid #3a3a45;background:#1a1a22;font-size:13px;cursor:pointer;color:#e5e7eb}.pill-btn:hover{background:#23232b}.pill-btn.active{background:#0f172a;border-color:#3b82f6;color:#93c5fd}.gen-center{height:100%;display:flex;flex-direction:column;overflow:visible}.gen-preview-wrap{flex:1;min-height:260px;border-radius:14px;border:1px solid #27272f;background:#0b0b10;display:flex;justify-content:center;align-items:center;margin-bottom:12px;color:#6b7280;font-size:15px}.gen-bottom{flex-shrink:0;width:100%;box-sizing:border-box;border-top:1px solid #1f2937;padding:6px 2px 90px}.gen-textarea{width:100%;max-width:100%;box-sizing:border-box;min-height:90px;background:#0b0b10;border:1px solid #27272f;border-radius:12px;padding:10px;resize:vertical;color:#fff;font-size:14px}.gen-generate-btn{position:fixed;bottom:12px;left:332px;right:12px;height:64px;border-radius:20px;background:linear-gradient(135deg,#2563eb,#ec4899);color:#fff;font-size:18px;font-weight:600;display:flex;justify-content:center;align-items:center;box-shadow:0 0 18px #00000073;z-index:2000;cursor:pointer;transition:transform .15s ease,opacity .15s ease}.gen-generate-btn:hover{transform:translateY(-2px);opacity:.95}.gen-generate-btn:active{transform:translateY(0);opacity:1}@media(max-width:900px){.gen-generate-btn{left:12px;right:12px;height:60px;border-radius:18px 18px 0 0}.gen-left-menu{height:auto;margin-bottom:16px}.gen-center{height:auto}.gen-generate-btn{left:0;right:0;border-radius:18px 18px 0 0}.gen-bottom{padding-bottom:80px}}@keyframes gradientMove{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.gen-generate-btn{position:fixed;bottom:12px;left:332px;right:12px;height:64px;border-radius:20px;background:linear-gradient(90deg,#2563eb,#ec4899,#8b5cf6);background-size:300% 300%;animation:gradientMove 6s ease infinite;color:#fff;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:0 0 22px #7850ff59,0 0 34px #ec489959;z-index:1000;cursor:pointer;transition:transform .2s,opacity .2s}.gen-generate-btn:hover{transform:translateY(-3px);box-shadow:0 0 30px #7850ff73,0 0 40px #ec489973}.gen-generate-btn:active{transform:scale(.98)}@media(max-width:900px){.gen-generate-btn{left:12px;right:12px;bottom:12px;height:60px;border-radius:24px}}.gen-model-chip{margin-top:6px;display:inline-block;padding:4px 10px;background:#3b82f626;border:1px solid rgba(59,130,246,.4);color:#93c5fd;font-size:13px;font-weight:600;border-radius:10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}@media(max-width:900px){.gen-left-menu{display:flex;gap:12px;overflow-x:auto!important;white-space:nowrap;height:auto!important;padding-bottom:20px!important}.gen-model-wrap{min-width:260px;display:inline-block}}@media(max-width:900px){.page-generate .gen-container{display:block!important;height:auto!important;padding:12px!important}.gen-left-menu{width:100%!important;max-height:320px!important;overflow-y:auto!important;overflow-x:hidden!important;display:block!important;padding:12px!important;border-radius:16px!important;margin-bottom:16px!important}.gen-left-menu::-webkit-scrollbar{width:4px}.gen-left-menu::-webkit-scrollbar-thumb{background:#333;border-radius:6px}.gen-model-wrap{width:100%!important;display:block!important}.gen-center{margin-top:12px!important;overflow:visible!important;height:auto!important}.gen-preview-wrap{min-height:200px!important;margin-bottom:12px!important}.gen-bottom{padding-bottom:100px!important}.gen-textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important}.gen-generate-btn{position:fixed!important;bottom:12px!important;left:12px!important;right:12px!important;height:60px!important;border-radius:20px!important;z-index:9999!important}}.gen-video-player{width:100%;max-height:480px;object-fit:cover;animation:fadeIn .4s ease}.gen-loading-state{height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.8}.spinner{width:48px;height:48px;border:5px solid #222;border-top-color:#6af;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:10px}.loading-text{font-size:16px;color:#ccc}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.mv-layout{padding-bottom:40px}.mv-layout h2{font-size:24px;margin:0 0 6px}.mv-sub{margin:0 0 20px;color:#9ca3af;font-size:14px}.mv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.mv-loading,.mv-empty{margin-top:30px;font-size:15px;color:#9ca3af;text-align:center}.mv-card{background:#050509;border:1px solid #1f2937;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}.mv-thumb-wrap{position:relative;height:180px;background:#0b0b10;display:flex;align-items:center;justify-content:center}.mv-thumb{width:100%;height:100%;object-fit:cover}.mv-thumb-placeholder{font-size:13px;color:#6b7280}.mv-status-pill{position:absolute;top:10px;right:10px;font-size:11px;padding:4px 10px;border-radius:999px;text-transform:capitalize}.mv-status-pill.queued{background:#1e3a8a;color:#bfdbfe}.mv-status-pill.processing{background:#4b5563;color:#e5e7eb}.mv-status-pill.done{background:#065f46;color:#a7f3d0}.mv-status-pill.failed{background:#7f1d1d;color:#fecaca}.mv-info{padding:12px 14px;display:flex;flex-direction:column;gap:8px}.mv-prompt{font-size:13px;color:#e5e7eb;line-height:1.3;max-height:50px;overflow:hidden}.mv-meta{display:flex;justify-content:space-between;font-size:12px;color:#9ca3af}.mv-open-btn,.mv-disabled-btn{width:100%;padding:8px 10px;border-radius:10px;border:none;font-size:14px;cursor:pointer}.mv-open-btn{background:#3b82f6;color:#fff;text-align:center;display:inline-block}.mv-disabled-btn{background:#111827;color:#6b7280;cursor:default}.mv-polling-hint{margin-top:12px;font-size:12px;text-align:center;color:#6b7280}.payments-page{padding:30px;color:#fff}.balance-card{background:#161616;border-radius:18px;padding:25px;margin-bottom:35px}.balance-card h2{margin:0 0 5px}.balance-value{font-size:42px;font-weight:700;margin-top:10px}.balance-sub{margin-top:8px;opacity:.7;font-size:14px}.packages-title,.history-title{font-size:20px;margin:20px 0 10px}.packages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;margin-bottom:40px}.package{background:#1e1e1e;padding:20px;border-radius:14px;cursor:pointer;transition:.2s;border:1px solid #2a2a2a}.package:hover{background:#242424;transform:scale(1.04)}.package .p-amount{font-size:24px;font-weight:700}.package .p-credits{opacity:.8;margin-top:5px}.package.popular{border:1px solid #ffbb00;position:relative}.p-pop{position:absolute;top:-10px;right:10px;background:#fb0;color:#000;padding:3px 7px;font-size:12px;border-radius:6px}.history-list{margin-top:10px}.history-item{padding:15px 10px;border-bottom:1px solid #242424;display:flex;justify-content:space-between;align-items:center}.h-amount{font-size:16px;font-weight:600}.h-date{opacity:.6;font-size:13px}.h-status{padding:4px 10px;border-radius:8px;font-size:12px;text-transform:capitalize}.h-status.success{background:#1b5e20}.h-status.pending{background:#827717}.h-status.failed{background:#7f0000}.empty,.loading{opacity:.7}.pay-modal-bg{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:30}.pay-modal{background:#1d1d1d;padding:25px;width:350px;border-radius:12px;text-align:center}.modal-info{margin:15px 0;font-size:18px}.purchase-btn{width:100%;background:#fb0;color:#000;padding:12px;border-radius:10px;font-weight:700;cursor:pointer;margin-top:10px;border:none}.cancel-btn{margin-top:10px;background:none;border:none;color:#ccc;cursor:pointer}.home-page{width:100%;height:100vh;background:#050509;color:#f9fafb;display:flex;flex-direction:column;overflow:hidden}.home-header{width:100%;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;background:#0a0a0fbf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06);box-sizing:border-box}.home-logo{font-size:22px;font-weight:700}.home-logo span{color:#3b82f6}.home-user{display:flex;align-items:center;gap:10px;max-width:260px;overflow:hidden;padding:6px 12px;background:#ffffff0d;border-radius:50px;border:1px solid rgba(255,255,255,.12);cursor:pointer}.home-user .avatar{width:34px;height:34px;border-radius:50%;background:#222;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;color:#fff;overflow:hidden}.home-user .avatar img{width:100%;height:100%;object-fit:cover}.home-user .info{display:flex;flex-direction:column;line-height:1.1}.home-user .name{font-size:15px;font-weight:600;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-balance{color:#9aaaff;font-weight:600;font-size:14px;white-space:nowrap;cursor:pointer}.tabs{display:flex;justify-content:center;margin-top:12px;border-bottom:1px solid rgba(255,255,255,.08)}.tab{padding:12px 24px;cursor:pointer;color:#9ca3af;font-size:15px;-webkit-user-select:none;user-select:none}.tab:hover{color:#d4d4d8}.tab.active{color:#fff;font-weight:600;border-bottom:2px solid #3b82f6}.content{flex:1;padding:0;overflow-y:auto}.content.page-generate{overflow:hidden}.home-loading{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:18px}.home-header{max-width:1500px;margin:0 auto;width:100%}
