*,:after,:before{box-sizing:border-box}body,html{height:100%;margin:0;background:#101223;color:#eaf0fc;font-family:Inter,Segoe UI,Arial,sans-serif}:root{--brand:#4784ff;--mid:#3058bd;--panel:#0f1326;--panel-2:#0a1130;--stroke:#3e5fd8;--green:#19c37d;--red:#ff5d5d}.main-bg{min-height:100vh;background:radial-gradient(1200px 700px at 20% -100px,#1c2040 0,transparent 60%),linear-gradient(135deg,#18192d 60%,#212447)}.header{position:sticky;top:0;z-index:30;justify-content:space-between;gap:1.25rem;padding:14px clamp(16px,3vw,28px);background:rgba(14,18,36,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-bottom:1px solid #2a2f57}.header,.logo{display:flex;align-items:center}.logo{gap:.25em;font-weight:800;letter-spacing:-.02em}.logo-accent,.logo-main{font-size:1.4rem}.logo-main{color:#f3f6fc}.logo-accent{color:#4784ff}.input-bar{display:flex;align-items:center;gap:.75rem;flex:1 1 640px;max-width:880px;justify-content:center}.type-toggle-group{display:flex;gap:.5rem}.type-toggle-btn{padding:.55em 1.15em;border-radius:.7em;border:2px solid var(--mid);background:transparent;color:#cfe0ff;font-weight:600;cursor:pointer;transition:.15s}.type-toggle-btn:hover{background:#172044}.type-toggle-btn.active{background:var(--mid);color:#fff}.main-input{flex:1;min-width:280px;padding:.75em 1em;border:none;outline:none;background:#161a2e;color:#eaf0fc;border-radius:.9em;box-shadow:0 0 0 2px #3058bd25}.main-input:focus{box-shadow:0 0 0 3px #4784ff44}.generate-btn{display:flex;align-items:center;gap:.5em;padding:.72em 1.4em;border:none;border-radius:.8em;background:linear-gradient(92deg,#4362f7,#679aff 80%);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 3px 15px #2856c355;transition:transform .12s,opacity .15s,filter .15s}.generate-btn:active{transform:translateY(1px)}.generate-btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.1)}.sparkle{font-size:1.2em}.header-icons{display:flex;gap:.5rem;align-items:center}.icon-btn{background:#18192d;border:none;color:#f3f6fc;padding:.45em .65em;border-radius:.55em;font-size:1.25rem}.icon-btn[disabled]{opacity:.45;cursor:not-allowed}.cta-contact{margin-left:.4rem;padding:.6em 1.1em;border-radius:.8em;border:2px solid #5aa0ff;background:linear-gradient(92deg,#3f8cff,#6fb8ff 80%);color:#07102a;font-weight:800;cursor:pointer;box-shadow:0 3px 14px #2d68ff55;transition:filter .15s,transform .15s}.cta-contact:hover{filter:brightness(1.05);transform:translateY(-1px)}.cta-contact:active{transform:translateY(0)}.shell{max-width:1200px;margin:0 auto;padding:12px clamp(10px,2.5vw,20px) 20px}.control-wrap{display:flex;justify-content:center;margin-top:8px}.control-bar{flex-wrap:wrap;justify-content:space-between;gap:.75rem;row-gap:.5rem;padding:.5rem .7rem;background:var(--panel);border:2px solid var(--stroke);border-bottom:none;border-radius:14px 14px 0 0;box-shadow:0 8px 20px #0006;overflow:hidden}.control-bar,.group{display:flex;align-items:center}.group{gap:.5rem;min-width:0}.group-label{font-size:.9rem;color:#9fb6ff;opacity:.9}.segment{display:inline-flex;background:var(--panel-2);border:1px solid #2640a1;border-radius:.7rem;overflow:hidden}.seg-btn{padding:.55em 1.05em;font-weight:700;font-size:.95rem;cursor:pointer;background:transparent;color:#cfe0ff;border:none;outline:none;transition:.15s}.seg-btn:not(:last-child){border-right:1px solid #2640a1}.seg-btn:hover{background:#131a3d}.seg-btn.active{background:#3458e8;color:#fff}.seg-btn[disabled]{opacity:.5;cursor:not-allowed}.status-pill{flex:1 1 240px;margin:.2rem .6rem;text-align:center;padding:.55em .8em;border-radius:.8em;background:#0b1434;border:1px solid #2c46a8;color:#cfe0ff;font-size:.9rem;box-shadow:inset 0 0 0 1px #182a74;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.control-bar.compact{justify-content:center;padding:.5rem .6rem}.control-bar.compact .group-label{display:none}.control-bar.compact .seg-btn{padding:.45em .8em;font-size:.9rem}.control-bar.compact .status-pill{white-space:normal}.stage{scroll-margin-top:88px;display:flex;align-items:center;justify-content:center;padding-bottom:20px}.preview-card{background:var(--panel);border:2px solid #4b84fa;border-radius:0 0 14px 14px;box-shadow:0 10px 30px #0006,inset 0 0 0 1px #1f2b56;overflow:hidden;position:relative}.preview-scroll{position:absolute;inset:0;background:#fff;overflow:auto}.preview-iframe{width:100%;height:100%;border:0;display:block}.frame-topbar{position:absolute;top:0;left:0;right:0;height:10px;background:linear-gradient(180deg,#e9eefc,#ffffff 60%);border-bottom:1px solid #cfdaf4;z-index:2}.hint{position:absolute;right:10px;bottom:10px;z-index:3;display:flex;align-items:center;gap:.5rem;padding:.45em .7em;border-radius:.8em;background:rgba(16,22,44,.72);border:1px solid #2b3b7a;color:#cfe0ff;font-size:.92rem;box-shadow:0 4px 14px #0008;animation:hintIn .35s ease-out both}@keyframes hintIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.hint.hide{opacity:0;pointer-events:none;transition:opacity .25s}.loader-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(16,18,35,.92);z-index:5}.loader-dots{display:flex;gap:.5em;margin-bottom:1.4em}.loader-dot{width:.75em;height:.75em;border-radius:50%;background:#4b84fa;opacity:.5;animation:ld 1.2s infinite}.loader-dot:nth-child(2){animation-delay:.2s}.loader-dot:nth-child(3){animation-delay:.4s}@keyframes ld{0%{opacity:.5;transform:scale(1)}30%{opacity:1;transform:scale(1.35)}60%{opacity:.5}to{opacity:.5}}.loader-phrase{color:#c7d7fa;font-weight:600;min-height:2.2em}.placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#c6c8e1}.mvp-icon{font-size:2.4rem;margin-bottom:.5rem;color:#4b84fa}.mvp-title{font-weight:800;margin-bottom:.25rem}.modal-backdrop{position:fixed;inset:0;z-index:60;background:rgba(6,10,24,.65);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px}.modal-card{width:min(520px,92vw);background:var(--panel);color:#eaf0fc;border:2px solid var(--stroke);border-radius:16px;box-shadow:0 12px 32px #000a,inset 0 0 0 1px #1f2b56;animation:modalIn .18s ease-out}@keyframes modalIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.modal-head{justify-content:space-between;padding:14px 16px;border-bottom:1px solid #233370}.modal-head,.modal-title{display:flex;align-items:center}.modal-title{gap:.6rem;font-weight:800;color:#cfe0ff}.modal-close{background:#171b32;border:1px solid #2b3f8e;color:#cfe0ff;border-radius:.6rem;padding:.35em .6em;cursor:pointer}.modal-body{padding:16px;display:flex;flex-direction:column;gap:.9rem}.contact-row{display:flex;align-items:center;gap:.6rem;font-size:1rem}.contact-row a{color:#8fb6ff;text-decoration:none}.contact-row a:hover{text-decoration:underline}.modal-note{opacity:.85;margin-top:.2rem}.modal-cta{align-self:flex-start;margin-top:.4rem;background:linear-gradient(92deg,#4362f7,#679aff 80%);color:#fff;border:none;border-radius:.7rem;padding:.55em .95em;font-weight:700;cursor:pointer}@keyframes pulseBlue{0%{box-shadow:0 0 0 2px #3058bd55}50%{box-shadow:0 0 0 3px #4784ff88}to{box-shadow:0 0 0 2px #3058bd55}}.pulse-blue{animation:pulseBlue .6s ease-in-out 3}@keyframes flashGreen{0%{box-shadow:0 0 0 0 rgba(25,195,125,0);border-color:#2c46a8}30%{box-shadow:0 0 0 4px rgba(25,195,125,.35);border-color:var(--green)}to{box-shadow:0 0 0 0 rgba(25,195,125,0);border-color:#2c46a8}}.flash-green{animation:flashGreen .9s ease-out 1}@keyframes flashRed{0%{box-shadow:0 0 0 0 rgba(255,93,93,0);border-color:#2c46a8}30%{box-shadow:0 0 0 4px rgba(255,93,93,.35);border-color:var(--red)}to{box-shadow:0 0 0 0 rgba(255,93,93,0);border-color:#2c46a8}}.flash-red{animation:flashRed .9s ease-out 1}@media (max-width:820px){.header{flex-wrap:wrap}.input-bar{order:2;width:100%}.logo{order:1}.header-icons{order:3}}.lang-toggle{font-size:.85rem;font-weight:700;padding:.35em .75em;border:1px solid #2b3f8e;border-radius:.55em;background:#18192d;color:#cfe0ff;cursor:pointer;transition:background .15s,transform .15s}.lang-toggle:hover{background:#222544;transform:translateY(-1px)}.lang-toggle:active{transform:translateY(0)}