/* Estilo do prompt de instalação inline (ver pwa-install-gate.js).
   Mesmo visual do antigo pwa-gate.html, adaptado pra ficar dentro de
   #flowz-install-gate na própria página final (não numa página separada). */
#flowz-install-gate{
  /* !important pq a página final pode ter escondido documentElement
     inteiro via visibility:hidden (guard de sessão) -- o prompt de
     instalação precisa aparecer de qualquer jeito, mesmo sem sessão.
     z-index bem alto de propósito: páginas legadas (equipe/artista/
     proximos) têm overlays próprios com z-index até 99999 (#splash,
     #update-banner) que continuam no DOM mas nunca são escondidos
     porque o script que faria isso está neutralizado -- o gate
     precisa ficar por cima de TODOS eles. */
  visibility:visible!important;
  position:fixed;inset:0;z-index:999999;
  font-family:"Outfit",system-ui,sans-serif;color:#F7FAFF;
  display:flex;align-items:center;justify-content:center;
  padding:28px 22px calc(28px + env(safe-area-inset-bottom));
  background:#050914;
}
#flowz-install-gate:empty{display:none}
#flowz-install-gate::before{
  content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 65% 42% at 12% -4%, rgba(124,58,237,.28), transparent 62%),
    radial-gradient(ellipse 55% 40% at 105% 108%, rgba(255,154,68,.20), transparent 60%),
    #050914;
}
#flowz-install-gate .fg-card{position:relative;z-index:1;width:100%;max-width:420px;text-align:center}
#flowz-install-gate .fg-badge{position:relative;width:88px;height:88px;margin:0 auto 22px;display:flex;align-items:center;justify-content:center}
#flowz-install-gate .fg-badge-ring{position:absolute;inset:6px;border-radius:24px;background:linear-gradient(135deg,#7C3AED,#FF9A44);filter:blur(16px);opacity:.4;animation:fgPulse 2.6s ease-in-out infinite}
#flowz-install-gate .fg-badge-ring.is-warn{background:#F59E0B}
#flowz-install-gate .fg-badge img,#flowz-install-gate .fg-badge .fg-badge-warn{position:relative;width:64px;height:64px;border-radius:18px;box-shadow:0 14px 32px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08) inset;display:flex;align-items:center;justify-content:center}
#flowz-install-gate .fg-badge .fg-badge-warn{background:#1a140a}
@keyframes fgPulse{0%,100%{transform:scale(.92);opacity:.32}50%{transform:scale(1.08);opacity:.52}}
#flowz-install-gate .fg-eyebrow{font-family:"JetBrains Mono",monospace;font-size:11px;font-weight:700;letter-spacing:.16em;color:#FF9A44;margin-bottom:10px}
#flowz-install-gate h1{font-family:"Barlow Condensed",sans-serif;font-size:34px;font-weight:800;letter-spacing:-.4px;line-height:1.04;margin-bottom:12px}
#flowz-install-gate h1 .fg-accent{color:transparent;background:linear-gradient(100deg,#FF9A44,#FFC98A);-webkit-background-clip:text;background-clip:text}
#flowz-install-gate .fg-sub{font-size:14.5px;line-height:1.6;color:rgba(247,250,255,.58);margin-bottom:22px}
#flowz-install-gate .fg-benefit{display:inline-flex;align-items:center;gap:7px;margin:0 auto 24px;padding:8px 16px;background:rgba(255,154,68,.08);border:1px solid rgba(255,154,68,.2);border-radius:999px;color:#FF9A44}
#flowz-install-gate .fg-benefit svg{flex-shrink:0}
#flowz-install-gate .fg-benefit span{font-size:12px;font-weight:600;color:rgba(247,250,255,.75);letter-spacing:-.1px}
#flowz-install-gate .fg-mock{margin-bottom:22px}
#flowz-install-gate .fg-mock-frame{background:#131118;border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:11px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
#flowz-install-gate .fg-mock-frame.fg-mock-top{justify-content:space-between}
#flowz-install-gate .fg-mock-url{font-family:"JetBrains Mono",monospace;font-size:10px;color:rgba(247,250,255,.58);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#flowz-install-gate .fg-mock-ico{color:rgba(255,255,255,.22);flex-shrink:0}
#flowz-install-gate .fg-mock-target{position:relative;flex-shrink:0;width:32px;height:32px;border-radius:10px;background:rgba(255,154,68,.16);display:flex;align-items:center;justify-content:center;color:#FF9A44}
#flowz-install-gate .fg-mock-target::after{content:'';position:absolute;inset:-7px;border-radius:14px;border:1.6px solid rgba(255,154,68,.55);animation:fgTargetPulse 1.7s ease-out infinite}
@keyframes fgTargetPulse{0%{transform:scale(.86);opacity:.9}100%{transform:scale(1.28);opacity:0}}
#flowz-install-gate .fg-mock-label{margin-top:9px;text-align:center;font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#FF9A44;text-transform:uppercase}
#flowz-install-gate .fg-steps{list-style:none;text-align:left;margin-bottom:24px}
#flowz-install-gate .fg-step{position:relative;display:flex;gap:14px;padding-bottom:18px}
#flowz-install-gate .fg-step:last-child{padding-bottom:0}
#flowz-install-gate .fg-step:not(:last-child)::before{content:'';position:absolute;left:11px;top:25px;bottom:-1px;width:1.5px;background:linear-gradient(rgba(255,154,68,.32),rgba(255,154,68,.06))}
#flowz-install-gate .fg-step-n{position:relative;z-index:1;flex-shrink:0;width:23px;height:23px;border-radius:50%;background:#12101c;border:1.5px solid rgba(255,154,68,.45);color:#FF9A44;font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
#flowz-install-gate .fg-step-txt{flex:1;min-width:0;padding-top:2px;font-size:14.5px;line-height:1.5;color:rgba(247,250,255,.78)}
#flowz-install-gate .fg-step-txt b{color:#fff;font-weight:700}
#flowz-install-gate .fg-btn{width:100%;padding:16px;border-radius:14px;font-size:15.5px;font-weight:700;font-family:inherit;border:none;cursor:pointer;letter-spacing:-.1px;display:flex;align-items:center;justify-content:center;gap:8px}
#flowz-install-gate .fg-btn-primary{position:relative;background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),linear-gradient(135deg,#7C3AED,#FF9A44);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);box-shadow:0 10px 28px rgba(124,58,237,.32)}
#flowz-install-gate .fg-btn:active{opacity:.85;transform:scale(.99)}
#flowz-install-gate .fg-btn:focus-visible{outline:2px solid #FF9A44;outline-offset:2px}
#flowz-install-gate #flowz-gate-installed-note{margin-top:14px;font-size:13px;color:#34D399;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px}
#flowz-install-gate .fg-fallback{margin-top:20px;font-size:12px;line-height:1.55;color:rgba(247,250,255,.38)}
#flowz-install-gate .fg-fallback b{color:rgba(247,250,255,.6)}
@media(prefers-reduced-motion:no-preference){
  #flowz-install-gate .fg-badge,#flowz-install-gate .fg-eyebrow,#flowz-install-gate h1,#flowz-install-gate .fg-sub,#flowz-install-gate .fg-benefit,#flowz-install-gate .fg-mock,#flowz-install-gate .fg-steps,#flowz-install-gate .fg-btn,#flowz-install-gate .fg-fallback{
    opacity:0;animation:fgRise .5s cubic-bezier(.22,.68,0,1.2) forwards;
  }
  #flowz-install-gate .fg-badge{animation-delay:.02s}
  #flowz-install-gate .fg-eyebrow{animation-delay:.10s}
  #flowz-install-gate h1{animation-delay:.16s}
  #flowz-install-gate .fg-sub{animation-delay:.22s}
  #flowz-install-gate .fg-benefit{animation-delay:.28s}
  #flowz-install-gate .fg-mock{animation-delay:.32s}
  #flowz-install-gate .fg-steps{animation-delay:.36s}
  #flowz-install-gate .fg-btn{animation-delay:.44s}
  #flowz-install-gate .fg-fallback{animation-delay:.5s}
}
@keyframes fgRise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#flowz-install-gate .fg-badge-ring,#flowz-install-gate .fg-mock-target::after{animation:none}}
