/* viral.css */
/* Nise Viral: aba Ganhar no estilo Apple (tipografia grande e limpa, muito respiro, cartões sem borda,
   controle segmentado em pílula, vidro fosco). Tudo fica dentro de #aba-ganhar para não mexer no resto do app. */

#aba-ganhar {
  --ap-fundo: #f5f5f7; --ap-cartao: #ffffff; --ap-cartao-2: #fbfbfd; --ap-texto: #1d1d1f; --ap-texto-2: #6e6e73; --ap-texto-3: #86868b;
  --ap-linha: rgb(0 0 0 / 8%); --ap-vidro: rgb(255 255 255 / 72%); --ap-acento: #5b3fe8; --ap-acento-txt: #fff; --ap-ok: #1d8f4e; --ap-alerta: #c25e00; --ap-erro: #d70015;
  --ap-sombra: 0 2px 6px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 6%); --ap-sombra-alta: 0 8px 24px rgb(0 0 0 / 8%), 0 30px 60px rgb(0 0 0 / 10%);
  --ap-fonte: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  max-width: none; padding: 0; background: var(--ap-fundo); color: var(--ap-texto); font-family: var(--ap-fonte);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; min-height: calc(100vh - 70px);
}
:root[data-theme="dark"] #aba-ganhar {
  --ap-fundo: #000; --ap-cartao: #1c1c1e; --ap-cartao-2: #141416; --ap-texto: #f5f5f7; --ap-texto-2: #a1a1a6; --ap-texto-3: #86868b;
  --ap-linha: rgb(255 255 255 / 10%); --ap-vidro: rgb(28 28 30 / 72%); --ap-acento: #a594ff; --ap-acento-txt: #120a24; --ap-ok: #30d158; --ap-alerta: #ff9f0a; --ap-erro: #ff453a;
  --ap-sombra: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 12px 32px rgb(0 0 0 / 40%); --ap-sombra-alta: 0 30px 60px rgb(0 0 0 / 60%);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] #aba-ganhar {
    --ap-fundo: #000; --ap-cartao: #1c1c1e; --ap-cartao-2: #141416; --ap-texto: #f5f5f7; --ap-texto-2: #a1a1a6; --ap-texto-3: #86868b;
    --ap-linha: rgb(255 255 255 / 10%); --ap-vidro: rgb(28 28 30 / 72%); --ap-acento: #a594ff; --ap-acento-txt: #120a24; --ap-ok: #30d158; --ap-alerta: #ff9f0a; --ap-erro: #ff453a;
    --ap-sombra: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 12px 32px rgb(0 0 0 / 40%); --ap-sombra-alta: 0 30px 60px rgb(0 0 0 / 60%);
  }
}

#aba-ganhar * { box-sizing: border-box; }
.ap-miolo { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
#aba-ganhar h1, #aba-ganhar h2, #aba-ganhar h3 { font-family: var(--ap-fonte); color: var(--ap-texto); }

/* ---------- herói ---------- */
.ap-heroi { text-align: center; padding-top: 72px; padding-bottom: 36px; }
.ap-sobre { font-size: 17px; font-weight: 600; color: var(--ap-acento); margin: 0 0 10px; }
.ap-heroi h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.ap-heroi h1 span { background: linear-gradient(100deg, #5b3fe8 10%, #ff6a4d 55%, #ffc24b 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-heroi p.ap-lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ap-texto-2); max-width: 680px; margin: 18px auto 0; font-weight: 500; letter-spacing: -0.02em; }
.ap-acoes { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.ap-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 860px; margin: 48px auto 0; background: var(--ap-linha); border-radius: 22px; overflow: hidden; box-shadow: var(--ap-sombra); }
.ap-numeros div { background: var(--ap-cartao); padding: 20px 14px; text-align: center; }
.ap-numeros b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ap-numeros small { color: var(--ap-texto-2); font-size: 15px; }

/* ---------- botões ---------- */
.ap-btn { font-family: var(--ap-fonte); border: 0; cursor: pointer; border-radius: 980px; padding: 12px 22px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; background: var(--ap-acento); color: var(--ap-acento-txt); transition: filter 0.2s, transform 0.1s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ap-btn:hover { filter: brightness(1.08); }
.ap-btn:active { transform: scale(0.98); }
.ap-btn:disabled { opacity: 0.45; cursor: default; }
.ap-btn.claro { background: var(--ap-cartao); color: var(--ap-texto); box-shadow: var(--ap-sombra); }
.ap-btn.pequeno { padding: 7px 15px; font-size: 16px; }
.ap-btn.perigo { background: transparent; color: var(--ap-erro); box-shadow: inset 0 0 0 1px var(--ap-linha); }
.ap-link { font-family: var(--ap-fonte); border: 0; background: none; color: var(--ap-acento); font-size: 17px; cursor: pointer; padding: 0; text-decoration: none; letter-spacing: -0.02em; }
.ap-link:hover { text-decoration: underline; }
.ap-link::after { content: " ›"; }
.ap-link.sem::after { content: ""; }

/* ---------- controle segmentado (fica preso no topo, em vidro fosco) ---------- */
.ap-barra { position: sticky; top: 66px; z-index: 5; padding: 12px 0; background: var(--ap-vidro); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ap-linha); }
.ap-seg { display: flex; gap: 2px; padding: 3px; background: color-mix(in srgb, var(--ap-texto) 7%, transparent); border-radius: 12px; width: fit-content; max-width: 100%; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.ap-seg::-webkit-scrollbar { display: none; }
.ap-seg button { font-family: var(--ap-fonte); border: 0; background: none; border-radius: 9px; padding: 7px 16px; font-size: 16px; font-weight: 500; color: var(--ap-texto); cursor: pointer; white-space: nowrap; letter-spacing: -0.01em; transition: background 0.2s; }
.ap-seg button.ativo { background: var(--ap-cartao); box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 3px 8px rgb(0 0 0 / 6%); font-weight: 600; }
.ap-seg button .ap-conta { color: var(--ap-acento); font-weight: 700; margin-left: 4px; }

/* ---------- seções ---------- */
.ap-secao { padding-top: 56px; padding-bottom: 72px; }
.ap-secao-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.ap-secao-topo h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; margin: 0; }
.ap-secao-topo p { color: var(--ap-texto-2); font-size: 19px; margin: 8px 0 0; max-width: 620px; letter-spacing: -0.02em; line-height: 1.4; }
.ap-filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-filtros button { font-family: var(--ap-fonte); border: 0; background: var(--ap-cartao); color: var(--ap-texto); box-shadow: inset 0 0 0 1px var(--ap-linha); border-radius: 980px; padding: 7px 15px; font-size: 16px; cursor: pointer; }
.ap-filtros button.ativo { background: var(--ap-texto); color: var(--ap-fundo); box-shadow: none; }
.ap-vazio { text-align: center; padding: 64px 20px; background: var(--ap-cartao); border-radius: 28px; box-shadow: var(--ap-sombra); }
.ap-vazio h3 { font-size: 24px; letter-spacing: -0.03em; margin: 0 0 8px; }
.ap-vazio p { color: var(--ap-texto-2); font-size: 17px; margin: 0 auto 20px; max-width: 460px; }

/* ---------- vitrine dos influenciadores ---------- */
.ap-vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.ap-post { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #2a2160, #15112e 60%, #3a1d2a); box-shadow: var(--ap-sombra); cursor: pointer; border: 0; padding: 0; text-align: left; color: #fff; font-family: var(--ap-fonte); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.ap-post:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--ap-sombra-alta); }
.ap-post img, .ap-post video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, transparent 24%, transparent 55%, rgb(0 0 0 / 78%) 100%); }
.ap-post-topo, .ap-post-base { position: absolute; left: 14px; right: 14px; z-index: 1; display: flex; gap: 6px; align-items: center; }
.ap-post-topo { top: 12px; justify-content: space-between; }
.ap-post-base { bottom: 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
.ap-post-base b { font-size: 16px; font-weight: 600; }
.ap-post-base span { font-size: 15px; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-post-views { font-size: 22px !important; font-weight: 700; letter-spacing: -0.03em; opacity: 1 !important; }
.ap-selo { font-size: 14px; font-weight: 600; padding: 4px 9px; border-radius: 980px; background: rgb(255 255 255 / 20%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; white-space: nowrap; }
.ap-selo.nise { background: rgb(91 63 232 / 85%); }
.ap-selo.ouro { background: rgb(255 194 75 / 92%); color: #2b1d00; }
.ap-post-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgb(255 255 255 / 22%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; transition: opacity 0.25s; }
.ap-post:hover .ap-post-play { opacity: 1; }
.ap-post-play::before { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* ---------- cartões ---------- */
.ap-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ap-cartao { background: var(--ap-cartao); border-radius: 28px; padding: 28px; box-shadow: var(--ap-sombra); display: flex; flex-direction: column; gap: 14px; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.ap-cartao.clicavel { cursor: pointer; }
.ap-cartao.clicavel:hover { transform: translateY(-3px); box-shadow: var(--ap-sombra-alta); }
.ap-cartao .ap-marca { font-size: 15px; font-weight: 600; color: var(--ap-texto-2); text-transform: uppercase; letter-spacing: 0.04em; display: flex; justify-content: space-between; gap: 8px; }
.ap-cartao h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.ap-cartao p { margin: 0; color: var(--ap-texto-2); font-size: 16px; line-height: 1.5; }
.ap-preco { display: flex; align-items: baseline; gap: 6px; }
.ap-preco b { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ap-preco small { color: var(--ap-texto-2); font-size: 16px; }
.ap-trilho { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ap-texto) 8%, transparent); overflow: hidden; }
.ap-trilho i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5b3fe8, #ff6a4d); }
.ap-linha-info { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ap-texto-2); flex-wrap: wrap; }
.ap-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-tag { font-size: 15px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: color-mix(in srgb, var(--ap-texto) 6%, transparent); color: var(--ap-texto-2); }
.ap-tag.acento { background: color-mix(in srgb, var(--ap-acento) 14%, transparent); color: var(--ap-acento); }
.ap-tag.ok { background: color-mix(in srgb, var(--ap-ok) 14%, transparent); color: var(--ap-ok); }
.ap-tag.alerta { background: color-mix(in srgb, var(--ap-alerta) 15%, transparent); color: var(--ap-alerta); }
.ap-tag.erro { background: color-mix(in srgb, var(--ap-erro) 12%, transparent); color: var(--ap-erro); }
.ap-cartao-rodape { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }

/* ---------- lista (meus posts, movimentos, revisão) ---------- */
.ap-lista { background: var(--ap-cartao); border-radius: 22px; box-shadow: var(--ap-sombra); overflow: hidden; }
.ap-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--ap-linha); }
.ap-item:first-child { border-top: 0; }
.ap-item-capa { width: 56px; height: 74px; border-radius: 12px; background: linear-gradient(160deg, #2a2160, #15112e); object-fit: cover; display: block; }
.ap-item-txt { min-width: 0; }
.ap-item-txt b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-item-txt small { color: var(--ap-texto-2); font-size: 15px; display: block; margin-top: 2px; }
.ap-item-dir { text-align: right; display: grid; gap: 6px; justify-items: end; }
.ap-item-dir b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ap-item.simples { grid-template-columns: 1fr auto; }

/* ---------- carteira ---------- */
.ap-carteira { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.ap-saldo { background: linear-gradient(140deg, #15112e 0%, #2a1f6b 55%, #5b3fe8 100%); color: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--ap-sombra-alta); position: relative; overflow: hidden; }
.ap-saldo::after { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -110px; background: radial-gradient(circle, rgb(255 106 77 / 55%), transparent 65%); }
.ap-saldo small { opacity: 0.75; font-size: 16px; }
.ap-saldo .ap-grande { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.05em; display: block; margin: 4px 0 18px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.ap-saldo-linhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.ap-saldo-linhas b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ap-nivel { display: flex; align-items: center; gap: 14px; }
.ap-nivel-icone { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--ap-acento) 14%, transparent); font-size: 26px; }

/* ---------- formulários ---------- */
.ap-form { display: grid; gap: 16px; }
.ap-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-campo { display: grid; gap: 6px; }
.ap-campo > span { font-size: 15px; font-weight: 600; color: var(--ap-texto-2); }
#aba-ganhar .ap-campo input, #aba-ganhar .ap-campo textarea, #aba-ganhar .ap-campo select { font-family: var(--ap-fonte); width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ap-linha); background: var(--ap-cartao-2); color: var(--ap-texto); outline: none; letter-spacing: -0.01em; transition: border-color 0.2s, box-shadow 0.2s; }
#aba-ganhar .ap-campo input:focus, #aba-ganhar .ap-campo textarea:focus, #aba-ganhar .ap-campo select:focus { border-color: var(--ap-acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ap-acento) 18%, transparent); }
#aba-ganhar .ap-campo textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ap-texto); cursor: pointer; line-height: 1.4; }
.ap-check input { width: 20px; height: 20px; accent-color: var(--ap-acento); flex: none; margin-top: 1px; }
.ap-redes { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-redes label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 980px; background: var(--ap-cartao-2); box-shadow: inset 0 0 0 1px var(--ap-linha); cursor: pointer; font-size: 16px; }
.ap-redes input { accent-color: var(--ap-acento); }
.ap-msg { font-size: 16px; font-weight: 500; min-height: 1em; margin: 0; }
.ap-msg.erro { color: var(--ap-erro); }
.ap-msg.ok { color: var(--ap-ok); }
.ap-conta-marca { background: var(--ap-cartao-2); border-radius: 18px; padding: 18px; display: grid; gap: 8px; font-size: 16px; }
.ap-conta-marca div { display: flex; justify-content: space-between; gap: 10px; }
.ap-conta-marca .total { border-top: 1px solid var(--ap-linha); padding-top: 10px; font-weight: 700; font-size: 17px; }
.ap-escolha-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; max-height: 210px; overflow: auto; }
.ap-escolha-galeria button { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; background: var(--ap-cartao-2); outline: 3px solid transparent; outline-offset: -3px; }
.ap-escolha-galeria button.ativo { outline-color: var(--ap-acento); }
.ap-escolha-galeria img, .ap-escolha-galeria video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- regras ---------- */
.ap-passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ap-passo { background: var(--ap-cartao); border-radius: 28px; padding: 28px; box-shadow: var(--ap-sombra); }
.ap-passo i { font-style: normal; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ap-texto); color: var(--ap-fundo); font-weight: 700; margin-bottom: 14px; }
.ap-passo h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.03em; }
.ap-passo p { margin: 0; color: var(--ap-texto-2); font-size: 16px; line-height: 1.5; }
.ap-regras { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--ap-linha); border-radius: 22px; overflow: hidden; box-shadow: var(--ap-sombra); }
.ap-regras li { background: var(--ap-cartao); padding: 16px 20px; font-size: 17px; line-height: 1.45; display: flex; gap: 12px; }
.ap-regras li::before { content: "✓"; color: var(--ap-ok); font-weight: 700; }

/* ---------- folha (diálogo) ---------- */
.ap-folha { width: min(720px, 94vw); max-height: 90vh; background: var(--ap-fundo); color: var(--ap-texto); border-radius: 28px; padding: 0; box-shadow: var(--ap-sombra-alta); font-family: var(--ap-fonte); overflow: auto; }
.ap-folha::backdrop { background: rgb(0 0 0 / 45%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ap-folha[open] { animation: ap-sobe 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes ap-sobe { from { transform: translateY(24px) scale(0.98); opacity: 0; } }
.ap-folha-topo { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--ap-vidro); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ap-linha); }
.ap-folha-topo b { font-size: 17px; font-weight: 600; }
.ap-fechar { border: 0; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--ap-texto) 8%, transparent); color: var(--ap-texto); cursor: pointer; font-size: 18px; line-height: 1; }
.ap-folha-corpo { padding: 24px 26px 30px; display: grid; gap: 20px; }
.ap-folha-corpo h2 { font-size: 32px; letter-spacing: -0.04em; margin: 0; line-height: 1.1; }
.ap-player { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 22px; align-items: start; }
.ap-player iframe, .ap-player video, .ap-player img { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 20px; background: #000; display: block; }
.ap-player-info { display: grid; gap: 14px; }
.ap-grande-num { font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }

@media (max-width: 900px) {
  .ap-numeros { grid-template-columns: repeat(2, 1fr); }
  .ap-carteira, .ap-player { grid-template-columns: 1fr; }
  .ap-passos { grid-template-columns: 1fr 1fr; }
  .ap-player iframe, .ap-player video, .ap-player img { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .ap-miolo { padding: 0 16px; }
  .ap-heroi { padding-top: 48px; padding-bottom: 24px; }
  .ap-duas, .ap-tres, .ap-passos { grid-template-columns: 1fr; }
  .ap-vitrine { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ap-post { border-radius: 18px; }
  .ap-cartoes { grid-template-columns: 1fr; }
  .ap-cartao { padding: 22px; }
  .ap-saldo-linhas { grid-template-columns: 1fr 1fr; }
  .ap-item { grid-template-columns: 44px 1fr auto; padding: 12px 14px; }
  .ap-item-capa { width: 44px; height: 60px; }
  .ap-barra { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-post, .ap-cartao, .ap-folha[open] { transition: none; animation: none; }
}

/* Desafio da comunidade (bônus por meta) */
.ap-meta { grid-column: 1 / -1; background: linear-gradient(var(--ap-cartao), var(--ap-cartao)) padding-box, linear-gradient(120deg, #5b3fe8, #ff6a4d, #ffc24b) border-box; border: 2px solid transparent; }
.ap-meta .ap-preco b { font-size: clamp(40px, 6vw, 64px); }
.ap-meta .ap-item-dir small { display: block; color: var(--ap-texto-2); font-size: 15px; }

/* planos.css */
/* Aba Planos no formato da página de preços do Higgsfield, com as cores da Nise:
   faixa de oferta, abas Para você / Para empresas, chave Mensal/Anual, cartões com equivalências e botão forte. */

#aba-planos { --pp-cta: #ffc24b; --pp-cta-txt: #15112e; --pp-oferta: #ff4d6d; --pp-cartao: var(--fundo-2); --pp-caixa: var(--fundo-3); }
.pp-cond { font-family: "Archivo", var(--fonte, sans-serif); font-stretch: 72%; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }

/* ---------- faixa de oferta ---------- */
.pp-oferta { position: relative; overflow: hidden; border-radius: 26px; padding: 34px 40px 30px; margin-bottom: 26px; background: radial-gradient(120% 140% at 85% 0%, rgb(255 106 77 / 35%), transparent 55%), linear-gradient(120deg, #2a1030 0%, #3b1235 45%, #1d1240 100%); color: #fff; border: 1px solid rgb(255 255 255 / 8%); }
.pp-oferta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgb(255 255 255 / 4%); }
.pp-etiqueta { display: inline-block; background: var(--pp-cta); color: var(--pp-cta-txt); font: italic 900 15px/1 "Archivo", sans-serif; font-stretch: 80%; padding: 6px 10px; border-radius: 4px; transform: skewX(-6deg); }
.pp-titulo-oferta { font-family: "Archivo", sans-serif; font-stretch: 70%; font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; margin: 14px 0 12px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.pp-titulo-oferta span { color: var(--pp-oferta); }
.pp-oferta p { margin: 0; max-width: 760px; color: rgb(255 255 255 / 78%); font-size: 17px; position: relative; z-index: 1; }

/* ---------- barra de abas e chave ---------- */
.pp-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pp-abas { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: var(--pp-cartao); border: 1px solid var(--linha); flex-wrap: wrap; }
.pp-abas button { border: 0; background: none; color: var(--texto-2); padding: 8px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 16px; }
.pp-abas button.ativo { background: var(--pp-caixa); color: var(--texto); }
.pp-selo-azul { font: italic 900 15px/1 "Archivo", sans-serif; font-stretch: 80%; background: #3b6cff; color: #fff; padding: 6px 9px; border-radius: 4px; margin-left: 4px; transform: skewX(-6deg); }
.pp-direita { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-pilula { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--linha); background: var(--pp-cartao); color: var(--texto); border-radius: 14px; padding: 11px 16px; font-weight: 700; font-size: 16px; cursor: pointer; }
.pp-chave span { color: var(--texto-2); }
.pp-chave input { position: absolute; opacity: 0; pointer-events: none; }
.pp-chave i { width: 38px; height: 22px; border-radius: 999px; background: var(--fundo-3); border: 1px solid var(--linha); position: relative; transition: background 0.2s; }
.pp-chave i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.pp-chave input:checked + i { background: var(--pp-cta); border-color: var(--pp-cta); }
.pp-chave input:checked + i::after { transform: translateX(16px); }
.pp-chave input:checked ~ span:last-child, .pp-chave input:not(:checked) ~ span:first-child { color: var(--texto); }
.pp-chave input:focus-visible + i { outline: 2px solid var(--acento); outline-offset: 2px; }
.pp-chave b { color: var(--pp-oferta); font-size: 15px; }

/* ---------- quiz ---------- */
.pp-quiz { border: 1px solid var(--linha); background: var(--pp-cartao); border-radius: 20px; padding: 20px; margin-bottom: 18px; display: grid; gap: 12px; }
.pp-quiz h3 { margin: 0; font-size: 18px; }
.pp-quiz-opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-quiz-opcoes button { border: 1px solid var(--linha); background: var(--pp-caixa); color: var(--texto); border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.pp-quiz-opcoes button.ativo { border-color: var(--pp-cta); box-shadow: 0 0 0 1px var(--pp-cta); }
.pp-quiz p { margin: 0; color: var(--texto-2); }

/* ---------- cartões ---------- */
.pp-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.pp-cartao { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 18px 18px; border-radius: 22px; background: var(--pp-cartao); border: 1px solid var(--linha); transition: transform 0.2s, box-shadow 0.2s; }
.pp-cartao.pp-destaque { background: radial-gradient(140% 90% at 50% 0%, rgb(255 194 75 / 16%), transparent 60%), var(--pp-cartao); border-color: color-mix(in srgb, var(--pp-cta) 55%, transparent); }
.pp-cartao.recomendado { box-shadow: 0 0 0 2px var(--acento); transform: translateY(-4px); }
.pp-cabeca h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: "Archivo", sans-serif; font-stretch: 72%; font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }
.pp-cabeca p { margin: 6px 0 0; color: var(--texto-2); font-size: 16px; }
.pp-selo { font: italic 900 15px/1 "Archivo", sans-serif; font-stretch: 80%; padding: 5px 8px; border-radius: 4px; transform: skewX(-6deg); background: var(--pp-cta); color: var(--pp-cta-txt); letter-spacing: 0.01em; }
.pp-selo.rosa { background: var(--pp-oferta); color: #fff; }
.pp-caixa { background: var(--pp-caixa); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.pp-caixa > b { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.pp-caixa > b .ic { color: var(--texto-2); width: 18px; height: 18px; }
.pp-eq { color: var(--texto-2); font-size: 16px; padding-left: 26px; }
.pp-eq b { color: var(--texto); font-weight: 700; }
.pp-eq.aprox b { text-decoration: underline dotted; text-underline-offset: 3px; }
.pp-fixo { margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--linha); text-align: center; color: var(--texto-2); font-size: 15px; }
.pp-fixo .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.pp-preco { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 46px; }
.pp-preco b { font-family: "Archivo", sans-serif; font-stretch: 80%; font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pp-preco s { color: var(--pp-oferta); font-family: "Archivo", sans-serif; font-stretch: 80%; font-weight: 800; font-size: 24px; }
.pp-preco small { color: var(--texto-2); font-size: 16px; }
.pp-preco.verde b { color: #c6ff3d; }
:root[data-theme="light"] .pp-preco.verde b { color: #2f8a00; }
.pp-economia { font-size: 15px; color: var(--texto-2); margin-top: -8px; }
.pp-economia b { color: var(--ok); }
.pp-cta { margin-top: auto; border: 0; cursor: pointer; border-radius: 14px; padding: 15px; font-weight: 800; font-size: 17px; background: var(--pp-cta); color: var(--pp-cta-txt); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 18%); transition: filter 0.15s, transform 0.1s; }
.pp-cta:hover { filter: brightness(1.06); }
.pp-cta:active { transform: translateY(1px); }
.pp-cta.claro { background: #fff; color: #15112e; }
.pp-sub { text-align: center; color: var(--texto-2); font-size: 15px; border-top: 1px solid var(--linha); padding-top: 10px; margin: -4px 0 0; }
.pp-inclui { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 16px; }
.pp-inclui li { display: flex; gap: 8px; }
.pp-inclui .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }

/* ---------- avulso e nota ---------- */
.pp-avulso { margin-top: 22px; border: 1px solid var(--linha); background: var(--pp-cartao); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.pp-avulso h3 { margin: 0 0 4px; font-family: "Archivo", sans-serif; font-stretch: 72%; font-weight: 900; font-size: 26px; text-transform: uppercase; }
.pp-avulso p { margin: 0; color: var(--texto-2); font-size: 16px; }
.pp-pacotes { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-pacotes button { border: 1px solid var(--linha); background: var(--pp-caixa); color: var(--texto); border-radius: 14px; padding: 12px 18px; cursor: pointer; text-align: left; }
.pp-pacotes button b { display: block; font-size: 20px; font-family: "Archivo", sans-serif; font-stretch: 80%; font-weight: 900; }
.pp-pacotes button small { color: var(--texto-2); }
.pp-nota { color: var(--texto-2); font-size: 15px; margin: 14px 2px 28px; }

/* ---------- aviso flutuante ---------- */
.pp-aviso { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 14px; background: var(--fundo-2); color: var(--texto); border: 1px solid var(--linha); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px rgb(0 0 0 / 40%); max-width: min(440px, calc(100vw - 32px)); animation: pp-entra 0.3s ease-out; }
.pp-aviso b { font-size: 16px; }
.pp-aviso button { border: 0; cursor: pointer; border-radius: 10px; padding: 9px 12px; font-weight: 800; background: var(--pp-cta, #ffc24b); color: #15112e; white-space: nowrap; }
.pp-aviso .pp-x { background: none; color: var(--texto-2); padding: 4px 6px; font-size: 18px; }
@keyframes pp-entra { from { transform: translateY(16px); opacity: 0; } }

@media (max-width: 700px) {
  .pp-oferta { padding: 24px 20px; border-radius: 20px; }
  .pp-avulso { grid-template-columns: 1fr; }
  .pp-barra, .pp-direita { width: 100%; }
  .pp-direita .pp-pilula { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .pp-cartao, .pp-aviso { transition: none; animation: none; } }

/* ---------- conta do cliente e saldo de créditos (modo loja, ADR 0034) ---------- */
.conta-chip { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); padding: 7px 13px; border-radius: 999px; cursor: pointer; font: inherit; }
.conta-chip b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.conta-chip small { font-size: 15px; color: var(--texto-2); }
.conta-chip:hover { border-color: var(--acento); }
.conta-chip.baixo b { color: #e5484d; }
.conta-dialogo { max-width: 460px; }
.conta-dialogo h2 { margin: 0 0 6px; }
.conta-dialogo h3 { margin: 22px 0 8px; font-size: 16px; color: var(--texto-2); }
.conta-dialogo p { line-height: 1.5; }
.conta-email { color: var(--texto-2); margin: 0 0 14px; }
.conta-saldo { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--acento-suave); }
.conta-saldo b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.conta-saldo span { color: var(--texto-2); }
.conta-plano { margin: 12px 0 0; }
.conta-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.conta-acoes .botao { text-decoration: none; display: inline-flex; align-items: center; }
.conta-extrato { width: 100%; border-collapse: collapse; font-size: 15px; }
.conta-extrato td { padding: 7px 4px; border-top: 1px solid var(--linha); }
.conta-extrato td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conta-extrato .mais { color: #30a46c; }
.conta-extrato td[colspan] { text-align: left; font-weight: 400; color: var(--texto-2); white-space: normal; }
.conta-teste { font-size: 15px; color: var(--texto-2); margin-top: 14px; }
@media (max-width: 640px) { .conta-chip small { display: none; } }
/* visitante (modo loja sem login): o chip vira "Criar conta" e o cadastro abre no diálogo, sem sair da tela */
.conta-chip.visitante { background: var(--acento); border-color: var(--acento); color: #fff; font-weight: 800; }
.cad-alternar { display: flex; gap: 6px; margin: 14px 0 4px; padding: 4px; border-radius: 12px; background: var(--fundo-2); }
.cad-alternar button { flex: 1; border: 0; background: none; color: var(--texto-2); padding: 8px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.cad-alternar button[aria-selected="true"] { background: var(--fundo); color: var(--texto); }
.cad-form { display: grid; gap: 6px; margin-top: 10px; }
.cad-form label { font-size: 15px; color: var(--texto-2); margin-top: 6px; }
.cad-form input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); }
.cad-form input:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.cad-form .pri { margin-top: 12px; }
.cad-erro { color: #e5484d; margin: 6px 0 0; font-size: 15px; }
.cad-nota { font-size: 15px; color: var(--texto-2); margin: 8px 0 0; }
.cad-nota a { color: inherit; }

/* canvas.css */
/* Canvas da Nise: workflow em nós num quadro infinito (estilo do Canvas do Higgsfield / Weavy).
   Fundo escuro pontilhado, nós arredondados com miniatura, fios curvos coloridos pelo tipo. */
#aba-canvas.ativa { display: block; }
#aba-canvas {
  --cv-fundo: #141417; --cv-ponto: rgb(255 255 255 / 9%); --cv-no: #1d1d22; --cv-no-2: #26262d; --cv-borda: rgb(255 255 255 / 8%);
  --cv-texto: #f2f2f5; --cv-texto-2: #9a9aa6; --cv-sel: #ffc24b; --cv-texto-fio: #8f78ff; --cv-imagem-fio: #ff6a4d; --cv-video-fio: #ffc24b;
  max-width: none; padding: 0; position: relative; height: calc(100dvh - var(--topo-h, 67px)); overflow: hidden; background: var(--cv-fundo); color: var(--cv-texto);
}
:root[data-theme="light"] #aba-canvas { --cv-fundo: #f3f1ec; --cv-ponto: rgb(21 17 46 / 13%); --cv-no: #ffffff; --cv-no-2: #f4f1ea; --cv-borda: rgb(21 17 46 / 10%); --cv-texto: #15112e; --cv-texto-2: #6a6280; --cv-sel: #5b3fe8; }

.cv-palco { position: absolute; inset: 0; cursor: grab; touch-action: none; background-color: var(--cv-fundo); background-image: radial-gradient(var(--cv-ponto) 1.2px, transparent 1.3px); }
.cv-palco.arrastando { cursor: grabbing; }
.cv-mundo { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.cv-fios { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.cv-fios path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.cv-fios path.toque { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.cv-fios path.texto { stroke: var(--cv-texto-fio); }
.cv-fios path.imagem { stroke: var(--cv-imagem-fio); }
.cv-fios path.video { stroke: var(--cv-video-fio); }
.cv-fios path.sel { stroke-width: 4; filter: drop-shadow(0 0 6px currentColor); }
.cv-fios path.temp { stroke-dasharray: 6 6; opacity: 0.85; }
.cv-fios path.rodando { stroke-dasharray: 8 8; animation: cv-fluxo 0.8s linear infinite; }
@keyframes cv-fluxo { to { stroke-dashoffset: -16; } }

/* ---------- nós ---------- */
.cv-no { position: absolute; background: var(--cv-no); border: 1px solid var(--cv-borda); border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / 28%); font-size: 15px; cursor: default; user-select: none; }
.cv-no.sel { border-color: var(--cv-sel); box-shadow: 0 0 0 1px var(--cv-sel), 0 14px 40px rgb(0 0 0 / 38%); }
.cv-no.nota { background: #fff2b8; color: #3a2e00; border-color: #f0d672; }
.cv-no header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: move; border-bottom: 1px solid var(--cv-borda); }
.cv-no.nota header { border-color: rgb(0 0 0 / 8%); }
.cv-no header b { font-size: 15px; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-no header .ic { width: 16px; height: 16px; color: var(--cv-texto-2); }
.cv-chip { font-size: 14px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--cv-no-2); color: var(--cv-texto-2); white-space: nowrap; }
.cv-chip.ok { color: #30d158; }
.cv-chip.erro { color: #ff6a4d; }
.cv-x { border: 0; background: none; color: var(--cv-texto-2); cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.cv-x:hover { background: var(--cv-no-2); color: var(--cv-texto); }
.cv-corpo { padding: 10px 12px 12px; display: grid; gap: 8px; }
.cv-midia { position: relative; border-radius: 12px; overflow: hidden; background: var(--cv-no-2); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--cv-texto-2); text-align: center; font-size: 15px; }
.cv-midia.vertical { aspect-ratio: 4 / 5; }
.cv-midia img, .cv-midia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-midia .cv-midia-acoes { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.cv-midia:hover .cv-midia-acoes { opacity: 1; }
.cv-midia-acoes button, .cv-midia-acoes a { border: 0; background: rgb(0 0 0 / 65%); color: #fff; font-size: 14px; font-weight: 700; padding: 5px 8px; border-radius: 8px; cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); }
.cv-gerando { display: grid; gap: 6px; place-items: center; }
.cv-gerando i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--cv-borda); border-top-color: var(--cv-sel); animation: cv-gira 0.9s linear infinite; }
@keyframes cv-gira { to { transform: rotate(360deg); } }
.cv-no textarea, .cv-no select, .cv-no input[type="text"] { width: 100%; font: inherit; font-size: 15px; color: var(--cv-texto); background: var(--cv-no-2); border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; outline: none; resize: none; user-select: text; }
.cv-no.nota textarea { background: transparent; color: inherit; min-height: 90px; padding: 2px; }
.cv-no textarea:focus, .cv-no select:focus { border-color: var(--cv-sel); }
.cv-no textarea { min-height: 70px; line-height: 1.4; }
.cv-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cv-linha.tres { grid-template-columns: 1.4fr 1fr 0.8fr; }
.cv-rodape { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.cv-btn { border: 0; cursor: pointer; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 15px; background: var(--cv-sel); color: #15112e; display: inline-flex; align-items: center; gap: 6px; }
.cv-btn:disabled { opacity: 0.5; cursor: default; }
.cv-btn.sec { background: var(--cv-no-2); color: var(--cv-texto); }
.cv-aviso { font-size: 14px; color: var(--cv-texto-2); }
.cv-aviso.erro { color: #ff6a4d; }
.cv-aviso.cv-direitos { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; color: #f5b84a; background: rgb(245 184 74 / 10%); line-height: 1.35; }
.cv-combo { margin-top: 6px; flex-wrap: wrap; }

/* portas */
.cv-porta { position: absolute; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--cv-no); border: 3px solid var(--cor, #888); cursor: crosshair; z-index: 2; }
.cv-porta.entrada { left: -9px; }
.cv-porta.saida { right: -9px; }
.cv-porta[data-tipo="texto"] { --cor: var(--cv-texto-fio); }
.cv-porta[data-tipo="imagem"] { --cor: var(--cv-imagem-fio); }
.cv-porta[data-tipo="video"] { --cor: var(--cv-video-fio); }
.cv-porta.ligada { background: var(--cor); }
.cv-porta:hover, .cv-porta.alvo { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cor) 30%, transparent); }
.cv-porta::after { content: attr(data-rotulo); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 700; background: #000; color: #fff; padding: 3px 7px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.cv-porta:hover::after { opacity: 1; }

/* ---------- topo e barras flutuantes ---------- */
.cv-flutua { position: absolute; z-index: 5; display: flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--cv-no) 92%, transparent); border: 1px solid var(--cv-borda); border-radius: 14px; padding: 6px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }
.cv-topo { left: 14px; top: 12px; }
.cv-logo { border: 0; background: var(--cv-no-2); border-radius: 10px; height: 38px; padding: 0 8px; display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--cv-texto); }
.cv-logo .flor-logo { width: 26px; height: 26px; display: block; }
#cvNome { border: 0; background: transparent; color: var(--cv-texto); font: 800 16px/1 var(--fonte, inherit); padding: 8px 10px; border-radius: 10px; width: min(260px, 40vw); outline: none; }
#cvNome:focus { background: var(--cv-no-2); }
.cv-direita { right: 14px; top: 12px; }
.cv-status { font-size: 15px; color: var(--cv-texto-2); padding: 0 6px; white-space: nowrap; }
.cv-ferramentas { left: 50%; bottom: 16px; transform: translateX(-50%); }
.cv-ferramentas button, .cv-direita button.cv-icone { border: 0; background: none; color: var(--cv-texto); height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cv-ferramentas button:hover, .cv-direita button.cv-icone:hover { background: var(--cv-no-2); }
.cv-ferramentas button:disabled { opacity: 0.35; cursor: default; background: none; }
.cv-ferramentas .cv-sep { width: 1px; height: 22px; background: var(--cv-borda); }
.cv-ferramentas .cv-zoom { min-width: 52px; justify-content: center; font-variant-numeric: tabular-nums; }
.cv-ferramentas .ic { width: 16px; height: 16px; }

/* ---------- menus ---------- */
.cv-menu { position: absolute; z-index: 8; min-width: 220px; max-width: 320px; max-height: 70vh; overflow: auto; background: var(--cv-no); border: 1px solid var(--cv-borda); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgb(0 0 0 / 40%); }
.cv-menu h4 { margin: 8px 10px 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cv-texto-2); }
.cv-menu button { width: 100%; border: 0; background: none; color: var(--cv-texto); text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer; display: grid; gap: 2px; font-size: 15px; }
.cv-menu button:hover { background: var(--cv-no-2); }
.cv-menu button small { color: var(--cv-texto-2); font-size: 15px; }
.cv-menu button.perigo { color: #ff6a4d; }
.cv-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
.cv-galeria button { padding: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.cv-galeria img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- vazio e confirmação ---------- */
.cv-vazio { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; padding: 20px; }
.cv-vazio > div { pointer-events: auto; text-align: center; max-width: 760px; }
.cv-vazio h2 { margin: 0 0 6px; font-size: 26px; }
.cv-vazio p { margin: 0 0 18px; color: var(--cv-texto-2); }
.cv-prontos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cv-prontos button { border: 1px solid var(--cv-borda); background: var(--cv-no); color: var(--cv-texto); border-radius: 16px; padding: 16px; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.cv-prontos button:hover { border-color: var(--cv-sel); }
.cv-prontos button small { color: var(--cv-texto-2); }
.cv-confirma { position: absolute; z-index: 9; right: 14px; top: 66px; width: min(340px, calc(100% - 28px)); background: var(--cv-no); border: 1px solid var(--cv-borda); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgb(0 0 0 / 40%); display: grid; gap: 10px; }
.cv-confirma h3 { margin: 0; font-size: 17px; }
.cv-confirma ul { margin: 0; padding: 0 0 0 18px; color: var(--cv-texto-2); font-size: 15px; display: grid; gap: 3px; }
.cv-confirma .cv-total { font-size: 22px; font-weight: 900; }
.cv-confirma .cv-total small { font-size: 15px; color: var(--cv-texto-2); font-weight: 600; }
.cv-confirma .cv-rodape { justify-content: flex-end; }
.cv-ajuda { position: absolute; left: 14px; bottom: 16px; z-index: 5; font-size: 15px; color: var(--cv-texto-2); max-width: 300px; }

@media (max-width: 700px) {
  #aba-canvas { height: calc(100vh - 110px); }
  .cv-ajuda { display: none; }
  .cv-ferramentas { max-width: calc(100% - 20px); overflow-x: auto; }
  .cv-ferramentas .rotulo { display: none; }
  #cvNome { width: 38vw; }
}
@media (prefers-reduced-motion: reduce) { .cv-fios path.rodando, .cv-gerando i { animation: none; } }

/* nó UGC · Ator contínuo: blocos com fala, enquadramento e atuação */
.cv-blocos { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.cv-blocos li { border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 8px; padding: 6px; display: grid; gap: 4px; }
.cv-blocos .cv-linha { align-items: center; }
.cv-blocos textarea, .cv-blocos input { width: 100%; box-sizing: border-box; font-size: 15px; }

/* styles.css */
/* Nise: identidade visual (marca/README.md). Tinta + creme, violeta principal, coral e sol de destaque.
   Títulos em Fraunces (serifa macia, a mesma do logotipo); interface em Manrope. */
:root {
  --tinta: #15112e;
  --violeta: #5b3fe8;
  --coral: #ff6a4d;
  --sol: #ffc24b;
  --creme: #fbf6ee;

  --fundo: var(--creme);
  --fundo-2: #ffffff;
  --fundo-3: #f2ebdf;
  --linha: #e7ddcd;
  --texto: var(--tinta);
  --texto-2: #6a6280;
  --acento: var(--violeta);
  --acento-suave: #ece8ff;
  --acento-txt: #ffffff;
  --ok: #1f9d55;
  --erro: #d63c2f;
  --sombra: 0 1px 2px rgb(21 17 46 / 6%), 0 10px 30px rgb(21 17 46 / 7%);
  --raio: 18px;
  --serifa: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] {
    --fundo: #0e0b20; --fundo-2: #17132f; --fundo-3: #221c42; --linha: #2e2752;
    --texto: #f6f1e8; --texto-2: #aaa3c4; --acento: #8f78ff; --acento-suave: #2a2160;
    --sombra: 0 1px 2px rgb(0 0 0 / 40%), 0 14px 34px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #06070d; --fundo-2: #10121b; --fundo-3: #181a27; --linha: #232638;
  --texto: #f5f4fa; --texto-2: #9b99b2; --acento: #a594ff; --acento-suave: #221d4a; --acento-txt: #120a24;
  --sombra: 0 1px 2px rgb(0 0 0 / 45%), 0 14px 34px rgb(0 0 0 / 40%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  background-image: radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--violeta) 9%, transparent), transparent 70%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--coral) 7%, transparent), transparent 70%);
  background-attachment: fixed;
  color: var(--texto);
  font: 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
h2 { font: 600 21px/1.2 var(--serifa); font-variation-settings: "SOFT" 100; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-family: var(--serifa); font-variation-settings: "SOFT" 100; font-weight: 600; }
small { color: var(--texto-2); font-weight: 500; }
.link { color: var(--acento); text-decoration: none; font-size: 15px; font-weight: 700; }
.link:hover { text-decoration: underline; }
.dica { color: var(--texto-2); font-size: 15px; margin: 8px 0 0; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 12px 24px; background: color-mix(in srgb, var(--fundo) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.marca { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--texto); text-decoration: none; }
.marca-nome { display: block; height: 42px; }
.marca-nome svg { height: 100%; width: auto; display: block; }
.marca-nome b { font: 700 28px/38px var(--serifa); }
.marca small { font-size: 15px; padding-left: 12px; border-left: 1px solid var(--linha); line-height: 1.2; max-width: 110px; white-space: normal; }
.abas { display: flex; gap: 2px; flex: 1; padding: 4px; background: var(--fundo-3); border-radius: 999px; width: fit-content; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.abas button { white-space: nowrap; border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--texto-2); font-weight: 700; font-size: 16px; }
.abas button:hover { color: var(--texto); }
.abas button.ativa { background: var(--fundo-2); color: var(--texto); box-shadow: var(--sombra); }
.bolha { font-size: 14px; color: var(--acento); margin-left: 2px; }
.direita { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gasto { min-width: 140px; }
.gasto-txt { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gasto-txt small { font-size: 15px; }
.barra { height: 5px; border-radius: 9px; background: var(--fundo-3); margin-top: 5px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violeta), var(--coral)); transition: width 0.4s; }
.barra i.alto { background: var(--erro); }
.selo { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 999px; background: var(--sol); color: var(--tinta); }
.tema { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linha); background: var(--fundo-2); cursor: pointer; color: var(--texto); }

/* ---------- abas ---------- */
.aba { display: none; padding: 24px; max-width: 1500px; margin: 0 auto; }
.aba.ativa { display: block; }
#aba-criar.ativa, #aba-ugc.ativa, #aba-movimento.ativa, #aba-genjutsu.ativa, #aba-edicao.ativa { display: grid; grid-template-columns: minmax(360px, 470px) 1fr; gap: 24px; align-items: start; }

.painel { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); }
#aba-criar .painel, #aba-ugc .painel, #aba-movimento .painel, #aba-genjutsu .painel, #aba-edicao .painel { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; padding-bottom: 0; scrollbar-width: thin; }
.campo { margin-bottom: 18px; }
.campo > label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.campo > label small { font-size: 15px; }
input:not([type]), input[type="search"], textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 20%, transparent); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.capa-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: var(--fundo-3); }
.capa-video[hidden] { display: none; }
.capa-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa-video-texto { position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(transparent, rgba(6, 7, 13, 0.85)); }
.capa-video-texto b { font-size: 18px; letter-spacing: 0.04em; }
.capa-video-texto span { font-size: 15px; opacity: 0.85; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--fundo-3); border-radius: 14px; margin-bottom: 18px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 800; cursor: pointer; color: var(--texto-2); }
.seg button.ativo { background: var(--fundo-2); color: var(--texto); box-shadow: var(--sombra); }
.seg button.ativo .ic { color: var(--acento); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--linha); background: var(--fundo); padding: 7px 12px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: border-color 0.15s, background 0.15s; }
.chips button small { font-size: 14px; }
.chips button:hover { border-color: var(--texto-2); }
.chips button.ativo { background: var(--tinta); color: var(--creme); border-color: var(--tinta); }
.chips button.ativo small { color: color-mix(in srgb, var(--creme) 70%, transparent); }
:root[data-theme="dark"] .chips button.ativo { background: var(--creme); color: var(--tinta); border-color: var(--creme); }
:root[data-theme="dark"] .chips button.ativo small { color: #6a6280; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] .chips button.ativo { background: var(--creme); color: var(--tinta); border-color: var(--creme); }
  :root[data-theme="dark"] .chips button.ativo small { color: #6a6280; }
}
.chips button:disabled { opacity: 0.35; cursor: not-allowed; }
.chips.pequenos button { padding: 5px 10px; font-size: 15px; }
.ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pontos { display: inline-flex; }
.pontos .ponto { margin-left: -3px; border: 1px solid var(--fundo-2); }

.modelos { display: grid; gap: 8px; }
.modelo { text-align: left; border: 1px solid var(--linha); background: var(--fundo); border-radius: 14px; padding: 11px 13px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.modelo:hover { border-color: var(--texto-2); }
.modelo.ativo { border-color: var(--acento); background: color-mix(in srgb, var(--acento-suave) 55%, var(--fundo-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 16%, transparent); }
.modelo b { font-size: 16px; }
.modelo .preco { font-size: 15px; font-weight: 800; color: var(--acento); text-align: right; font-variant-numeric: tabular-nums; }
.modelo .desc { grid-column: 1 / -1; font-size: 15px; color: var(--texto-2); }
.modelo .forn { font-size: 14px; color: var(--texto-2); font-weight: 600; margin-left: 5px; }
.aviso { display: flex; gap: 6px; align-items: center; font-size: 15px; color: var(--erro); margin: 8px 0 0; }

.soltar { position: relative; border: 1.5px dashed var(--linha); border-radius: 14px; padding: 18px; text-align: center; color: var(--texto-2); font-size: 15px; cursor: pointer; background: var(--fundo); }
.soltar:hover, .soltar.sobre { border-color: var(--acento); color: var(--texto); }
.soltar img { max-height: 180px; max-width: 100%; border-radius: 10px; display: block; margin: 0 auto 6px; }
.soltar.pequeno { margin-top: 8px; padding: 12px; }
.soltar.pequeno img { max-height: 110px; }

.linha-acoes { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sec { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--linha); background: var(--fundo-2); padding: 8px 13px; border-radius: 11px; font-weight: 800; cursor: pointer; font-size: 15px; }
.sec .ic { color: var(--acento); }
.sec:hover { border-color: var(--acento); }
.sec:disabled { opacity: 0.5; cursor: wait; }
.pri { border: 0; background: var(--acento); color: var(--acento-txt); padding: 13px 26px; border-radius: 14px; font-weight: 800; cursor: pointer; font-size: 16px; box-shadow: 0 6px 18px color-mix(in srgb, var(--acento) 30%, transparent), inset 0 -2px 0 rgb(0 0 0 / 18%); transition: transform 0.1s, filter 0.15s; }
.pri:hover { filter: brightness(1.08); }
.pri:active { transform: translateY(1px); }
.pri:disabled { opacity: 0.5; cursor: wait; }

/* ---------- câmeras (prévia animada) ---------- */
.cameras { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.cam { border: 1px solid var(--linha); background: var(--fundo); border-radius: 12px; padding: 0 0 6px; cursor: pointer; font-size: 14px; font-weight: 700; overflow: hidden; text-align: center; }
.cam.ativo { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.cam .quadro { height: 64px; overflow: hidden; position: relative; margin-bottom: 5px; background: linear-gradient(180deg, #2a2266 0%, #ff8a63 70%, #3b2a24 70%); perspective: 300px; }
.cena { position: absolute; inset: 0; transform-origin: 50% 60%; }
.cena .sol { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--sol); top: 10px; left: 62%; }
.cena .pessoa { position: absolute; left: 50%; bottom: 14px; width: 14px; height: 30px; margin-left: -7px; background: #120c0a; border-radius: 7px 7px 3px 3px; }
.cena .pessoa::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #120c0a; top: -11px; left: 1px; }
.cena .predio { position: absolute; bottom: 22px; width: 16px; background: #1d1838; }
.cena .p1 { left: 8%; height: 26px; } .cena .p2 { left: 22%; height: 18px; } .cena .p3 { right: 10%; height: 30px; }
.cam:hover .cena, .cam.ativo .cena { animation-play-state: running; }
.cena { animation: 2.4s ease-in-out infinite alternate paused; }
.zoom-rapido { animation-name: zoomRapido; animation-duration: 1.4s; }
.aproximar { animation-name: aproximar; }
.afastar { animation-name: afastar; }
.vertigo { animation-name: vertigo; }
.orbita { animation-name: orbita; animation-direction: normal; animation-timing-function: linear; }
.arco { animation-name: arco; }
.rolo { animation-name: rolo; animation-direction: normal; animation-timing-function: linear; animation-duration: 4s; }
.fpv { animation-name: fpv; animation-duration: 1.6s; }
.lateral { animation-name: lateral; }
.tremer { animation-name: tremer; animation-duration: 0.35s; animation-timing-function: steps(3); }
.subir { animation-name: subir; }
.descer { animation-name: descer; }
.chicote { animation-name: chicote; animation-duration: 1.2s; }
.foco { animation-name: foco; }
.parado { animation: none; }
@keyframes zoomRapido { 0%, 40% { transform: scale(1); } 55%, 100% { transform: scale(2.6) translateY(4px); } }
@keyframes aproximar { from { transform: scale(1); } to { transform: scale(1.7); } }
@keyframes afastar { from { transform: scale(1.8); } to { transform: scale(1); } }
@keyframes vertigo { from { transform: scale(1); filter: none; } to { transform: scale(1.5) perspective(80px) rotateX(4deg); filter: blur(0.3px); } }
@keyframes orbita { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes arco { from { transform: rotateY(-35deg) translateX(-8px); } to { transform: rotateY(35deg) translateX(8px); } }
@keyframes rolo { from { transform: rotate(0deg) scale(1.3); } to { transform: rotate(360deg) scale(1.3); } }
@keyframes fpv { from { transform: scale(1) translateY(0); } to { transform: scale(2.2) translateY(10px) rotate(-6deg); } }
@keyframes lateral { from { transform: translateX(-14px) scale(1.25); } to { transform: translateX(14px) scale(1.25); } }
@keyframes tremer { 0% { transform: translate(0, 0) scale(1.15); } 33% { transform: translate(1.5px, -1px) scale(1.15); } 66% { transform: translate(-1px, 1.5px) scale(1.15); } 100% { transform: translate(1px, 0) scale(1.15); } }
@keyframes subir { from { transform: translateY(-14px) scale(1.3); } to { transform: translateY(14px) scale(1.3); } }
@keyframes descer { from { transform: translateY(14px) scale(1.3); } to { transform: translateY(-14px) scale(1.3); } }
@keyframes chicote { 0%, 30% { transform: translateX(60px); filter: blur(3px); } 60%, 100% { transform: translateX(0); filter: none; } }
@keyframes foco { from { filter: blur(2px); } to { filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .cena, .vazio-logo, .revelar > *, .revelar::after { animation: none !important; } }

.grade-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.prompt-final { margin: 4px 0 14px; font-size: 15px; }
.prompt-final summary { cursor: pointer; color: var(--texto-2); font-weight: 600; }
.prompt-final pre { white-space: pre-wrap; background: var(--fundo); border: 1px solid var(--linha); border-radius: 12px; padding: 10px; font-size: 15px; margin: 8px 0 0; }
.gerar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--fundo-2); border-top: 1px solid var(--linha); margin: 0 -20px; }
.custo b { font: 600 22px/1.15 var(--serifa); font-variation-settings: "SOFT" 100; display: block; font-variant-numeric: tabular-nums; }
.custo small { font-size: 15px; }
.msg { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.msg:empty { margin: 0; }
.msg.erro { color: var(--erro); }
.msg.ok { color: var(--ok); }

/* ---------- resultados ---------- */
.titulo-res { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.titulo-res h2 { margin: 0; }
.feed, .grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; transition: transform 0.15s; }
.card:hover { transform: translateY(-2px); }
.midia { position: relative; background: var(--tinta); aspect-ratio: 9 / 16; display: grid; place-items: center; cursor: zoom-in; overflow: hidden; }
.midia.h { aspect-ratio: 16 / 9; } .midia.q { aspect-ratio: 1; } .midia.r45 { aspect-ratio: 4 / 5; } .midia.r34 { aspect-ratio: 3 / 4; }
.midia video, .midia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.midia .estado { color: var(--creme); text-align: center; font-size: 15px; padding: 10px; font-weight: 600; }
.midia .estado .ic { width: 28px; height: 28px; color: var(--coral); }
.carregando { width: 38px; height: 38px; margin: 0 auto 12px; display: block; }

/* carregamento das gerações: modelo próprio em carregando.css */

/* revelação: quando fica pronta, a mídia sai do desfoque e um feixe de luz passa por cima */
@media (prefers-reduced-motion: no-preference) { .midia.revelar > video, .midia.revelar > img { opacity: 0; } }
.midia.revelar > .carregou { animation: revela 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.midia.revelar:has(> .carregou)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 45%) 50%, transparent 65%); background-size: 250% 100%; mix-blend-mode: soft-light; animation: feixe 1.1s ease-out 0.15s both; }
/* @keyframes revela fica em carregando.css (a mídia nasce por opacidade) */
@keyframes feixe { from { background-position: 120% 0; opacity: 1; } to { background-position: -40% 0; opacity: 0; } }
.etiqueta { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgb(21 17 46 / 70%); backdrop-filter: blur(6px); color: var(--creme); }
.etiqueta.dir { left: auto; right: 10px; }
.info { padding: 12px 14px 4px; font-size: 15px; }
.info p { margin: 0 0 6px; color: var(--texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--texto-2); font-weight: 600; }
.acoes { display: flex; gap: 2px; padding: 4px 8px 10px; margin-top: auto; flex-wrap: wrap; }
.acoes button, .acoes a { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 7px 9px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--texto-2); text-decoration: none; }
.acoes button:hover, .acoes a:hover { background: var(--fundo-3); color: var(--texto); }
.acoes .fav.on { color: var(--sol); }
.acoes .fav.on .ic { fill: var(--sol); }
.acoes [data-acao="falar"] { color: var(--acento); }
.erro-card { color: var(--erro); font-size: 15px; padding: 0 14px 8px; }

.vazio { text-align: center; padding: 60px 20px; color: var(--texto-2); }
.vazio h3 { color: var(--texto); font-size: 24px; margin: 22px 0 8px; }
.vazio p { max-width: 430px; margin: 0 auto; }
.vazio-arte { width: 170px; height: 250px; margin: 0 auto; border-radius: 26px; background: linear-gradient(165deg, var(--tinta) 20%, #3a2a9a 70%, var(--coral) 135%); display: grid; place-items: center; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.vazio-arte::after { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 60%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sol) 45%, transparent), transparent); }
.vazio-logo { width: 92px; height: 92px; position: relative; z-index: 1; animation: gira 18s linear infinite; }
.vazio-txt { color: var(--texto-2); }

/* ---------- galeria ---------- */
.barra-filtros { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.barra-filtros input { max-width: 280px; }

/* ---------- personagens ---------- */
.duas { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 24px; align-items: start; }
.fotos-prev { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fotos-prev div { position: relative; }
.fotos-prev img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.fotos-prev button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--erro); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.fotos-prev button .ic { width: 12px; height: 12px; }
.lista-personagens { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pers { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px; box-shadow: var(--sombra); }
.pers .fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.pers .fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.pers b { display: block; }
.pers small { display: block; margin-bottom: 8px; }
.personagens-mini { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.personagens-mini:empty { display: none; }
.pmini { flex: 0 0 auto; width: 80px; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); padding: 4px; cursor: pointer; font-size: 14px; font-weight: 800; text-align: center; }
.pmini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; margin-bottom: 3px; }
.pmini.ativo { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }

/* ---------- modelos ---------- */
.bloco { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); margin-bottom: 24px; }
.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 10px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { font-size: 15px; color: var(--texto-2); font-weight: 800; }
.tabela td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ok-txt { color: var(--ok); font-weight: 800; } .erro-txt { color: var(--erro); font-weight: 800; }
.comparar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.comparar div { border: 1px solid var(--linha); border-radius: 14px; padding: 14px; background: var(--fundo); font-size: 15px; }
.comparar b { display: block; margin-bottom: 6px; font: 600 17px/1.25 var(--serifa); font-variation-settings: "SOFT" 100; }
.comparar .sim .ic { color: var(--ok); }
.comparar .h { color: var(--texto-2); display: block; margin-top: 6px; }

/* ---------- visor ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog::backdrop { background: rgb(14 11 32 / 88%); backdrop-filter: blur(4px); }
#visorConteudo video, #visorConteudo img { max-width: 92vw; max-height: 88vh; border-radius: 14px; display: block; }
#visorConteudo pre { color: #ddd; white-space: pre-wrap; max-width: 92vw; font-size: 15px; }
.fechar { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--creme); color: var(--tinta); cursor: pointer; display: grid; place-items: center; }

/* ---------- UGC ---------- */
.painel h2 small { font: 500 15px Manrope, sans-serif; margin-left: 6px; }
.briefing { border: 1px solid color-mix(in srgb, var(--acento) 30%, var(--linha)); border-radius: 14px; padding: 11px 13px; margin-bottom: 10px; background: color-mix(in srgb, var(--acento-suave) 45%, var(--fundo-2)); }
.briefing summary { cursor: pointer; font-weight: 800; font-size: 15px; color: var(--acento); display: flex; align-items: center; gap: 7px; }
.briefing[open] summary { margin-bottom: 12px; }
.briefing .campo { margin-bottom: 10px; }
.briefing input { background: var(--fundo-2); }
.variacoes { display: grid; gap: 8px; margin-top: 10px; }
.variacao { text-align: left; border: 1px solid var(--linha); background: var(--fundo-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 15px; }
.variacao:hover { border-color: var(--acento); }
.variacao b { display: block; font-size: 15px; color: var(--coral); text-transform: capitalize; margin-bottom: 3px; }
.variacao p { margin: 0; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#soltarAtor { margin-top: 8px; }
.etapa { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / 10%); color: var(--sol); }
.variacao.ativo, #soltarAtor.ativo { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }

/* ---------- celular ---------- */
@media (max-width: 980px) {
  .topo { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .abas { order: 3; flex-basis: 100%; overflow-x: auto; width: auto; }
  .marca small { display: none; }
  .marca-nome { height: 32px; }
  .gasto { min-width: 96px; }
  .gasto-txt small { display: none; }
  .abas button { padding: 7px 13px; }
  .aba { padding: 16px; }
  #aba-criar.ativa, #aba-ugc.ativa, #aba-movimento.ativa, #aba-genjutsu.ativa, #aba-edicao.ativa, .duas { grid-template-columns: 1fr; }
  #aba-criar .painel, #aba-ugc .painel, #aba-movimento .painel, #aba-genjutsu .painel, #aba-edicao .painel { position: static; max-height: none; }
  .feed, .grade { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ======================================================================
   Layout novo (09/10): menu de ferramentas, página inicial e editor.
   Referência: estúdio de IA escuro com destaque lavanda; tudo com a marca da Nise.
   ====================================================================== */
.topo { gap: 28px; padding: 12px 28px; }
.abas { background: none; padding: 0; gap: 2px; flex: 1; }
.abas button { padding: 8px 12px; font-size: 16px; color: var(--texto-2); }
.abas button:hover { color: var(--texto); background: none; }
.abas button.ativa { background: none; box-shadow: none; color: var(--texto); position: relative; }
.abas button.ativa::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--acento); }
.abas .divisor { width: 1px; height: 18px; background: var(--linha); margin: 0 8px; align-self: center; }
.abas .novo { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; background: var(--acento); color: var(--acento-txt); margin-left: 3px; vertical-align: 2px; }
.pri.pequeno { padding: 9px 18px; font-size: 16px; border-radius: 11px; }
.pri.largo { width: 100%; }
.sec.redondo { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.sec.redondo:disabled { opacity: 0.35; cursor: not-allowed; }
select { font: inherit; color: var(--texto); background: var(--fundo); border: 1px solid var(--linha); border-radius: 11px; padding: 9px 12px; max-width: 100%; }
.link-pilula { border: 0; background: var(--acento-suave); color: var(--acento); font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.link-pilula:hover { filter: brightness(1.15); }

/* ---------- início ---------- */
#aba-inicio { max-width: 1440px; padding-top: 0; }
.heroi { text-align: center; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.heroi h1 { margin: 0; font: 800 clamp(44px, 7.4vw, 108px)/0.98 Manrope, sans-serif; letter-spacing: -0.045em; }
.heroi-marca { color: var(--acento); }
.heroi-sub { margin: 4px 0 6px; font-size: clamp(16px, 1.6vw, 20px); color: var(--texto-2); font-weight: 600; max-width: 720px; }
.heroi-busca { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); padding: 8px 8px 8px 20px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 16px; box-shadow: var(--sombra); }
.heroi-busca input { flex: 1; border: 0; background: none; padding: 10px 0; box-shadow: none; font-size: 17px; }
.heroi-busca input:focus { box-shadow: none; }
.heroi-modelos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 10px 16px; border: 1px solid var(--linha); border-radius: 16px; max-width: 1080px; }
.heroi-modelos button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--texto); }
.heroi-modelos button:hover { background: var(--fundo-3); }
.ponto-modelo { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, var(--a), var(--b)); transform: rotate(45deg) scale(0.8); }
@media (max-width: 700px) { .so-largo { display: none; } .heroi { padding-top: 32px; } }

.cartoes-ferramenta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 70px; }
.ferramenta { position: relative; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--texto); display: flex; flex-direction: column; gap: 4px; }
.ferramenta b { font-size: 16px; letter-spacing: 0.02em; margin-top: 12px; }
.ferramenta > span:last-child { color: var(--texto-2); font-size: 15px; }
.ferramenta-arte { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); background: var(--fundo-2); transition: transform 0.25s, border-color 0.25s; }
.ferramenta:hover .ferramenta-arte { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acento) 60%, var(--linha)); }
.selo-novo { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 14px; font-weight: 900; font-style: italic; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 6px; background: var(--acento); color: var(--acento-txt); }
.arte-cinema { background: linear-gradient(180deg, #221a5e 0%, #ff8a63 72%, #2a1c25 72%); }
.cena-grande { position: absolute; inset: 0; transform-origin: 50% 62%; animation: aproximar 6s ease-in-out infinite alternate; }
.cena-grande .sol { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--sol); top: 16%; left: 60%; box-shadow: 0 0 60px var(--sol); }
.cena-grande .predio { position: absolute; bottom: 28%; width: 9%; background: #160f2c; }
.cena-grande .p1 { left: 8%; height: 34%; } .cena-grande .p2 { left: 20%; height: 22%; } .cena-grande .p3 { right: 9%; height: 40%; }
.cena-grande .pessoa { position: absolute; left: 50%; bottom: 18%; width: 7%; height: 30%; margin-left: -3.5%; background: #0d0718; border-radius: 40px 40px 6px 6px; }
.cena-grande .pessoa::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: #0d0718; top: -38%; left: 5%; }
.rec { position: absolute; top: 12px; right: 12px; font: 800 14px Manrope; color: #fff; padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / 45%); }
.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; margin-right: 5px; animation: piscar 1s steps(2) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.arte-ugc { background: radial-gradient(circle at 30% 20%, #5b3fe8, transparent 60%), radial-gradient(circle at 80% 90%, #ff6a4d, transparent 55%), #120d2a; display: grid; place-items: center; }
.celular { width: 26%; aspect-ratio: 9 / 18; border-radius: 16px; background: #0b0a14; border: 3px solid #2a2547; position: relative; overflow: hidden; display: grid; place-items: center; }
.celular .rosto { width: 46%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #ffc9a3, #e08f6a); margin-bottom: 30%; box-shadow: 0 30px 0 10px #3a2a8a; }
.celular .onda { position: absolute; bottom: 12%; display: flex; gap: 3px; align-items: center; height: 16%; }
.celular .onda i { width: 4px; border-radius: 3px; background: var(--sol); animation: onda 0.9s ease-in-out infinite; }
.celular .onda i:nth-child(2n) { animation-delay: 0.15s; } .celular .onda i:nth-child(3n) { animation-delay: 0.3s; }
@keyframes onda { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.arte-editor { background: linear-gradient(180deg, #14122a, #0b0a16); }
.faixas { position: absolute; left: 7%; right: 7%; bottom: 22%; display: flex; gap: 6px; height: 26%; }
.faixas i { width: var(--w); border-radius: 8px; background: linear-gradient(135deg, #3a2fa0, #5b3fe8); border: 1px solid rgb(255 255 255 / 12%); }
.faixas i:nth-child(2) { background: linear-gradient(135deg, #8a2f4a, #ff6a4d); } .faixas i:nth-child(3) { background: linear-gradient(135deg, #2b6b6b, #3fc6b4); }
.faixas i.ia { background: repeating-linear-gradient(-45deg, #a594ff 0 8px, #8f78ff 8px 16px); animation: brilho-ia 1.4s linear infinite; background-size: 200% 100%; }
@keyframes brilho-ia { to { background-position: 45px 0; } }
.cabeca { position: absolute; top: 16%; bottom: 14%; left: 7%; width: 2px; background: var(--sol); box-shadow: 0 0 12px var(--sol); animation: cabeca 5s linear infinite; }
@keyframes cabeca { to { left: 93%; } }

.destaque { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 22px; align-items: center; padding: 26px; border-radius: 22px; border: 1px solid var(--linha); background: radial-gradient(600px 300px at 0% 0%, var(--acento-suave), transparent 70%), var(--fundo-2); margin-bottom: 80px; }
.destaque-texto { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.destaque-texto small { font-weight: 800; letter-spacing: 0.08em; font-size: 14px; color: var(--texto-2); }
.destaque-texto h2 { font: 800 clamp(28px, 3vw, 40px)/1.05 Manrope, sans-serif; letter-spacing: -0.03em; margin: 0; color: var(--acento); text-transform: uppercase; }
.destaque-texto p { margin: 0; color: var(--texto-2); }
.destaque-texto .link-pilula { align-self: center; background: none; }
.destaque-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quadro-destaque { aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; background: var(--fundo-3); cursor: zoom-in; display: grid; place-items: center; }
.quadro-destaque video, .quadro-destaque img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quadro-destaque.vazio-q { cursor: default; background: linear-gradient(135deg, hsl(var(--h) 55% 22%), hsl(calc(var(--h) + 50deg) 60% 34%)); }
.quadro-destaque.vazio-q img { width: 34%; height: auto; opacity: 0.85; }

.secao { margin-bottom: 76px; }
.secao-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.secao-topo p { margin: 4px 0 0; color: var(--texto-2); font-size: 15px; }
.titulo-caixa { font: 800 20px/1.1 Manrope, sans-serif; letter-spacing: 0.01em; margin: 0; }
.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.cartao-modelo { scroll-snap-align: start; text-align: left; border: 1px solid var(--linha); background: var(--fundo-2); border-radius: 16px; padding: 8px 8px 12px; cursor: pointer; color: var(--texto); display: flex; flex-direction: column; gap: 4px; transition: border-color 0.2s, transform 0.2s; }
.cartao-modelo:hover { border-color: var(--acento); transform: translateY(-2px); }
.cartao-modelo-arte { position: relative; aspect-ratio: 4 / 3; border-radius: 11px; background: radial-gradient(circle at 25% 20%, var(--b), transparent 60%), linear-gradient(140deg, var(--a), #0b0a16 85%); display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; }
.logo-modelo { width: 16px; height: 16px; flex: none; display: inline-block; border-radius: 4px; object-fit: contain; }
span.logo-modelo { background: var(--cor); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; border-radius: 0; }
.cartao-modelo-logo { width: 34%; aspect-ratio: 1; border-radius: 22%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / 35%); transition: transform 0.5s; }
.cartao-modelo-logo .logo-modelo.grande { width: 58%; height: 58%; }
.cartao-modelo-logo img.logo-modelo.grande { width: 100%; height: 100%; border-radius: 22%; }
.cartao-modelo-logo span.logo-modelo.grande[style*="--texto"] { --cor: #111 !important; background: #111; }
.cartao-modelo:hover .cartao-modelo-logo { transform: translateY(-4px) scale(1.06); }
.cartao-modelo-arte .etq { position: absolute; top: 8px; left: 8px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 45%); color: #fff; }
/* prévia de verdade no lugar do quadrado com logo (11/10) */
.cartao-modelo.com-previa .cartao-modelo-arte { aspect-ratio: 4 / 5; background: var(--fundo-3, #15131f); }
.cartao-modelo-arte > video, .cartao-modelo-arte > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.cartao-modelo:hover .cartao-modelo-arte > video, .cartao-modelo:hover .cartao-modelo-arte > img { transform: scale(1.05); }
.cartao-modelo-arte::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / 28%), transparent 30%, transparent 65%, rgb(0 0 0 / 45%)); }
.cartao-modelo-arte .etq { z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / 14%); }
.cartao-modelo-marca { position: absolute; z-index: 2; left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgb(255 255 255 / 92%); box-shadow: 0 6px 18px rgb(0 0 0 / 35%); }
.cartao-modelo-marca .logo-modelo { width: 17px; height: 17px; }
.cartao-modelo-marca img.logo-modelo { width: 100%; height: 100%; border-radius: 9px; }
.cartao-modelo b { display: flex; justify-content: space-between; align-items: center; font-size: 16px; padding: 0 4px; }
.cartao-modelo > span { font-size: 15px; color: var(--texto-2); padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cartao-modelo small { font-weight: 800; color: var(--acento); padding: 0 4px; }

.mural { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-flow: dense; gap: 10px; }
.mural-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--fundo-2); aspect-ratio: 9 / 16; cursor: zoom-in; }
.mural-item.h { aspect-ratio: 16 / 9; grid-column: span 2; } .mural-item.q { aspect-ratio: 1; }
.mural-item video, .mural-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mural-vazio { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 20px; border: 1px dashed var(--linha); border-radius: 18px; color: var(--texto-2); }
.mural-vazio img { width: 56px; }
.mural-vazio b { color: var(--texto); font-size: 18px; }

.numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; padding: 34px 0 80px; }
.numeros div { display: flex; align-items: baseline; gap: 10px; font-size: clamp(22px, 2.6vw, 34px); }
.numeros b { font-weight: 800; letter-spacing: -0.02em; }
.numeros span { color: var(--texto-2); font-weight: 700; }

.faq { display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: 40px; margin-bottom: 90px; }
.faq-titulo h2 { font: 800 clamp(32px, 3.6vw, 46px)/1.02 Manrope, sans-serif; letter-spacing: -0.03em; margin: 0 0 12px; }
.faq-titulo em { font-family: var(--serifa); font-style: italic; font-weight: 600; color: var(--acento); }
.faq-titulo p { color: var(--texto-2); margin: 0 0 14px; }
.faq-lista { display: grid; gap: 10px; }
.faq-lista details { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 16px; padding: 4px 20px; }
.faq-lista summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; padding: 14px 0; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fundo-3); color: var(--texto-2); font-weight: 600; flex: none; }
.faq-lista details[open] summary::after { content: "×"; }
.faq-lista details p { margin: 0 0 16px; color: var(--texto-2); }

.rodape { border-top: 1px solid var(--linha); padding: 50px 0 26px; display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 30px 50px; }
.rodape-frase { font: 800 clamp(24px, 2.4vw, 32px)/1.12 Manrope, sans-serif; letter-spacing: -0.025em; }
.rodape-frase span { color: var(--acento); }
.rodape-colunas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rodape-colunas div { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.rodape-colunas b { color: var(--texto-2); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.rodape-colunas a, .rodape-colunas span { color: var(--texto); text-decoration: none; }
.rodape-colunas a:hover { color: var(--acento); }
.rodape-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--texto-2); font-size: 15px; padding-top: 20px; border-top: 1px solid var(--linha); }

/* ---------- editor ---------- */
#aba-editor.ativa { display: flex; flex-direction: column; gap: 18px; }
.ed-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ed-escolha { display: flex; gap: 8px; }
#edNome { max-width: 280px; font-weight: 800; }
.ed-total { margin-left: auto; color: var(--texto-2); font-weight: 700; font-size: 15px; }
.ed-corpo { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 20px; align-items: start; }
.ed-palco { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; border-radius: var(--raio); background: radial-gradient(600px 300px at 50% 0%, #1b1640, #05050a 70%); border: 1px solid var(--linha); }
.ed-tela { position: relative; height: min(62vh, 640px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgb(0 0 0 / 50%); max-width: 100%; container-type: size; }
.ed-tela.f16x9 { aspect-ratio: 16 / 9; height: auto; width: min(100%, 860px); }
.ed-tela.f1x1 { aspect-ratio: 1; }
.ed-tela video, .ed-tela img#edImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-legenda { position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: 86%; padding: 0.28em 0.6em; border-radius: 0.4em; background: rgba(21, 17, 46, 0.78); color: #fbf6ee; font: 800 clamp(13px, 3.4cqh, 30px)/1.18 Manrope, sans-serif; text-align: center; }
.ed-legenda.baixo { bottom: 17%; } .ed-legenda.cima { top: 12%; } .ed-legenda.meio { top: 50%; transform: translateY(-50%); }
.ed-vazio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #b9b5d0; font-size: 15px; }
.ed-vazio img { width: 64px; animation: gira 18s linear infinite; }
.ed-vazio b { color: #fff; font-size: 18px; font-family: var(--serifa); }
.ed-controles { display: flex; align-items: center; gap: 10px; }
.ed-tempo { color: #b9b5d0; font-size: 15px; font-weight: 700; }
.ed-inspetor { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; }
.ed-insp-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ed-insp-topo h2 { margin: 0; }
.ed-corte { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--texto-2); }
input[type="range"] { width: 100%; accent-color: var(--acento); }
.ed-ia { margin-top: 8px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--acento) 35%, var(--linha)); background: color-mix(in srgb, var(--acento-suave) 40%, var(--fundo-2)); }
.ed-ia .seg { margin-bottom: 8px; }
.ed-ia textarea { min-height: 80px; margin-top: 4px; }
.ed-ia select { width: 100%; }
.ed-gerar { position: static; margin: 10px -14px -14px; padding: 12px 14px; border-radius: 0 0 16px 16px; background: transparent; }
.ed-aviso { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--fundo-3); }
.ed-aviso div { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.ed-aviso span { color: var(--texto-2); }
.ed-aviso.falha { color: var(--erro); }
.ed-aviso .carregando { margin: 0; flex: none; }
.carregando.pequeno { width: 20px; height: 20px; margin: 0; display: inline-block; vertical-align: middle; }
.ed-linha { padding: 16px; border-radius: var(--raio); background: var(--fundo-2); border: 1px solid var(--linha); }
.ed-cenas { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.ed-cena { position: relative; flex: 0 0 auto; height: 96px; border-radius: 12px; overflow: hidden; background: var(--fundo-3); border: 2px solid transparent; cursor: pointer; }
.ed-cena video, .ed-cena img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ed-cena.ativa { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
.ed-cena.alvo { border-color: var(--sol); }
.ed-cena-n { position: absolute; top: 6px; left: 6px; font: 800 14px Manrope; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 60%); color: #fff; }
.ed-cena-d { position: absolute; bottom: 6px; right: 6px; font: 800 14px Manrope; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 60%); color: #fff; }
.ed-cena-t { position: absolute; bottom: 6px; left: 6px; display: grid; place-items: center; width: 22px; height: 20px; border-radius: 6px; background: var(--acento); color: var(--acento-txt); }
.ed-cena-t .ic { width: 13px; height: 13px; }
.ed-cena-t.ed-cena-l { left: auto; right: 6px; }
.ed-legbarra .chips { margin: 0; }
.ed-legbarra .msg:empty { display: none; }
.ed-leg-trechos { max-height: 26vh; }
.ed-gerando { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--acento); background: repeating-linear-gradient(-45deg, var(--fundo-3) 0 10px, var(--fundo-2) 10px 20px); }
.ed-gerando:has(> .nc) { position: relative; z-index: 0; background: none; }
.ed-gerando.falha { color: var(--erro); }
.ed-mais { flex-basis: 118px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--linha); background: none; color: var(--texto-2); font-weight: 800; font-size: 15px; }
.ed-mais:hover { border-color: var(--acento); color: var(--acento); }
.ed-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--fundo-3); font-size: 15px; }
.ed-trilha .dica { margin: 0; }
.ed-trilha label:not(.ed-arquivo) { display: flex; align-items: center; gap: 8px; color: var(--texto-2); font-weight: 700; }
.ed-trilha input[type="range"] { width: 140px; }
.ed-trilha-ic { color: var(--sol); display: grid; }
.ed-arquivo { margin-left: auto; }
.ed-exportar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--raio); background: var(--fundo-2); border: 1px solid var(--linha); }
.ed-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.ed-status .dica { margin: 0; }
.ed-status a.sec { text-decoration: none; color: var(--texto); }
.ed-dialogo { width: min(980px, 94vw); background: var(--fundo-2); color: var(--texto); border: 1px solid var(--linha); border-radius: 20px; padding: 18px; }
.ed-dialogo-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ed-dialogo-topo h2 { margin: 0; }
.ed-escolher { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 70vh; overflow: auto; }
.ed-escolher-item { text-align: left; border: 1px solid var(--linha); background: var(--fundo); border-radius: 12px; padding: 6px; cursor: pointer; color: var(--texto); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ed-escolher-item:hover { border-color: var(--acento); }
.ed-escolher-item video, .ed-escolher-item img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border-radius: 8px; display: block; pointer-events: none; }
.ed-escolher-item span { display: flex; gap: 5px; align-items: center; font-weight: 800; }
.ed-escolher-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) {
  .abas .divisor { display: none; }
  .ed-corpo { grid-template-columns: 1fr; }
  .ed-inspetor { position: static; max-height: none; }
  .destaque { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .abas button.ativa::after { bottom: -4px; }
  .cartoes-ferramenta { grid-template-columns: 1fr; }
  .faq, .rodape { grid-template-columns: 1fr; }
  .rodape-colunas { grid-template-columns: repeat(2, 1fr); }
  .destaque-grade { grid-template-columns: repeat(2, 1fr); }
  .topo .pri.pequeno { display: none; }
  .ed-tela { height: 56vh; }
}
.ed-gerar .custo b { font-size: 18px; }
.campo > label > span { display: inline-flex; align-items: center; gap: 6px; }
.soltar video { max-height: 200px; max-width: 100%; border-radius: 10px; display: block; margin: 0 auto 6px; }

/* Motion: vídeo por link e seleção da pessoa com o dedo */
.link-video { display: flex; gap: 8px; }
.link-video input { flex: 1; min-width: 0; border: 1px solid var(--linha); background: var(--fundo); border-radius: 11px; padding: 9px 12px; font-size: 16px; }
.link-video input:focus { outline: 2px solid var(--acento); border-color: transparent; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: 15px; margin: 10px 0; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.selecao { position: relative; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; max-height: 460px; display: flex; justify-content: center; }
.selecao canvas { display: block; max-width: 100%; max-height: 460px; }
#movPincel { position: absolute; cursor: crosshair; }
.selecao-barra { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.selecao-barra input { flex: 1; accent-color: var(--acento); }
.dica-sel { display: block; color: var(--texto-2); font-size: 15px; margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-top: 10px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--acento); }

/* Planos e créditos */
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.plano { border: 1px solid var(--linha); border-radius: var(--raio); background: var(--fundo-2); padding: 20px; display: grid; gap: 14px; align-content: start; }
.plano.plano-destaque { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); }
.plano h3 { margin: 0; font-family: var(--serifa); font-size: 24px; }
.plano-topo p { margin: 4px 0 0; color: var(--texto-2); font-size: 16px; }
.plano-preco { display: grid; gap: 2px; }
.plano-preco b { font-size: 26px; font-variant-numeric: tabular-nums; }
.plano-preco b span { font-size: 16px; font-weight: 600; color: var(--texto-2); }
.plano-preco small { color: var(--texto-2); font-size: 15px; }
.plano ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 16px; }
.plano li { display: flex; gap: 8px; align-items: flex-start; }
.plano li .ic { flex: none; margin-top: 3px; color: var(--ok); }
.tokens { display: grid; gap: 8px; margin-top: 6px; }
.token-linha { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 44px; gap: 12px; align-items: center; font-size: 16px; }
.token-nome { display: flex; gap: 8px; align-items: center; min-width: 0; flex-wrap: wrap; }
.token-nome small { color: var(--texto-2); font-size: 15px; width: 100%; padding-left: 30px; margin-top: -4px; }
.token-trilho { height: 10px; background: var(--fundo-3); border-radius: 999px; overflow: hidden; }
.token-trilho span { display: block; height: 100%; background: var(--acento); border-radius: 999px; }
.token-valor { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .token-linha { grid-template-columns: 1fr 44px; } .token-trilho { grid-column: 1 / -1; order: 3; } }
/* com a aba Planos o menu não cabe em telas médias: botões mais justos em vez de rolagem (que cortaria o sublinhado da aba ativa) */
.direita { flex: none; }
@media (max-width: 1500px) and (min-width: 901px) {
  .topo { gap: 16px; padding-inline: 20px; }
  .abas button { padding: 8px 8px; font-size: 16px; }
  .abas button.ativa::after { left: 8px; right: 8px; }
  .abas .divisor { margin: 0 4px; }
}

/* ---------- voz clonada e tradução de vídeo ---------- */
.vozes-minhas button { border-color: color-mix(in srgb, var(--acento) 45%, transparent); }
.linha-idioma { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.linha-idioma select { min-width: 160px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); font: inherit; }
.titulo-acoes { display: flex; gap: 12px; align-items: center; }
.dlg-voz, .dlg-traduzir { width: min(620px, 94vw); max-height: 92vh; overflow: auto; }
.dlg-voz .gerar, .dlg-traduzir .gerar { position: static; margin: 14px 0 0; border-radius: 14px; border: 1px solid var(--linha); }
.voz-fonte { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 10px; }
.voz-fonte .soltar { flex: 1; min-width: 200px; margin: 0; }
.ponto-rec { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--erro); }
#vozGravar.gravando .ponto-rec { animation: piscar-rec 1s steps(2) infinite; }
@keyframes piscar-rec { 50% { opacity: 0.2; } }
#vozOuvir { width: 100%; margin-top: 10px; }
.vozes-titulo { margin: 20px 0 8px; font-size: 16px; }
.lista-vozes { display: grid; gap: 8px; }
.voz-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 14px; }
.voz-item small { display: block; color: var(--texto-2); font-size: 15px; margin-top: 2px; }
.voz-item audio { height: 34px; max-width: 220px; }
.trad-origem { display: flex; gap: 12px; align-items: center; }
.trad-origem:empty { display: none; }
.trad-origem video, .trad-origem img { width: 84px; max-height: 150px; border-radius: 10px; object-fit: cover; background: #000; }
.trad-origem p { margin: 0; font-size: 15px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aviso-card { color: var(--texto-2); }
@media (max-width: 560px) {
  .voz-item { grid-template-columns: 1fr auto; }
  .voz-item audio { grid-column: 1 / -1; max-width: none; width: 100%; }
}
.rodape-base a { color: inherit; text-decoration-color: var(--linha); text-underline-offset: 3px; }

/* Modelos de UGC (templates): blocos com fala, enquadramento e atuação + fotos aprovadas */
.modelo-ugc select { flex: 1; min-width: 0; }
.modelo-ugc .salvar-modelo input { flex: 1; min-width: 0; }
.modelo-fotos { display: flex; gap: 8px; margin: 8px 0; }
.modelo-fotos figure { margin: 0; flex: 1; max-width: 96px; }
.modelo-fotos img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; display: block; }
.modelo-fotos figcaption { font-size: 14px; opacity: 0.7; margin-top: 4px; text-align: center; }
.modelo-blocos { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.modelo-blocos li { border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.modelo-blocos .bloco-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.modelo-blocos textarea, .modelo-blocos input { width: 100%; box-sizing: border-box; font-size: 15px; }

/* Atores prontos (aba UGC): grade 9:16 com vários escolhidos, um vídeo por ator */
.atores-prontos { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; margin: 8px 0 12px; padding: 2px; }
.ator-pronto { position: relative; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); padding: 0; cursor: pointer; overflow: hidden; text-align: left; color: inherit; }
.ator-pronto img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.ator-pronto span { position: absolute; inset: auto 0 0 0; padding: 14px 7px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.15; }
.ator-pronto small { display: block; font-weight: 500; opacity: 0.85; }
.ator-pronto.ativo { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.ator-pronto .ator-fav { inset: 6px auto auto 6px; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-size: 15px; line-height: 1; opacity: 0.55; transition: opacity 0.15s; }
.ator-pronto:hover .ator-fav, .ator-pronto .ator-fav.ativo { opacity: 1; }
.ator-pronto .ator-fav.ativo { color: #ffd34d; }
.ouvir-voz { align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ouvir-voz audio { height: 32px; max-width: 100%; }
.ator-pronto.ativo::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--acento); color: #fff; font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.sublabel { margin-top: 4px; font-size: 15px; }

/* Receitas de IA (aba Imagem): chips de um clique + campos dos [COLCHETES] + combos */
.chips.receitas { flex-wrap: wrap; }
.receita-caixa { margin-top: 10px; padding: 12px; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo-2); display: grid; gap: 8px; }
.receita-vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.receita-var { display: grid; gap: 4px; font-size: 15px; color: var(--texto-2); }
.receita-var select, .receita-var input { width: 100%; font-size: 15px; padding: 8px 10px; }
.receita-caixa .dica { margin: 0; }
.receita-depois { font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.receita-depois small { color: var(--texto-2); }
.fotos-ref { display: flex; gap: 8px; margin-top: 8px; }
.foto-ref { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--acento); }
.foto-ref img { width: 100%; height: 100%; object-fit: cover; }
.foto-ref small { position: absolute; left: 4px; bottom: 4px; font-size: 14px; background: rgb(0 0 0 / 60%); color: #fff; padding: 1px 5px; border-radius: 6px; }
.foto-ref button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 60%); color: #fff; cursor: pointer; line-height: 1; }

/* Refazer um trecho do Ator contínuo (visor) */
.vs-trechos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; max-height: 38vh; overflow: auto; }
.vs-trechos li { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--linha); border-radius: 10px; }
.vs-trechos textarea { width: 100%; resize: vertical; font: inherit; font-size: 15px; }
.vs-trechos button { justify-self: start; }

.check.emendar { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 15px; line-height: 1.35; cursor: pointer; }
.check.emendar input { margin-top: 3px; }

/* prévia em vídeo do ator pronto: aparece por cima da foto ao passar o mouse */
.ator-pronto .ator-previa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.ator-pronto:hover .ator-previa { opacity: 1; }

/* pele.css */
/* ======================================================================
   Pele Nise 2 (09/10 noite): identidade no formato do Higgsfield, em roxo.
   Fundo quase preto e chapado, superfícies em cinza-grafite, um único neon (roxo elétrico)
   para o que é ação ou destaque, títulos condensados em caixa-alta (Archivo) e interface em Inter.
   Carregado por último: só sobrescreve; a estrutura continua nos outros CSS.
   ====================================================================== */
:root {
  --neon: #a46bff;          /* o "lima" do Higgsfield, na cor da Nise */
  --neon-forte: #c3a0ff;    /* texto em destaque sobre o escuro */
  --neon-fundo: #8a4dff;    /* botão principal */
  --neon-sombra: #5f2bd1;   /* borda de baixo do botão */
  --neon-txt: #ffffff;
  --cond: "Archivo", "Arial Narrow", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 16px;
}
/* 03/11 "Nise branca": o padrão (sem atributo) agora é o CLARO; o escuro só com data-theme="dark", nunca pelo sistema. */
:root[data-theme="dark"] {
  --fundo: #0b0b0e; --fundo-2: #141418; --fundo-3: #1d1d23; --linha: rgb(255 255 255 / 7%);
  --texto: #f5f5f7; --texto-2: #8f8f9c; --acento: var(--neon); --acento-suave: rgb(164 107 255 / 14%); --acento-txt: #fff;
  --neon-forte: #c3a0ff;
  --sombra: none;
  --vidro: rgb(11 11 14 / 82%);
  color-scheme: dark;
}
:root,
:root[data-theme="light"] {
  --fundo: #f4f3f7; --fundo-2: #ffffff; --fundo-3: #ebe9f1; --linha: rgb(20 16 40 / 9%);
  --texto: #121016; --texto-2: #6c6878; --acento: #7c3aed; --acento-suave: rgb(124 58 237 / 10%);
  --neon-forte: #7c3aed; --sombra: 0 1px 2px rgb(0 0 0 / 4%);
  --vidro: rgb(244 243 247 / 85%);
  color-scheme: light;
}

body { background: var(--fundo); background-image: none; font-family: var(--ui); font-size: 16px; letter-spacing: -0.006em; }
h2, h3 { font-family: var(--ui); font-variation-settings: normal; font-weight: 700; letter-spacing: -0.015em; }
::selection { background: var(--neon); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--fundo-3) transparent; }

/* títulos de tela no estilo "MAKE VIDEOS IN ONE CLICK" */
.cond, .heroi h1, .titulo-caixa, .destaque-texto h2, .faq-titulo h2, .rodape-frase, .capa-video-texto b,
.ferramenta b, .vazio h3, .hype b, .painel > h2, .duas h2, .bloco > h2, .bloco .titulo-res h2, .titulo-res h2 {
  font-family: var(--cond); font-stretch: 68%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
}

/* ---------- faixa de oferta (no lugar do amarelo do Higgsfield) ---------- */
.faixa { position: relative; z-index: 11; display: flex; align-items: center; gap: 14px; padding: 9px 56px 9px 20px; background: var(--neon); color: #0b0b0e; font-weight: 700; font-size: 16px; }
.faixa-selo { background: #0b0b0e; color: #fff; font-weight: 700; font-size: 15px; padding: 4px 10px; border-radius: 7px; white-space: nowrap; }
.faixa-selo b { color: var(--neon-forte); }
.faixa p { margin: 0; flex: 1; min-width: 0; }
.faixa p b { font-weight: 800; }
.faixa-btn { text-decoration: none; border: 0; background: #0b0b0e; color: #fff; font-weight: 700; font-size: 16px; padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.faixa-btn:hover { background: #1d1d23; }
.faixa-fechar { position: absolute; right: 14px; top: 50%; translate: 0 -50%; border: 0; background: none; color: #0b0b0e; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.faixa-fechar:hover { background: rgb(0 0 0 / 10%); }
@media (max-width: 760px) { .faixa { font-size: 15px; padding: 8px 44px 8px 12px; gap: 8px; } .faixa-selo { display: none; } .faixa-btn { padding: 7px 12px; font-size: 15px; } }

/* ---------- topo: só texto, ativo em neon, selos "Novo" ---------- */
.topo { background: var(--vidro); backdrop-filter: blur(16px); border-bottom: 0; padding: 10px 22px; gap: 22px; }
.marca-nome { height: 34px; }
.abas { gap: 0; }
.abas button { font-family: var(--ui); font-weight: 600; font-size: 16px; color: var(--texto-2); padding: 8px 11px; display: inline-flex; align-items: center; gap: 6px; }
.abas button:hover { color: var(--texto); }
.abas button.ativa { color: var(--neon); }
.abas button.ativa::after { display: none; }
.abas .novo { background: var(--acento-suave); color: var(--neon-forte); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 2px 6px; border-radius: 6px; margin: 0; vertical-align: 0; }
.abas .novo { text-transform: capitalize; }
.abas .divisor { background: rgb(255 255 255 / 12%); height: 16px; }
.bolha { color: var(--texto-2); font-weight: 600; }
.tema { background: var(--fundo-3); border: 0; }
.gasto-txt { font-weight: 700; }
.barra { background: var(--fundo-3); }
.barra i { background: var(--neon); }
.selo { background: var(--acento-suave); color: var(--neon-forte); }

/* ---------- botões ---------- */
.pri { background: var(--neon-fundo); color: var(--neon-txt); border-radius: 12px; font-weight: 700; box-shadow: inset 0 -3px 0 var(--neon-sombra); padding: 13px 26px; }
.pri:hover { filter: brightness(1.1); }
.pri.pequeno { border-radius: 10px; padding: 9px 18px; box-shadow: inset 0 -2px 0 var(--neon-sombra); }
.sec { background: var(--fundo-3); border: 0; border-radius: 10px; font-weight: 600; }
.sec:hover { background: color-mix(in srgb, var(--fundo-3) 70%, #fff 8%); }
.sec .ic { color: var(--texto-2); }
.link-pilula { background: var(--fundo-3); color: var(--texto); font-weight: 600; border-radius: 999px; padding: 8px 16px; }
.link-pilula::after { content: " ›"; color: var(--texto-2); }
.link { color: var(--neon-forte); font-weight: 600; }

/* ---------- campos ---------- */
input:not([type]), input[type="search"], input[type="url"], textarea, select { background: var(--fundo-3); border: 1px solid transparent; border-radius: 12px; }
input:focus, textarea:focus { border-color: color-mix(in srgb, var(--neon) 60%, transparent); box-shadow: none; }
.chips button { background: var(--fundo-3); border: 1px solid transparent; font-weight: 600; border-radius: 10px; }
.chips button:hover { border-color: rgb(255 255 255 / 14%); }
.chips button.ativo, :root[data-theme="dark"] .chips button.ativo { background: var(--acento-suave); color: var(--texto); border-color: var(--neon); }
.chips button.ativo small, :root[data-theme="dark"] .chips button.ativo small { color: var(--neon-forte); }
@media (prefers-color-scheme: dark) { :root[data-theme="dark"] .chips button.ativo { background: var(--acento-suave); color: var(--texto); border-color: var(--neon); } }
.seg { background: var(--fundo-3); border-radius: 12px; }
.seg button { font-weight: 600; border-radius: 9px; }
.seg button.ativo { background: color-mix(in srgb, var(--fundo-3) 60%, #fff 10%); box-shadow: none; }
.seg button.ativo .ic { color: var(--neon); }

/* ---------- telas de criar: painel da esquerda em blocos, como no Higgsfield ---------- */
#aba-criar.ativa, #aba-ugc.ativa, #aba-movimento.ativa, #aba-genjutsu.ativa, #aba-edicao.ativa { grid-template-columns: minmax(340px, 400px) 1fr; gap: 14px; }
.aba { padding: 16px 20px; max-width: 1680px; }
.painel { background: var(--fundo-2); border: 0; border-radius: 22px; padding: 12px; box-shadow: none; }
#aba-criar .painel, #aba-ugc .painel, #aba-movimento .painel, #aba-genjutsu .painel, #aba-edicao .painel { top: 76px; max-height: calc(100vh - 92px); padding: 12px 12px 0; }
.painel > h2 { font-size: 26px; padding: 6px 6px 2px; }
.painel > h2 small { display: block; font: 500 15px var(--ui); text-transform: none; color: var(--texto-2); margin: 4px 0 0; }
.painel .campo { background: var(--fundo-3); border-radius: 16px; padding: 14px; margin-bottom: 8px; }
.painel .campo .campo { background: none; padding: 0; }
.painel .grade-opcoes { gap: 8px; margin-bottom: 8px; }
.painel .grade-opcoes .campo { margin: 0; padding: 12px; }
.campo > label { font-weight: 600; font-size: 15px; color: var(--texto-2); }
.campo > label small { color: var(--texto-2); opacity: 0.8; }
.painel .campo textarea, .painel .campo input:not([type]), .painel .campo input[type="url"] { background: color-mix(in srgb, var(--fundo-3) 50%, #000 30%); }
.painel .campo textarea { min-height: 110px; }
.painel .chips button { background: color-mix(in srgb, var(--fundo-3) 50%, #000 30%); }
.painel .chips button.ativo { background: var(--acento-suave); }
.capa-video { border-radius: 16px; margin-bottom: 8px; aspect-ratio: 2.2 / 1; }
.capa-video-texto { padding: 30px 16px 14px; background: linear-gradient(transparent, rgb(0 0 0 / 80%)); }
.capa-video-texto b { font-size: 30px; line-height: 0.95; color: var(--neon-forte); }
.capa-video-texto span { font-size: 15px; font-weight: 500; }
.painel .seg { margin-bottom: 8px; }
.soltar { background: color-mix(in srgb, var(--fundo-3) 50%, #000 30%); border: 1.5px dashed rgb(255 255 255 / 12%); border-radius: 14px; padding: 22px 16px; }
.soltar::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--fundo-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3a0ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center / 20px no-repeat; }
.soltar:has(img:not([hidden]))::before, .soltar:has(video:not([hidden]))::before, .soltar.pequeno::before { display: none; }
.soltar:hover, .soltar.sobre { border-color: var(--neon); }
.modelo { background: color-mix(in srgb, var(--fundo-3) 50%, #000 30%); border: 1px solid transparent; }
.modelo.ativo { border-color: var(--neon); background: var(--acento-suave); box-shadow: none; }
.modelo .preco { color: var(--neon-forte); font-weight: 700; }
.briefing { background: var(--acento-suave); border: 0; }
.briefing summary { color: var(--neon-forte); }
.gerar { background: var(--fundo-2); border-top: 0; margin: 0 -12px; padding: 12px; gap: 10px; }
.gerar .custo { flex: none; }
.gerar .custo b { font: 700 16px/1.2 var(--ui); }
.gerar .custo small { font-size: 14px; }
.gerar .pri { flex: 1; font-size: 17px; padding: 15px 18px; }
.prompt-final { margin: 0 2px 10px; }
.prompt-final pre { background: var(--fundo-3); border: 0; }

/* seletor que fecha a lista de modelos e câmeras (pele.js) */
.seletor { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--texto); }
.seletor-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.seletor-txt small { font-size: 15px; color: var(--texto-2); font-weight: 600; }
.seletor-txt b { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seletor-txt b i { font-style: normal; color: var(--neon-forte); font-size: 15px; font-weight: 700; }
.seletor .ic { color: var(--texto-2); transition: rotate 0.2s; }
.recolhe.aberto > .seletor .ic { rotate: 90deg; }
.recolhe > label { display: none !important; }
.recolhe:not(.aberto) > :not(.seletor):not(.aviso) { display: none !important; }
.recolhe.aberto > .seletor { margin-bottom: 12px; }
.mais-opcoes { margin-bottom: 8px; }
.mais-opcoes > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: var(--fundo-3); font-weight: 600; color: var(--texto-2); font-size: 15px; }
.mais-opcoes > summary::-webkit-details-marker { display: none; }
.mais-opcoes > summary::after { content: "+"; font-size: 18px; line-height: 1; }
.mais-opcoes[open] > summary { margin-bottom: 8px; }
.mais-opcoes[open] > summary::after { content: "–"; }

/* ---------- área da direita ---------- */
.resultados { background: var(--fundo-2); border-radius: 22px; padding: 14px 18px 18px; min-height: calc(100vh - 92px); }
.titulo-res h2 { font-size: 22px; }
.feed, .grade { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { background: var(--fundo-3); border: 0; border-radius: 16px; box-shadow: none; }
.card:hover { transform: none; }
.midia { background: #000; }
.etiqueta { background: rgb(0 0 0 / 55%); color: #fff; font-weight: 600; }
.info p { font-weight: 500; }
.acoes button, .acoes a { font-weight: 600; }
.acoes button:hover, .acoes a:hover { background: rgb(255 255 255 / 6%); }
.acoes [data-acao="falar"] { color: var(--neon-forte); }

/* estado vazio = "MAKE VIDEOS IN ONE CLICK" */
.vazio { text-align: left; padding: 9vh 4% 30px; display: grid; gap: 14px; max-width: 1100px; }
.vazio h3 { font-size: clamp(40px, 5vw, 72px); line-height: 0.92; margin: 0; order: 1; }
.vazio p { margin: 0; max-width: 640px; font-size: 17px; order: 2; color: var(--texto-2); }
.vazio-arte { order: 3; width: 100%; height: auto; aspect-ratio: auto; margin: 24px 0 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; place-items: stretch; }
.vazio-arte::after { display: none; }
.vazio-arte .passo { border-radius: 18px; background: var(--fundo-3); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; position: relative; overflow: hidden; }
.vazio-arte .passo i { font: 900 64px/0.8 var(--cond); font-stretch: 68%; color: var(--neon); font-style: normal; }
.vazio-arte .passo b { font-size: 16px; color: var(--texto); margin-top: auto; }
.vazio-arte .passo span { font-size: 15px; color: var(--texto-2); }
.vazio-arte .vazio-logo { display: none; }

/* ---------- início ---------- */
#aba-inicio { max-width: 1680px; padding: 16px 20px 0; }
.hype { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 28px; border-radius: 22px; background: radial-gradient(60% 160% at 50% 130%, rgb(164 107 255 / 30%), transparent 60%), #121216; margin-bottom: 10px; min-height: 120px; }
.hype b { display: block; font-size: clamp(20px, 2vw, 30px); line-height: 1; color: var(--neon-forte); }
.hype span { display: block; font: 900 clamp(20px, 2vw, 30px)/1 var(--cond); font-stretch: 68%; text-transform: uppercase; color: #fff; }
.hype-cartas { display: flex; align-self: end; margin-bottom: -40px; pointer-events: none; }
.hype-cartas i { width: 84px; height: 112px; border-radius: 10px; margin: 0 -9px; background: linear-gradient(160deg, #2a1d55, #0d0b18); border: 3px solid #fff; box-shadow: 0 10px 24px rgb(0 0 0 / 50%); rotate: calc((var(--n) - 3) * 7deg); translate: 0 calc(abs(var(--n) - 3) * 8px); background-size: cover; background-position: center; }
.hype .pri { justify-self: end; }
@supports not (translate: 0 abs(1px)) { .hype-cartas i { translate: none; } }
.hype .pri { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hype { grid-template-columns: 1fr auto; } .hype-cartas { display: none; } }

.heroi { padding: 70px 0 40px; gap: 16px; }
.heroi h1 { font-size: clamp(52px, 8.6vw, 132px); line-height: 0.86; letter-spacing: -0.015em; }
.heroi-marca { color: var(--neon); }
.heroi-sub { font-weight: 500; color: var(--texto-2); }
.heroi-busca { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 18px; box-shadow: 0 0 0 6px rgb(164 107 255 / 6%); padding: 8px 8px 8px 20px; width: min(760px, 100%); }
.heroi-busca input { background: none; border: 0; }
.heroi-modelos { border: 0; background: var(--fundo-2); border-radius: 999px; padding: 6px 10px; }
.heroi-modelos button { font-weight: 600; color: var(--texto-2); }
.heroi-modelos button:hover { color: var(--texto); background: var(--fundo-3); }

.cartoes-ferramenta { gap: 10px; margin: 20px 0 60px; }
.ferramenta-arte { border: 0; border-radius: 18px; }
.ferramenta b { font-size: 26px; line-height: 1; margin-top: 12px; }
.ferramenta:hover .ferramenta-arte { transform: none; outline: 2px solid var(--neon); outline-offset: -2px; }
.selo-novo { background: var(--neon); color: #0b0b0e; font-style: normal; }

.destaque { border: 0; border-radius: 22px; background: radial-gradient(60% 120% at 0% 0%, rgb(164 107 255 / 20%), transparent 70%), var(--fundo-2); padding: 28px; }
.destaque-texto h2 { font-size: clamp(36px, 4vw, 56px); line-height: 0.9; color: #fff; }
:root[data-theme="light"] .destaque-texto h2 { color: var(--texto); }
.destaque-texto small { color: var(--neon-forte); }
.quadro-destaque { border-radius: 14px; }

.secao { margin-bottom: 64px; }
.secao-topo { align-items: center; }
.titulo-caixa { font-size: clamp(30px, 3vw, 44px); line-height: 0.95; }
.secao-topo p { font-size: 16px; }
.cartao-modelo { background: var(--fundo-2); border: 0; border-radius: 18px; }
.cartao-modelo:hover { transform: none; outline: 2px solid var(--neon); outline-offset: -2px; }
.cartao-modelo small { color: var(--neon-forte); font-weight: 700; }
.mural { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.mural-item { border-radius: 12px; }
.mural-item:hover { outline: 2px solid var(--neon); outline-offset: -2px; }

.numeros { gap: 10px; padding: 0 0 70px; display: grid; grid-template-columns: repeat(4, 1fr); }
.numeros div { flex-direction: column; gap: 4px; background: var(--fundo-2); border-radius: 18px; padding: 24px; }
.numeros b { font: 900 clamp(48px, 5vw, 76px)/0.9 var(--cond); font-stretch: 68%; color: var(--neon); }
.numeros span { font-size: 16px; font-weight: 600; }
@media (max-width: 760px) { .numeros { grid-template-columns: 1fr 1fr; } }

.faq-titulo h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.9; }
.faq-titulo em { font-family: inherit; font-style: normal; color: var(--neon); }
.faq-lista details { background: var(--fundo-2); border: 0; border-radius: 14px; }
.faq-lista summary { font-weight: 600; }

/* rodapé em bloco neon, como o lima do Higgsfield */
.rodape { background: var(--neon); color: #0b0b0e; border: 0; border-radius: 0; margin: 40px -20px 0; padding: 48px 28px 22px; }
.rodape-frase { font-size: clamp(34px, 3.6vw, 52px); line-height: 0.92; }
.rodape-frase span { color: #fff; }
.rodape-colunas b { color: rgb(11 11 14 / 60%); }
.rodape-colunas a, .rodape-colunas span { color: #0b0b0e; font-weight: 500; }
.rodape-colunas a:hover { color: #fff; }
.rodape-base { color: rgb(11 11 14 / 70%); border-top-color: rgb(11 11 14 / 18%); }

/* ---------- outras telas ---------- */
.bloco, .pers, .ed-linha, .ed-exportar { background: var(--fundo-2); border: 0; box-shadow: none; border-radius: 20px; }
.bloco > h2, .bloco .titulo-res h2 { font-size: 30px; }
.duas h2 { font-size: 30px; }
.tabela th { color: var(--texto-2); font-weight: 600; }
.comparar div { background: var(--fundo-3); border: 0; }
.comparar b { font-family: var(--ui); font-weight: 700; }
.barra-filtros .chips button.ativo { background: #fff; color: #0b0b0e; border-color: #fff; }
.ed-palco { border: 0; border-radius: 20px; background: radial-gradient(600px 300px at 50% 0%, rgb(164 107 255 / 14%), #070709 70%); }
.ed-dialogo { background: var(--fundo-2); border: 0; }
.ed-ia { background: var(--acento-suave); border: 0; }
dialog::backdrop { background: rgb(5 5 8 / 88%); }
.fechar { background: #fff; color: #0b0b0e; }

/* ---------- celular ---------- */
@media (max-width: 980px) {
  .topo { padding: 8px 14px; }
  .aba, #aba-inicio { padding: 12px; }
  .resultados { min-height: 0; }
  .vazio { padding: 30px 6px 10px; }
  .vazio-arte { grid-template-columns: 1fr; }
  .vazio-arte .passo { min-height: 0; }
  .rodape { margin: 30px -12px 0; padding: 36px 16px 18px; }
}

/* ======================================================================
   Revisão 2 (09/10 noite): o que não fazia sentido com a pele nova.
   ====================================================================== */

/* uma cor de ação só: Planos, Ganhar e Canvas também em roxo */
#aba-planos { --pp-cta: var(--neon-fundo); --pp-cta-txt: #fff; --pp-oferta: var(--neon-forte); --pp-cartao: var(--fundo-2); --pp-caixa: var(--fundo-3); }
.pp-oferta { background: radial-gradient(70% 140% at 85% 0%, rgb(164 107 255 / 38%), transparent 60%), #141418; border: 0; }
.pp-etiqueta, .pp-selo { transform: none; font-style: normal; border-radius: 6px; }
.pp-titulo-oferta span { color: var(--neon-forte) !important; }
.pp-selo-azul { background: var(--fundo-3) !important; color: var(--neon-forte) !important; transform: none !important; font-style: normal !important; }
.pp-preco.verde b, :root[data-theme="light"] .pp-preco.verde b { color: var(--neon-forte); }
.pp-cartao { border: 0; }
.pp-cartao.pp-destaque { background: radial-gradient(140% 80% at 50% 0%, rgb(164 107 255 / 18%), transparent 60%), var(--pp-cartao); box-shadow: 0 0 0 2px var(--neon); }
.pp-cta { box-shadow: inset 0 -3px 0 var(--neon-sombra); }
.pp-cta.claro { box-shadow: inset 0 -3px 0 rgb(0 0 0 / 12%); }
.pp-aviso button { background: var(--neon-fundo); color: #fff; }
body:has(#aba-planos.ativa) .faixa { display: none; } /* a oferta já é o topo da página */

#aba-ganhar, :root[data-theme="dark"] #aba-ganhar { --ap-fundo: var(--fundo); --ap-cartao: var(--fundo-2); --ap-cartao-2: var(--fundo-3); --ap-acento: var(--neon-fundo); --ap-acento-txt: #fff; --ap-linha: var(--linha); }
.ap-heroi h1 span { background: linear-gradient(100deg, var(--neon-forte), var(--neon) 60%, #7b3dff); -webkit-background-clip: text; background-clip: text; }
.ap-trilho i { background: var(--neon); }
.ap-saldo { background: radial-gradient(80% 120% at 100% 0%, rgb(164 107 255 / 45%), transparent 60%), #141418; }
.ap-saldo::after { display: none; }

#aba-canvas { --cv-fundo: var(--fundo); --cv-sel: var(--neon); --cv-video-fio: var(--neon-forte); }
.cv-btn { color: #fff; box-shadow: inset 0 -2px 0 var(--neon-sombra); }
.cv-btn.sec { box-shadow: none; }

/* rótulos dos campos: a explicação vai para a linha de baixo em vez de espremer o título */
.painel .campo > label { flex-wrap: wrap; row-gap: 2px; }
.painel .campo > label > small { flex-basis: 100%; order: 2; font-weight: 500; }
.painel .campo > label > a.link { margin-left: auto; }
.painel > .dica { padding: 0 6px 10px; margin: 0; }
.painel .campo .dica { margin-top: 10px; }

/* capa do topo do painel: título legível mesmo com vídeo claro atrás */
.capa-video-texto { padding-top: 60px; background: linear-gradient(transparent, rgb(8 8 11 / 92%) 70%); }

/* cartões: ações principais com texto na 1ª linha, ícones na 2ª */
.acoes { gap: 4px; padding: 6px 10px 12px; }
.acoes::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
.acoes [data-acao="refazer"], .acoes [data-acao="fav"], .acoes [data-acao="copiar"], .acoes [data-acao="remover"], .acoes a[download] { order: 2; font-size: 0; gap: 0; width: 32px; height: 32px; padding: 0; justify-content: center; background: rgb(255 255 255 / 5%); }
.acoes [data-acao] .ic, .acoes a .ic { width: 16px; height: 16px; }
.acoes a[download] { order: 0; font-size: 15px; width: auto; padding: 0 10px; gap: 5px; }
.acoes [data-acao="4k"] { border: 1px solid rgb(255 255 255 / 12%); }
.acoes button, .acoes a { height: 30px; }
.acoes [data-acao="remover"]:hover { color: var(--erro); }

/* galeria e personagens: estado vazio com cara de produto */
.vazio-txt { padding: 40px; border-radius: 18px; background: var(--fundo-2); text-align: center; font-size: 16px; }
#personagensVazio::before { content: "Sem personagem ainda"; display: block; font: 900 34px/1 var(--cond); font-stretch: 68%; text-transform: uppercase; color: var(--texto); margin-bottom: 8px; }
.duas > section:not(.painel) > h2 { margin-top: 6px; }

/* editor */
.ed-linha .titulo-res h2 small, .titulo-res h2 small { font: 500 15px var(--ui); text-transform: none; color: var(--texto-2); margin-left: 8px; }
.ed-ia select { min-width: 0; text-overflow: ellipsis; }
.ed-cena { border-radius: 10px; }

/* menu: com 13 abas não cabe tudo. "Novo" só na aba mais recente (se tudo é novo, nada é)
   e o menu rola de lado com um esmaecido na ponta, em vez de cortar "Planos". */
.abas .novo { display: none; }
.abas [data-aba="influencer"] .novo { display: inline-block; }
.abas { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 30px; }
.abas::-webkit-scrollbar { display: none; }
.abas button { flex: none; }
@media (max-width: 1500px) and (min-width: 901px) { .abas button { padding: 8px 9px; font-size: 16px; } .gasto-txt small { display: none; } .gasto { min-width: 90px; } }

/* celular: a pele nova não pode desfazer o layout de uma coluna */
@media (max-width: 980px) {
  .topo { flex-wrap: wrap; gap: 8px 12px; }
  .abas { order: 3; flex-basis: 100%; }
  #aba-criar.ativa, #aba-ugc.ativa, #aba-movimento.ativa, #aba-genjutsu.ativa, #aba-edicao.ativa { grid-template-columns: 1fr; }
  #aba-criar .painel, #aba-ugc .painel, #aba-movimento .painel, #aba-genjutsu .painel, #aba-edicao .painel { position: static; max-height: none; }
  .feed, .grade { grid-template-columns: repeat(2, 1fr); }
  .heroi h1 { font-size: clamp(44px, 13vw, 80px); }
}
@media (max-width: 760px) {
  .faixa p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .faixa p b + * , .faixa p { line-height: 1.3; }
  .vazio h3 { font-size: 40px; }
  .acoes [data-acao="refazer"], .acoes [data-acao="fav"], .acoes [data-acao="copiar"], .acoes [data-acao="remover"] { width: 30px; }
}

/* medidor de gasto = porta do painel do dono */
.gasto { cursor: pointer; border-radius: 10px; padding: 4px 8px; margin: -4px -8px; }
.gasto:hover { background: var(--fundo-3); }

/* capas.css */
/* Capas reais dos cartões da página inicial (Cinema, UGC, Editor), no lugar dos desenhos provisórios.
   Tudo o que aparece foi gerado na própria Nise: vídeo do Kling 3 Pro, foto do Seedream 4.5, o 1º UGC real
   e o vídeo em motion graphics feito com o HyperFrames. Carregado depois da pele para valer por cima. */
.capa-real { background: #0b0b0e; isolation: isolate; }
.capa-fundo { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) saturate(1.3) brightness(0.55); z-index: -1; }
.capa-quadro { position: absolute; top: 9%; height: 82%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 40px rgb(0 0 0 / 55%); left: 50%; transform: translateX(-50%); transition: transform 0.35s ease; }
.capa-inclinado { left: 30%; transform: translateX(-50%) rotate(-7deg) scale(0.88); opacity: 0.95; }
.ferramenta:hover .capa-quadro:not(.capa-inclinado) { transform: translateX(-50%) scale(1.03); }
.ferramenta:hover .capa-inclinado { transform: translateX(-62%) rotate(-10deg) scale(0.88); }
.capa-celular { border-radius: 16px; outline: 4px solid #111; outline-offset: -1px; }
.capa-fala { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); max-width: 70%; text-align: center; font: 800 15px/1.25 var(--fonte, sans-serif); color: #fff; background: rgb(0 0 0 / 60%); padding: 5px 9px; border-radius: 8px; backdrop-filter: blur(6px); }
.capa-cheia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capa-legenda { position: absolute; left: 10px; bottom: 9px; font: 700 14px/1 var(--fonte, sans-serif); color: rgb(255 255 255 / 85%); background: rgb(0 0 0 / 45%); padding: 4px 7px; border-radius: 6px; backdrop-filter: blur(6px); z-index: 2; }
/* trilha do editor por cima do vídeo em motion, para lembrar que é uma linha do tempo */
.capa-linha { position: absolute; left: 6%; right: 6%; bottom: 17%; height: 18px; display: flex; gap: 4px; z-index: 1; }
.capa-linha i { width: var(--w); border-radius: 5px; background: #5b3fe8; box-shadow: 0 4px 12px rgb(0 0 0 / 25%); }
.capa-linha i:nth-child(2) { background: #ff6a4d; }
.capa-linha i:nth-child(3) { background: #2bb39a; }
.capa-linha i.ia { background: repeating-linear-gradient(135deg, #8f78ff 0 6px, #a594ff 6px 12px); }
.capa-linha b { position: absolute; top: -8px; bottom: -8px; width: 2px; background: #ffc24b; box-shadow: 0 0 8px #ffc24b; animation: capa-cabeca 6s linear infinite; }
@keyframes capa-cabeca { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .capa-linha b { animation: none; left: 40%; } .capa-quadro { transition: none; } }

/* motion.css */
/* ======================================================================
   Motion e acabamento (09/10 noite): tira a "cara de IA" e dá vida à interface.
   - menos roxo chapado: o neon fica só no que é ação; superfícies com grão de filme
   - vitrine rolando com o que a Nise gerou de verdade (nada de quadro simulado)
   - entradas com máscara, revelação no scroll, troca de aba, números contando
   - foco de luz que segue o mouse nos cartões, brilho no botão principal
   Carregado depois de todos os CSS. Quem pede menos movimento não vê nada disso mexer.
   ====================================================================== */
:root {
  --mv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mv-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- grão de filme por cima de tudo (tira o "liso de render") ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9999; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: mv-grao 0.9s steps(4) infinite;
}
:root[data-theme="light"] body::after { opacity: 0.035; }
@keyframes mv-grao {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- abas: pílula que desliza até a aba ativa ---------- */
#abas { position: relative; }
.mv-pilula {
  position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; border-radius: 2px; background: var(--neon);
  transition: transform 0.45s var(--mv-ease), width 0.45s var(--mv-ease), opacity 0.2s; pointer-events: none; opacity: 0;
}
.mv-pilula.on { opacity: 1; }

/* troca de aba: a tela nova sobe de leve */
.aba.mv-entra { animation: mv-aba 0.55s var(--mv-ease) both; }
@keyframes mv-aba { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- herói ---------- */
.heroi h1 .mv-p { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.02em 0.06em; margin: -0.14em -0.02em -0.06em; }
.heroi h1 .mv-p > span { display: inline-block; transform: translateY(105%); animation: mv-sobe 0.9s var(--mv-ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes mv-sobe { to { transform: none; } }
.heroi-marca { color: var(--texto) !important; position: relative; display: inline-block; margin-right: 0.3em; }
/* Câmara Escura ao lado do NISE: play na cor do texto (::before) e a imagem roxa invertida (::after) */
.heroi-marca .mv-flor { position: absolute; right: -0.36em; top: 0.04em; width: 0.3em; height: 0.225em; }
.heroi-marca .mv-flor::before, .heroi-marca .mv-flor::after { content: ""; position: absolute; top: 0; height: 100%; width: 50%; }
.heroi-marca .mv-flor::before { left: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.heroi-marca .mv-flor::after { right: 0; top: 18.3%; height: 63.4%; background: #8A5CFF; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
@keyframes mv-gira { to { transform: rotate(360deg); } }
.heroi-sub, .heroi-busca, .heroi-modelos, .heroi .link-pilula { opacity: 0; animation: mv-aparece 0.8s var(--mv-ease) forwards; }
.heroi-sub { animation-delay: 0.55s; }
.heroi-busca { animation-delay: 0.7s; }
.heroi-modelos { animation-delay: 0.85s; }
.heroi .link-pilula { animation-delay: 0.95s; }
@keyframes mv-aparece { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* busca: sem halo roxo; uma borda que acende quando você digita */
.heroi-busca { box-shadow: none !important; transition: border-color 0.3s, background 0.3s; }
.heroi-busca:focus-within { border-color: color-mix(in srgb, var(--neon) 55%, var(--linha)); }
.heroi-busca input::placeholder { transition: opacity 0.25s; }
.heroi-busca.mv-troca input::placeholder { opacity: 0; }

/* modelos do herói viram uma esteira contínua */
.heroi-modelos.mv-esteira {
  display: block; width: min(860px, 100%); overflow: hidden; background: none; padding: 4px 0; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mv-trilho { display: flex; width: max-content; gap: 6px; animation: mv-rola var(--dur, 40s) linear infinite; }
.mv-esteira:hover .mv-trilho { animation-play-state: paused; }
.mv-trilho > button { flex: none; background: var(--fundo-2); border-radius: 999px; padding: 7px 14px; }
@keyframes mv-rola { to { transform: translateX(-50%); } }

/* ---------- vitrine: o que saiu da Nise, rolando ---------- */
.mv-vitrine { position: relative; margin: 6px -20px 34px; overflow: hidden; padding: 10px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  opacity: 0; animation: mv-aparece 1s var(--mv-ease) 1.05s forwards; }
.mv-vitrine .mv-trilho { gap: 12px; --dur: 70s; }
.mv-vitrine:hover .mv-trilho { animation-play-state: paused; }
/* todos iguais: mesma largura, 9:16, alinhados, sem inclinação */
.mv-vitrine .mv-trilho { align-items: stretch; }
.mv-peca { position: relative; flex: none; width: clamp(150px, 15vw, 200px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--fundo-2); cursor: zoom-in;
  transition: transform 0.5s var(--mv-ease); }
.mv-peca::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 55%)); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.mv-peca:hover { transform: translateY(-6px); z-index: 2; }
.mv-peca:hover::after { opacity: 1; }
.mv-peca img, .mv-peca video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.mv-peca span { z-index: 1; position: absolute; left: 8px; bottom: 8px; font-size: 14px; font-weight: 600; color: #fff; background: rgb(0 0 0 / 50%); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: 0.3s var(--mv-ease); }
.mv-peca:hover span { opacity: 1; transform: none; }
.mv-vitrine-rotulo { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 15px; font-weight: 600; color: var(--texto-2); margin: 0 0 10px; letter-spacing: 0.02em; }
.mv-vitrine-rotulo i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: mv-pisca 1.6s ease-in-out infinite; }
@keyframes mv-pisca { 50% { opacity: 0.25; } }

/* ---------- revelação no scroll ---------- */
.mv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--mv-ease), transform 0.8s var(--mv-ease); transition-delay: calc(var(--d, 0) * 60ms); }
.mv.dentro { opacity: 1; transform: none; }
.titulo-caixa.mv, .destaque-texto h2.mv, .faq-titulo h2.mv { transform: translateY(45%) skewY(3deg); filter: blur(6px); transform-origin: left; transition-property: opacity, transform, filter; transition-duration: 1s; }
.titulo-caixa.mv.dentro, .destaque-texto h2.mv.dentro, .faq-titulo h2.mv.dentro { filter: none; transform: none; }

/* ---------- cartões: luz que segue o mouse, sem contorno roxo ---------- */
.ferramenta-arte, .cartao-modelo, .quadro-destaque, .mural-item { --mx: 50%; --my: 50%; }
.ferramenta-arte::after, .cartao-modelo::after, .quadro-destaque::after, .mural-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / 13%), transparent 45%);
  z-index: 3;
}
.cartao-modelo, .quadro-destaque { position: relative; }
.ferramenta:hover .ferramenta-arte::after, .cartao-modelo:hover::after, .quadro-destaque:hover::after, .mural-item:hover::after { opacity: 1; }
.ferramenta:hover .ferramenta-arte, .cartao-modelo:hover, .mural-item:hover { outline: 0 !important; }
.ferramenta-arte { transition: transform 0.6s var(--mv-ease) !important; }
.ferramenta:hover .ferramenta-arte { transform: translateY(-4px) !important; }
.ferramenta-arte video, .ferramenta-arte img, .mural-item video, .mural-item img, .quadro-destaque video, .quadro-destaque img { transition: transform 1.2s var(--mv-ease); }
.ferramenta:hover .ferramenta-arte .capa-cheia, .mural-item:hover > video, .mural-item:hover > img, .quadro-destaque:hover video, .quadro-destaque:hover img { transform: scale(1.05); }
.cartao-modelo { transition: transform 0.5s var(--mv-ease), background 0.3s !important; }
.cartao-modelo:hover { transform: translateY(-4px) !important; background: var(--fundo-3); }

/* mural: entra em cascata */
.mural-item.mv { transform: translateY(30px) scale(0.97); }
.mural-item.mv.dentro { transform: none; }

/* ---------- botão principal: brilho que passa e aperto ao clicar ---------- */
.pri { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.18s var(--mv-ease), filter 0.2s; }
.pri::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 30%) 50%, transparent 65%); transform: translateX(-120%); }
.pri:hover::before { transition: transform 0.75s var(--mv-ease); transform: translateX(120%); }
.pri:active, .sec:active, .cartao-modelo:active, .ferramenta:active { transform: scale(0.97) !important; }

/* ---------- números: sem caixinha de template, régua fina e contagem ---------- */
.numeros { gap: 0 !important; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 0 !important; margin-bottom: 70px; }
.numeros div { background: none !important; border-radius: 0 !important; padding: 28px 22px !important; border-left: 1px solid var(--linha); }
.numeros div:first-child { border-left: 0; }
.numeros b { color: var(--texto) !important; font-variant-numeric: tabular-nums; }
.numeros div:nth-child(3) b { color: var(--neon) !important; }
@media (max-width: 760px) {
  .numeros div:nth-child(3) { border-left: 0; }
  .numeros div:nth-child(n + 3) { border-top: 1px solid var(--linha); }
}

/* ---------- perguntas: abre e fecha deslizando ---------- */
.faq details > p { animation: mv-abre 0.45s var(--mv-ease); }
@keyframes mv-abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color 0.2s; }
.faq summary:hover { color: var(--neon-forte); }

/* ---------- rodapé: escuro, com a frase grande; o roxo só na ênfase ---------- */
.rodape { background: var(--fundo-2) !important; color: var(--texto) !important; position: relative; overflow: hidden; }
.rodape-frase span { color: var(--neon) !important; }
.rodape a, .rodape span, .rodape b { color: inherit; }
.rodape-colunas a, .rodape-colunas span, .rodape-base { color: var(--texto-2) !important; }
.rodape-colunas b { color: var(--texto) !important; }
.rodape-colunas a { transition: color 0.2s, transform 0.3s var(--mv-ease); display: inline-block; }
.rodape-colunas a:hover { color: var(--texto) !important; transform: translateX(3px); }
.mv-marca-gigante { font: 900 clamp(90px, 17vw, 250px)/0.8 var(--cond); font-stretch: 68%; letter-spacing: -0.03em; text-transform: lowercase;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--texto) 16%, transparent); margin: 30px 0 -0.12em; user-select: none; white-space: nowrap; }

/* ---------- quem pede menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  body::after { animation: none; }
  .mv { opacity: 1; transform: none; clip-path: none; }
  .heroi h1 .mv-p > span { transform: none; }
}

/* influencer.css */
/* Criador de influenciador (formato do "AI Influencer" do Higgsfield): lista à esquerda, prévia no meio,
   painel de escolhas à direita com fotos, amostras de cor e íris desenhadas. */
#aba-influencer.ativa { display: grid; grid-template-columns: 170px minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
#aba-influencer { --if-caixa: var(--fundo-2); --if-borda: var(--linha); --if-sel: var(--acento); }

/* ---------- lista ---------- */
.if-lista { position: sticky; top: 84px; display: grid; gap: 10px; padding: 10px; border: 1px solid var(--if-borda); border-radius: 18px; background: var(--if-caixa); max-height: calc(100vh - 110px); overflow: auto; }
.if-item { position: relative; border: 2px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; padding: 0; cursor: pointer; background: var(--fundo-3); color: var(--texto); }
.if-item.ativo { border-color: var(--if-sel); }
.if-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.if-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / 75%)); text-align: left; }
.if-novo { display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(160deg, var(--fundo-3), var(--fundo-2)); font-weight: 800; font-size: 15px; }
.if-novo i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgb(255 255 255 / 10%); font-size: 18px; }

/* ---------- prévia ---------- */
.if-centro { display: grid; justify-items: center; gap: 14px; padding-top: 4px; }
.if-previa { position: relative; width: min(100%, 380px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--if-caixa); border: 1px solid var(--if-borda); display: grid; place-items: center; text-align: center; color: var(--texto-2); }
.if-previa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.if-previa .if-vazio { display: grid; gap: 12px; justify-items: center; padding: 30px; font-size: 16px; line-height: 1.45; }
.if-previa .if-vazio i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--if-borda); display: grid; place-items: center; font-style: normal; }
.if-previa .if-gerando { display: grid; gap: 10px; justify-items: center; }
.if-previa .if-gerando b { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--if-borda); border-top-color: var(--if-sel); animation: if-gira 0.9s linear infinite; }
@keyframes if-gira { to { transform: rotate(360deg); } }
.if-acoes { width: min(100%, 380px); display: grid; gap: 8px; }
.if-gerar { width: 100%; border: 0; cursor: pointer; border-radius: 14px; padding: 15px; font-weight: 900; font-size: 17px; background: var(--if-sel); color: var(--acento-txt, #fff); display: flex; gap: 8px; align-items: center; justify-content: center; }
.if-gerar:disabled { opacity: 0.55; cursor: default; }
.if-linha { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.if-linha input { min-width: 0; }
.if-secundario { border: 1px solid var(--if-borda); background: var(--if-caixa); color: var(--texto); border-radius: 12px; padding: 11px 14px; font-weight: 800; cursor: pointer; }
.if-msg { font-size: 15px; color: var(--texto-2); text-align: center; min-height: 1em; margin: 0; }
.if-msg.erro { color: var(--erro); }
.if-msg.ok { color: var(--ok); }
.if-aviso { font-size: 15px; color: var(--texto-2); text-align: center; max-width: 380px; margin: 0; }

/* ---------- painel de escolhas ---------- */
.if-painel { border: 1px solid var(--if-borda); border-radius: 18px; background: var(--if-caixa); padding: 6px 14px 16px; max-height: calc(100vh - 110px); overflow: auto; position: sticky; top: 84px; }
.if-secao { border-bottom: 1px solid var(--if-borda); padding: 12px 0; }
.if-secao:last-child { border-bottom: 0; }
.if-secao > button.if-titulo { width: 100%; border: 0; background: none; color: var(--texto-2); display: flex; justify-content: space-between; align-items: center; padding: 2px 0 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.if-secao > button.if-titulo::after { content: "⌃"; transition: transform 0.2s; }
.if-secao.fechada > button.if-titulo::after { transform: rotate(180deg); }
.if-secao.fechada .if-grade { display: none; }
.if-grade { display: grid; gap: 8px; }
.if-g2 { grid-template-columns: 1fr 1fr; }
.if-g3 { grid-template-columns: repeat(3, 1fr); }
.if-g5 { grid-template-columns: repeat(5, 1fr); }
.if-op { position: relative; border: 2px solid transparent; background: var(--fundo-3); color: var(--texto); border-radius: 12px; padding: 12px 8px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; }
.if-op.ativo { border-color: var(--if-sel); background: color-mix(in srgb, var(--if-sel) 12%, var(--fundo-3)); }
.if-op.foto { padding: 0; aspect-ratio: 1; overflow: hidden; }
.if-op.foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.if-op.foto span { position: absolute; left: 6px; bottom: 5px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 80%); text-align: left; }
/* amostras de cor: pele com luz suave, cabelo com fios e brilho; nome aparece no hover e quando escolhido */
.if-op.amostra { padding: 0; aspect-ratio: 1; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }
.if-op.amostra.pele { background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 22%), transparent 55%), linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 18%)), var(--cor); }
.if-op.amostra.cabelo { background: repeating-linear-gradient(104deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 3px, rgb(0 0 0 / 6%) 3px 4px, transparent 4px 6px), linear-gradient(160deg, transparent 18%, rgb(255 255 255 / 26%) 34%, transparent 50%), linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 30%)), var(--cor); }
.if-op.amostra span { position: absolute; inset: auto 0 0; padding: 12px 4px 4px; font-size: 14px; font-weight: 800; line-height: 1.1; color: #fff; text-align: center; background: linear-gradient(transparent, rgb(0 0 0 / 70%)); opacity: 0; transition: opacity 0.15s; }
.if-op.amostra:hover span, .if-op.amostra:focus-visible span, .if-op.amostra.ativo span { opacity: 1; }
.if-op.amostra.ativo::after, .if-op.foto.ativo::after, .if-op.olho.ativo::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--if-sel); color: #fff; font-size: 14px; display: grid; place-items: center; z-index: 2; }
/* olhos: íris em close (fibras, colarinho, anel escuro, pupila e reflexo), nome embaixo, fora do desenho */
.if-op.olho { padding: 10px 3px 8px; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 9px; }
.if-op.olho .iris { position: relative; width: min(52px, 80%); aspect-ratio: 1; border-radius: 50%; background:
  radial-gradient(circle at 35% 30%, rgb(255 255 255 / 92%) 0 5.5%, transparent 7%),
  radial-gradient(circle at 62% 66%, rgb(255 255 255 / 30%) 0 3%, transparent 4.5%),
  radial-gradient(circle, #040404 0 19%, transparent 21%),
  repeating-conic-gradient(rgb(255 255 255 / 11%) 0 1.2deg, transparent 1.2deg 3.6deg, rgb(0 0 0 / 16%) 3.6deg 4.6deg, transparent 4.6deg 7deg),
  radial-gradient(circle, var(--i1) 20%, var(--i2) 46%, var(--i3) 80%, #050505 94%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 4px 12px rgb(0 0 0 / 35%), inset 0 -5px 8px rgb(0 0 0 / 35%); transition: transform 0.2s; }
.if-op.olho:hover .iris, .if-op.olho.ativo .iris { transform: scale(1.06); }
.if-op.olho span { font-size: 14px; font-weight: 700; color: var(--texto); line-height: 1.2; }
.if-op.olho span small { display: block; font-size: 14px; font-weight: 600; color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.if-op.genero { text-align: left; padding: 12px; min-height: 70px; display: flex; justify-content: space-between; align-items: flex-end; }
.if-op.genero small { font-size: 26px; line-height: 1; color: var(--texto-2); }
.if-op.chip { padding: 8px 6px; font-size: 15px; }
.if-op.chip small { display: block; font-size: 14px; color: var(--texto-2); font-weight: 600; }
.if-detalhes { width: 100%; min-height: 70px; resize: vertical; font: inherit; font-size: 15px; color: var(--texto); background: var(--fundo-3); border: 1px solid var(--if-borda); border-radius: 12px; padding: 10px; }

@media (max-width: 1100px) {
  #aba-influencer.ativa { grid-template-columns: minmax(0, 1fr) 360px; }
  .if-lista { grid-column: 1 / -1; position: static; display: flex; overflow-x: auto; max-height: none; }
  .if-lista .if-item { flex: 0 0 110px; }
}
@media (max-width: 760px) {
  #aba-influencer.ativa { grid-template-columns: 1fr; }
  .if-painel { position: static; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .if-previa .if-gerando b { animation: none; } }

/* chat.css */
/* Chat da Nise no formato do Chat do Higgsfield: barra lateral de conversas, saudação grande no centro,
   atalhos em pílula e a caixa de pedido presa embaixo, com anexar, motor e modo Manual/Automático. */
#aba-chat.ativa { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; height: calc(100dvh - var(--topo-h, 67px)); padding-top: 14px; padding-bottom: 14px; }
#aba-chat { --ch-caixa: var(--fundo-2); --ch-borda: var(--linha); }

.ch-lado { border: 1px solid var(--ch-borda); background: var(--ch-caixa); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ch-lado > button, .ch-busca { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 16px; color: var(--texto); background: none; cursor: pointer; text-align: left; }
.ch-lado > button.ch-novo { background: var(--fundo-3); }
.ch-lado .ch-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--ch-borda); font-size: 16px; flex: none; }
.ch-busca { padding: 4px 6px; }
.ch-busca input { flex: 1; min-width: 0; border: 0; background: none; color: var(--texto); font: inherit; font-size: 16px; outline: none; }
.ch-rotulo { font-size: 15px; color: var(--texto-2); padding: 12px 12px 4px; }
.ch-lista { overflow: auto; display: grid; gap: 2px; align-content: start; min-height: 0; flex: 1; }
.ch-lista button { border: 0; background: none; color: var(--texto-2); text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-lista button:hover, .ch-lista button.ativo { background: var(--fundo-3); color: var(--texto); }
.ch-sem { text-align: center; color: var(--texto-2); font-size: 15px; padding: 26px 8px; display: grid; gap: 4px; justify-items: center; }
.ch-sem b { color: var(--texto); font-size: 16px; }
.ch-sem i { font-style: normal; width: 64px; height: 56px; border-radius: 12px; background: var(--fundo-3); display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }

.ch-meio { display: flex; flex-direction: column; min-height: 0; position: relative; }
.ch-rolagem { flex: 1; overflow: auto; padding: 10px 6px 20px; display: flex; flex-direction: column; }
.ch-boas { margin: auto; text-align: center; display: grid; gap: 22px; justify-items: center; padding: 20px; }
.ch-boas h1 { margin: 0; font-family: "Archivo", var(--fonte, sans-serif); font-stretch: 72%; font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.ch-boas h1 span { color: var(--acento); }
.ch-sugestoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }
.ch-sugestoes button { border: 1px solid var(--ch-borda); background: var(--ch-caixa); color: var(--texto); border-radius: 999px; padding: 11px 18px; font-size: 16px; cursor: pointer; }
.ch-sugestoes button:hover { border-color: var(--acento); }

.ch-msgs { width: min(100%, 820px); margin: 0 auto; display: grid; gap: 16px; }
.ch-msg { display: grid; gap: 8px; max-width: 86%; }
.ch-msg.eu { justify-self: end; justify-items: end; }
.ch-msg.eu .ch-bolha { background: var(--acento); color: var(--acento-txt, #fff); border-bottom-right-radius: 6px; }
.ch-msg.nise .ch-bolha { background: var(--ch-caixa); border: 1px solid var(--ch-borda); border-bottom-left-radius: 6px; }
.ch-bolha { padding: 11px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.ch-motor { font-size: 14px; color: var(--texto-2); }
.ch-plano { border: 1px solid var(--ch-borda); background: var(--ch-caixa); border-radius: 18px; padding: 14px; display: grid; gap: 10px; min-width: min(460px, 80vw); }
.ch-plano h4 { margin: 0; font-size: 16px; display: flex; justify-content: space-between; gap: 10px; }
.ch-plano h4 small { color: var(--texto-2); font-weight: 600; }
.ch-passos { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ch-passos li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; background: var(--fundo-3); border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.ch-passos li i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ch-caixa); font-size: 15px; }
.ch-passos li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-passos li small { color: var(--texto-2); }
.ch-plano-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-btn { border: 0; cursor: pointer; border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 16px; background: var(--acento); color: var(--acento-txt, #fff); }
.ch-btn.sec { background: var(--fundo-3); color: var(--texto); }
.ch-pensando { color: var(--texto-2); font-size: 16px; display: flex; gap: 6px; align-items: center; }
.ch-pensando i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ch-pulso 1s infinite; }
.ch-pensando i:nth-child(2) { animation-delay: 0.15s; }
.ch-pensando i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ch-pulso { 50% { opacity: 0.25; } }

/* Caixa de pedido no formato do Marketing Studio do Higgsfield: texto e opções à esquerda,
   espaços fixos de Avatar e Produto e o botão Criar à direita. Vidro fosco, sem bordas pesadas. */
.ch-caixa-pedido { position: relative; width: min(100%, 940px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; border-radius: 26px; background: var(--vidro-fundo); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--vidro-borda); box-shadow: var(--vidro-sombra); }
.ch-principal { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 4px 2px 10px; }
.ch-caixa-pedido textarea { flex: 1; width: 100%; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--texto); font: inherit; font-size: 16px; line-height: 1.45; resize: none; outline: none; min-height: 48px; max-height: 180px; padding: 2px 4px !important; }
.ch-caixa-pedido textarea::placeholder { color: var(--texto-2); }
.ch-previa-anexo { display: flex; gap: 8px; align-items: center; }
.ch-previa-anexo img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.ch-previa-anexo button { border: 0; background: var(--vidro-item); color: var(--texto); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 15px; }
.ch-barra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-barra .ch-redondo { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--vidro-item); color: var(--texto); cursor: pointer; display: grid; place-items: center; }
.ch-barra .ch-redondo .ic { width: 17px; height: 17px; }
.ch-barra select { border: 0 !important; background-color: var(--vidro-item) !important; color: var(--texto); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 30px 9px 12px !important; border-radius: 12px !important; cursor: pointer; }
.ch-barra select:hover { background-color: rgb(255 255 255 / 12%) !important; }
:root[data-theme="light"] .ch-barra select:hover { background-color: rgb(0 0 0 / 8%) !important; }
.ch-barra .ch-redondo:hover { background: rgb(255 255 255 / 12%); }

.ch-slots { display: flex; gap: 8px; }
.ch-slot { position: relative; width: 96px; min-height: 112px; height: 100%; border: 1px solid var(--vidro-borda); border-radius: 18px; background: var(--vidro-item) center / cover no-repeat; color: var(--texto); cursor: pointer; padding: 0; overflow: hidden; transition: transform .15s, border-color .15s; }
.ch-slot:hover { transform: translateY(-2px); border-color: rgb(164 107 255 / 45%); }
.ch-slot.aberto { border-color: var(--neon); box-shadow: 0 0 0 3px var(--acento-suave); }
.ch-slot > i { position: absolute; top: 9px; left: 9px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .75; display: grid; place-items: center; }
.ch-slot > i .ic { width: 14px; height: 14px; }
.ch-slot-nome { position: absolute; left: 10px; bottom: 9px; font: 800 14px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.ch-slot.cheio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 70%)); pointer-events: none; }
.ch-slot.cheio .ch-slot-nome { z-index: 1; color: #fff; }
.ch-slot-x { position: absolute; z-index: 2; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / 55%); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ch-slot-x .ic { width: 12px; height: 12px; }

.ch-enviar { width: 116px; min-height: 112px; border: 0; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(160deg, #b48bff, var(--neon-fundo, #8a4dff) 60%); color: #fff; font: 800 16px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 30px rgb(138 77 255 / 30%); transition: filter .15s, transform .15s; }
.ch-enviar .ic { width: 18px; height: 18px; transform: rotate(-90deg); }
.ch-enviar:hover { filter: brightness(1.08); }
.ch-enviar:active { transform: scale(.98); }
.ch-enviar:disabled { opacity: 0.45; cursor: default; filter: none; transform: none; }

/* dentro da caixa de vidro o desfoque não pega o fundo da página, então o menu fica quase opaco */
.ch-pop.sel-menu { position: absolute; background: color-mix(in srgb, var(--fundo-2) 94%, transparent); bottom: calc(100% + 10px); top: auto; width: 320px; max-height: min(400px, calc(100dvh - var(--topo-h, 67px) - 190px)); z-index: 60; animation-name: sel-entra-cima; }
.sel-item.ch-pop-item { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 12px 8px 8px; width: 100%; border: 0; background: none; color: var(--texto); text-align: left; font: inherit; }
.ch-pop-item:hover { background: var(--vidro-item); }
.ch-pop-item > span { display: grid; gap: 2px; min-width: 0; }
.ch-pop-item b, .ch-pop-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-pop-item b { font-weight: 600; }
.ch-pop-item small { color: var(--texto-2); font-size: 15px; }
.ch-pop-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--vidro-item); display: grid; place-items: center; object-fit: cover; font-style: normal; }
.ch-pop-ic .ic { width: 18px; height: 18px; }

.ch-anexos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ch-anexo { position: relative; margin: 0; width: 110px; border-radius: 14px; overflow: hidden; }
.ch-anexo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.ch-anexo figcaption { position: absolute; left: 8px; bottom: 7px; font: 800 14px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 60%); }
.ch-aviso { width: min(100%, 860px); margin: 6px auto 0; font-size: 15px; color: var(--texto-2); text-align: center; }

@media (max-width: 860px) {
  #aba-chat.ativa { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 110px); }
  .ch-lado { max-height: 180px; }
  .ch-msg { max-width: 100%; }
  .ch-caixa-pedido { grid-template-columns: 1fr auto; }
  .ch-principal { grid-column: 1 / -1; }
  .ch-slot { width: 76px; min-height: 84px; }
  .ch-enviar { width: 96px; min-height: 84px; }
  .ch-pop.sel-menu { width: min(320px, calc(100vw - 40px)); }
}
/* resposta aos pedaços: cada pedaço novo entra esmaecendo; botão Criar vira Parar; erro com Tentar de novo */
.ch-surge { animation: ch-surgir .45s ease-out both; }
@keyframes ch-surgir { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.ch-enviar.parar { background: var(--ch-caixa); color: var(--texto); border: 1px solid var(--ch-borda); box-shadow: none; }
.ch-quadrado { width: 14px; height: 14px; border-radius: 3px; background: currentColor; }
.ch-retentar { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .ch-pensando i, .ch-surge { animation: none; } }

/* primeiro-video.css */
/* "Seu primeiro vídeo em 3 passos" (public/primeiro-video.js) e os exemplos do estado vazio do Início.
   Usa os tokens do styles.css, então segue o tema claro/escuro do estúdio. */
.guia { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--fundo-2); color: var(--texto); padding: 24px; box-shadow: var(--sombra); }
.guia::backdrop { background: rgb(10 10 11 / 55%); }
.guia h2 { font-size: 22px; margin: 6px 0 6px; }
.guia-sub { color: var(--texto-2); margin-bottom: 16px; }
.guia-pago { background: var(--acento-suave); color: var(--acento); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 16px; }
.guia-passos { list-style: none; display: flex; gap: 6px; margin: 0 0 14px; padding: 0; }
.guia-passos li { flex: 1; height: 4px; border-radius: 4px; background: var(--linha); }
.guia-passos li.feito { background: var(--acento); }
.guia-opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.guia-op { border: 1px solid var(--linha); background: var(--fundo); color: var(--texto); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.guia-op.ativo, .guia-ator.ativo { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.guia-campo { display: grid; gap: 6px; font-weight: 600; margin-bottom: 8px; }
.guia-campo input, .guia textarea { width: 100%; border: 1px solid var(--linha); border-radius: 12px; padding: 12px; font: inherit; background: var(--fundo); color: var(--texto); }
.guia-atores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.guia-ator { border: 1px solid var(--linha); background: var(--fundo); color: var(--texto); border-radius: 14px; padding: 0 0 8px; overflow: hidden; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; }
.guia-ator img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; margin-bottom: 6px; }
.guia-nota { color: var(--texto-2); font-size: 16px; margin: 10px 0 0; }
.guia-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.guia-acoes button { min-height: 44px; }
.guia button:focus-visible, .exemplo-card:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
@media (max-width: 480px) { .guia-atores { grid-template-columns: repeat(2, 1fr); } .guia-acoes { flex-direction: column-reverse; } .guia-acoes button { width: 100%; } }

/* o botão de gerar pisca de leve quando o guia termina */
.guia-destaque { animation: guia-pulso 1.2s ease-in-out 4; }
@keyframes guia-pulso { 50% { box-shadow: 0 0 0 8px var(--acento-suave); } }
@media (prefers-reduced-motion: reduce) { .guia-destaque { animation: none; box-shadow: 0 0 0 4px var(--acento-suave); } }

/* estado vazio do Início: 3 exemplos que viram receita */
.exemplos-vazio { text-align: center; }
.exemplos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; width: 100%; }
.exemplo-card { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); border-radius: 16px; overflow: hidden; padding: 0; cursor: pointer; font: inherit; transition: transform 0.15s; }
.exemplo-card:hover { transform: translateY(-2px); }
.exemplo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exemplo-card span { display: grid; gap: 2px; padding: 10px 12px 12px; }
.exemplo-card small { color: var(--texto-2); }
@media (max-width: 640px) { .exemplos-grade { grid-template-columns: 1fr; } .exemplo-card { flex-direction: row; } .exemplo-card img { width: 96px; aspect-ratio: 1; } }

/* legenda.css */
/* Legenda grátis: diálogo com a prévia ao vivo (a mesma conta do .ass, em cqmin) e os trechos editáveis. */
.dlg-legenda { width: min(980px, 96vw); max-height: 94vh; overflow: auto; }
.dlg-legenda .gerar { position: static; margin: 14px 0 0; border-radius: 14px; border: 1px solid var(--linha); }
.leg-gratis { font: 800 14px/1 "Manrope", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acento); border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; vertical-align: middle; margin-left: 6px; }
.leg-corpo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.leg-previa { position: relative; width: calc(60vh * var(--prop, 0.5625)); max-width: 46vw; aspect-ratio: var(--prop, 0.5625); container-type: size; border-radius: 14px; overflow: hidden; background: #000; }
.leg-previa video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.leg-sobre { position: absolute; left: 8%; right: 8%; text-align: center; pointer-events: none; font-family: "Montserrat", "Manrope", sans-serif; font-weight: 800; line-height: 1.15; font-size: 7.2cqmin; color: #fff; }
.leg-sobre.baixo { bottom: 27%; }
.leg-sobre.meio { top: 50%; transform: translateY(-50%); }
.leg-sobre.topo { top: 13%; }
.leg-sobre .w { display: inline-block; margin: 0 0.14em; transition: transform 0.08s; }
.leg-sobre.capcut, .leg-sobre.uma, .leg-sobre.simples { -webkit-text-stroke: 0.55cqmin #000; paint-order: stroke fill; text-shadow: 0 0.3cqmin 0 rgba(0, 0, 0, 0.6); }
.leg-sobre.capcut .w.on { color: #ffe626; transform: scale(1.08); }
.leg-sobre.uma { color: #ffe626; font-size: 9.6cqmin; }
.leg-sobre.nise { -webkit-text-stroke: 0.55cqmin #15112e; paint-order: stroke fill; }
.leg-sobre.nise .w.on { color: #b794ff; transform: scale(1.08); }
.leg-sobre.caixa span.linha { background: #fff; color: #141414; padding: 0.12em 0.4em; border-radius: 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.leg-sobre.caixa .w.on { color: #5b3fe8; }
.leg-sobre.maiusculas { text-transform: uppercase; }
.leg-sobre .em { display: block; font-size: 1.8em; line-height: 1.05; margin: 0.1em 0; -webkit-text-stroke: 0; text-shadow: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; animation: leg-emoji 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes leg-emoji { from { transform: scale(0.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .leg-sobre .em { animation: none; } }
.leg-lado { min-width: 0; }
.leg-lado select { width: 100%; }
.leg-trechos { display: flex; flex-wrap: wrap; gap: 6px; max-height: 36vh; overflow: auto; padding: 8px; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); }
.leg-trechos .vazio { color: var(--texto-2); font-size: 15px; padding: 6px; }
.leg-trecho { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--linha); border-radius: 10px; padding: 2px 4px 2px 8px; background: var(--fundo-2); }
.leg-trecho.agora { border-color: var(--acento); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acento) 25%, transparent); }
.leg-trecho time { font: 600 14px/1 "Manrope", sans-serif; color: var(--texto-2); cursor: pointer; }
.leg-trecho input { border: 0; background: transparent; color: var(--texto); font: 600 14px/1.3 "Manrope", sans-serif; padding: 4px 2px; min-width: 3ch; field-sizing: content; }
.leg-trecho input:focus { outline: none; }
.leg-trecho input.leg-emoji { width: 2.4ch; min-width: 2.4ch; text-align: center; font-size: 16px; padding: 2px; border-radius: 6px; background: var(--fundo); field-sizing: fixed; }
.leg-carregando { display: flex; align-items: center; gap: 8px; color: var(--texto-2); font-size: 15px; padding: 6px; }
@media (max-width: 720px) {
  .leg-corpo { grid-template-columns: 1fr; }
  .leg-previa { margin: 0 auto; width: calc(48vh * var(--prop, 0.5625)); max-width: 100%; }
}
.leg-carregando .girando { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--linha); border-top-color: var(--acento); animation: leg-gira 0.8s linear infinite; }
@keyframes leg-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .leg-carregando .girando { animation: none; } }

/* auto.css */
/* Editor automático: diálogo em 3 passos (bruto → revisar cortes → pronto), prévia à esquerda. */
.dlg-auto { width: min(1080px, 96vw); max-height: 94vh; overflow: auto; }
.dlg-auto .gerar { position: static; margin: 14px 0 0; border-radius: 14px; border: 1px solid var(--linha); }
.auto-passos { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: passo; }
.auto-passos li { counter-increment: passo; flex: 1; font: 700 15px/1 "Manrope", sans-serif; color: var(--texto-2); padding: 9px 10px; border-radius: 10px; border: 1px solid var(--linha); }
.auto-passos li::before { content: counter(passo) " · "; }
.auto-passos li.on { color: var(--texto); border-color: var(--acento); background: color-mix(in srgb, var(--acento) 10%, transparent); }
.auto-corpo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.auto-previa { position: sticky; top: 0; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 9 / 12; display: grid; place-items: center; }
.auto-previa video { width: 100%; height: 100%; object-fit: contain; transition: transform 0.12s; transform-origin: 50% 40%; }
.auto-previa video.zoom { transform: scale(1.15); }
.auto-lado { min-width: 0; }
.auto-solta { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 1.5px dashed var(--linha); border-radius: 14px; cursor: pointer; background: var(--fundo); transition: border-color 0.15s, background 0.15s; }
.auto-solta:hover, .auto-solta.sobre { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 7%, var(--fundo)); }
.auto-solta .ic { width: 28px; height: 28px; color: var(--acento); }
.auto-solta span { font-size: 15px; color: var(--texto-2); max-width: 40ch; }
#autoBarra { width: 100%; margin-top: 10px; accent-color: var(--acento); }
.auto-fonte:not(:empty) { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--linha); border-radius: 11px; font-size: 15px; }
.auto-fonte b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-fonte small { color: var(--texto-2); }
.auto-trilha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.auto-trilha #autoTrilhaNome { color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.auto-resumo { font: 600 16px/1.3 "Manrope", sans-serif; padding: 10px 12px; border-radius: 12px; background: var(--fundo); border: 1px solid var(--linha); }
.auto-resumo .ac { color: var(--acento); }
.auto-resumo small { display: block; color: var(--texto-2); font-size: 15px; margin-top: 3px; }
.auto-frases { display: grid; gap: 4px; max-height: 44vh; overflow: auto; padding: 6px; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); }
.auto-frase { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; }
.auto-frase.agora { border-color: var(--acento); }
.auto-frase time { font: 600 14px/1 "Manrope", sans-serif; color: var(--texto-2); cursor: pointer; }
.auto-frase p { margin: 0; font-size: 16px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.auto-frase p input { flex: 1 1 18ch; min-width: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--texto); font: 500 16px/1.35 "Manrope", sans-serif; padding: 3px 6px; }
.auto-frase p input:hover, .auto-frase p input:focus { border-color: var(--linha); outline: none; background: var(--fundo-2); }
.auto-frase.fora p input { color: var(--texto-2); text-decoration: line-through; }
.auto-frase p em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--texto-2); border: 1px solid var(--linha); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.auto-manter input { accent-color: var(--acento); width: 16px; height: 16px; }
.auto-zoom { font: 700 14px/1 "Manrope", sans-serif; border: 1px solid var(--linha); background: transparent; color: var(--texto-2); border-radius: 999px; padding: 5px 9px; cursor: pointer; }
.auto-zoom.on { border-color: var(--acento); color: var(--acento); }
.auto-zoom:disabled { opacity: 0.35; cursor: default; }
.auto-feito video { width: 100%; max-height: 56vh; border-radius: 14px; background: #000; }
.auto-feito a.sec { text-decoration: none; color: var(--texto); }
.dlg-auto .linha-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 760px) {
  .auto-corpo { grid-template-columns: 1fr; }
  .auto-previa { position: static; aspect-ratio: 16 / 10; }
}
/* música, destaques e imagens da revisão */
.auto-trilha select { flex: 1 1 22ch; min-width: 0; }
.auto-credito { font-size: 15px; color: var(--texto-2); margin: 6px 0 0; line-height: 1.4; }
.auto-destaques { display: flex; flex-wrap: wrap; gap: 6px; }
.auto-destaque { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--linha); border-radius: 10px; padding: 3px 4px 3px 8px; background: var(--fundo); }
.auto-destaque time, .auto-imagem time { font: 600 14px/1 "Manrope", sans-serif; color: var(--texto-2); cursor: pointer; }
.auto-destaque input { border: 0; background: transparent; color: var(--texto); font: 800 15px/1.3 "Manrope", sans-serif; text-transform: uppercase; padding: 3px 2px; min-width: 4ch; field-sizing: content; }
.auto-destaque input:focus { outline: none; }
.auto-destaque button { border: 0; background: transparent; color: var(--texto-2); font-size: 17px; line-height: 1; cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.auto-destaque button:hover { color: var(--texto); background: var(--fundo-2); }
.auto-imagens { display: grid; gap: 4px; }
.auto-imagem { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--linha); border-radius: 10px; background: var(--fundo); font-size: 15px; cursor: pointer; }
.auto-imagem input { accent-color: var(--acento); width: 16px; height: 16px; }
.auto-destaque.fora, .auto-imagem.fora { opacity: 0.45; }
.auto-destaques .vazio, .auto-imagens .vazio { color: var(--texto-2); font-size: 15px; }

/* acabamento.css */
/* ======================================================================
   Acabamento Nise (09/10 noite, sessão pitchday-7f): vidro, profundidade e luz.
   Pedido do André: "deixe mais bonito, coloque opacidade".
   Carregado por ÚLTIMO, só sobrescreve. Não renomeia classes nem IDs usados pelo JS.
   Ideia: fundo com aurora roxa/coral bem fraca, superfícies translúcidas com
   borda de luz em cima (vidro), sombras longas e brilho roxo só no que é ação.
   ====================================================================== */
/* 03/11 "Nise branca": o padrão (sem atributo) agora é o CLARO; o escuro só com data-theme="dark", nunca pelo sistema. */
:root[data-theme="dark"] {
  --vd-1: rgb(255 255 255 / 4.5%);         /* superfície de vidro */
  --vd-2: rgb(255 255 255 / 7%);           /* vidro em destaque / hover */
  --vd-borda: rgb(255 255 255 / 8%);
  --vd-luz: rgb(255 255 255 / 14%);        /* filete de luz na borda de cima */
  --vd-sombra: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 18px 50px -24px rgb(0 0 0 / 85%);
  --vd-brilho: 0 0 0 1px rgb(164 107 255 / 45%), 0 12px 40px -10px rgb(138 77 255 / 55%);
  --vd-aurora-1: rgb(124 77 255 / 32%);
  --vd-aurora-2: rgb(255 106 77 / 14%);
  --vd-aurora-3: rgb(91 63 232 / 24%);
  --vidro: rgb(11 11 14 / 62%);
}
:root,
:root[data-theme="light"] {
  --vd-1: rgb(255 255 255 / 62%);
  --vd-2: rgb(255 255 255 / 85%);
  --vd-borda: rgb(20 16 40 / 8%);
  --vd-luz: rgb(255 255 255 / 90%);
  --vd-sombra: 0 1px 0 rgb(255 255 255 / 80%) inset, 0 18px 40px -26px rgb(40 20 90 / 35%);
  --vd-brilho: 0 0 0 1px rgb(124 58 237 / 35%), 0 12px 32px -12px rgb(124 58 237 / 35%);
  --vd-aurora-1: rgb(124 58 237 / 13%);
  --vd-aurora-2: rgb(255 106 77 / 8%);
  --vd-aurora-3: rgb(91 63 232 / 9%);
  --vidro: rgb(244 243 247 / 70%);
}

/* ---------- fundo: aurora fixa atrás de tudo ---------- */
body { background: var(--fundo); }
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 32vmax at 18% 8%, var(--vd-aurora-1), transparent 70%),
    radial-gradient(36vmax 28vmax at 88% 22%, var(--vd-aurora-2), transparent 70%),
    radial-gradient(50vmax 36vmax at 50% 105%, var(--vd-aurora-3), transparent 70%);
  filter: blur(10px);
  animation: vd-aurora 26s ease-in-out infinite alternate;
}
@keyframes vd-aurora { to { transform: translate3d(-3vmax, 2vmax, 0) scale(1.06); } }

/* ---------- topo e faixa: vidro de verdade ---------- */
.topo {
  background: var(--vidro);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--vd-borda);
}
.abas button { border-radius: 10px; transition: color .2s, background .2s; }
.abas button:hover { background: var(--vd-1); }
.abas button.ativa { background: var(--acento-suave); color: var(--neon-forte); }
.faixa {
  background: linear-gradient(90deg, #8a4dff, #a46bff 45%, #c08bff);
  box-shadow: 0 8px 30px -12px rgb(138 77 255 / 70%);
}

/* ---------- botões: gradiente e brilho ---------- */
.pri {
  background: linear-gradient(180deg, #a06bff 0%, #8a4dff 55%, #7a3df5 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), inset 0 -3px 0 var(--neon-sombra), 0 10px 28px -12px rgb(138 77 255 / 80%);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s;
}
.pri:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -3px 0 var(--neon-sombra), 0 16px 36px -12px rgb(138 77 255 / 95%); }
.pri:active { transform: translateY(0); }
.sec, .tema, .link-pilula {
  background: var(--vd-1); border: 1px solid var(--vd-borda);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sec:hover, .link-pilula:hover { background: var(--vd-2); border-color: var(--vd-luz); }

/* ---------- faixa "crie seu influenciador" ---------- */
.hype {
  background:
    radial-gradient(120% 160% at 0% 0%, rgb(138 77 255 / 22%), transparent 55%),
    linear-gradient(180deg, var(--vd-2), var(--vd-1));
  border: 1px solid var(--vd-borda);
  box-shadow: var(--vd-sombra);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* ---------- herói: luz atrás do título e campo de vidro ---------- */
.heroi { position: relative; isolation: isolate; }
.heroi::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(900px, 90vw); height: 70%;
  translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(138 77 255 / 28%), rgb(255 106 77 / 7%) 55%, transparent);
  filter: blur(30px);
}
/* sem text-shadow no título: a animação de entrada corta a sombra e vira caixa */
.heroi-marca {
  background: linear-gradient(180deg, #fff 10%, #c9a8ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .heroi-marca { background-image: linear-gradient(180deg, #2a1f5c, #7c3aed); }
.heroi-sub { opacity: .85; }
.heroi-busca {
  background: var(--vd-1); border: 1px solid var(--vd-borda);
  box-shadow: var(--vd-sombra);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: border-color .2s, box-shadow .25s;
}
.heroi-busca:focus-within { border-color: rgb(164 107 255 / 55%); box-shadow: var(--vd-brilho); }
.heroi-modelos button { background: var(--vd-1); border: 1px solid var(--vd-borda); transition: background .2s, border-color .2s, transform .2s; }
.heroi-modelos button:hover { background: var(--vd-2); border-color: var(--vd-luz); transform: translateY(-1px); }

/* ---------- superfícies: tudo que era cinza chapado vira vidro ---------- */
.destaque, .painel, .resultados, .bloco, .card, .plano, .numeros div, .faq-lista details,
.capa-video, .ferramenta-arte, .cartao-modelo, .modelo, .pers, .mural-item, .quadro-destaque,
.briefing, .ed-linha, .ed-exportar, .soltar {
  background: linear-gradient(180deg, var(--vd-2), var(--vd-1));
  border: 1px solid var(--vd-borda);
  box-shadow: var(--vd-sombra);
}
.painel, .faq-lista details, .destaque, .resultados {
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* filete de luz na borda de cima dos blocos grandes */
.destaque, .painel, .numeros div, .plano { position: relative; }
.destaque::after, .painel::after, .numeros div::after, .plano::after {
  content: ""; position: absolute; inset: 0 12% auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--vd-luz), transparent);
}
.destaque { background: radial-gradient(90% 120% at 0% 0%, rgb(138 77 255 / 20%), transparent 60%), linear-gradient(180deg, var(--vd-2), var(--vd-1)); }

/* ---------- cartões: levantam e acendem no hover ---------- */
.ferramenta, .cartao-modelo, .modelo, .pers, .mural-item, .plano, .card {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.ferramenta:hover .ferramenta-arte, .cartao-modelo:hover, .modelo:hover, .pers:hover, .mural-item:hover, .plano:hover, .card:hover {
  transform: translateY(-4px);
  border-color: rgb(164 107 255 / 40%);
  box-shadow: var(--vd-sombra), 0 20px 50px -20px rgb(138 77 255 / 55%);
}
.ferramenta-arte { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; overflow: hidden; }
.ferramenta-arte video, .ferramenta-arte img, .capa-video video { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ferramenta:hover .ferramenta-arte video, .ferramenta:hover .ferramenta-arte img { transform: scale(1.04); }

/* ---------- vídeos: nunca um bloco morto enquanto carregam ---------- */
.mv-peca, .capa-quadro, .ferramenta-arte, .mural-item, .capa-video {
  background-color: var(--fundo-2);
  background-image:
    linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 5%) 50%, transparent 70%),
    radial-gradient(80% 60% at 30% 20%, rgb(138 77 255 / 22%), transparent 70%),
    radial-gradient(70% 60% at 80% 90%, rgb(255 106 77 / 12%), transparent 70%);
  background-size: 220% 100%, 100% 100%, 100% 100%;
  animation: vd-brilho-carregando 2.4s linear infinite;
}
@keyframes vd-brilho-carregando { from { background-position: 120% 0, 0 0, 0 0; } to { background-position: -120% 0, 0 0, 0 0; } }
.mv-peca { border: 1px solid var(--vd-borda); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 90%); overflow: hidden; }
.mv-peca video { transition: opacity .5s; }
.mv-peca:hover { border-color: rgb(164 107 255 / 45%); }
/* etiqueta do modelo sobre o vídeo: pílula de vidro */
.mv-peca span, .capa-legenda {
  background: rgb(11 11 14 / 45%); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 12%); border-radius: 999px;
}

/* ---------- números e FAQ ---------- */
.numeros div b, .numeros div strong {
  background: linear-gradient(180deg, #fff, #b994ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .numeros div b, :root[data-theme="light"] .numeros div strong { background-image: linear-gradient(180deg, #2a1f5c, #7c3aed); }
.faq-lista details { transition: border-color .2s, background .2s; }
.faq-lista details[open] { border-color: rgb(164 107 255 / 35%); background: linear-gradient(180deg, rgb(138 77 255 / 10%), var(--vd-1)); }

/* ---------- campos ---------- */
.painel .campo, .briefing input, input[type="text"], input[type="search"], textarea, select {
  transition: border-color .2s, box-shadow .2s;
}
.painel .campo:focus-within, .briefing input:focus, textarea:focus, input[type="text"]:focus, select:focus {
  border-color: rgb(164 107 255 / 55%); box-shadow: 0 0 0 4px rgb(164 107 255 / 14%); outline: none;
}

/* ---------- rolagem e celular ---------- */
@media (max-width: 760px) {
  body::before { filter: none; animation: none; }
  .heroi::before { width: 120vw; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .mv-peca, .capa-quadro, .ferramenta-arte, .mural-item, .capa-video { animation: none; }
  .pri, .ferramenta-arte, .cartao-modelo, .modelo, .pers, .mural-item, .plano, .card { transition: none; }
}

/* ---------- tema claro: correções ---------- */
:root[data-theme="light"] .hype span { color: var(--texto); }
:root[data-theme="light"] .mv-peca span, :root[data-theme="light"] .capa-legenda { background: rgb(255 255 255 / 70%); color: var(--texto); border-color: rgb(20 16 40 / 8%); }

/* ======================================================================
   Rodada 2 (09/10, 23h55): abas internas
   ====================================================================== */
/* caixas das abas Chat e Influencer viram vidro (as variáveis delas apontavam para o cinza chapado) */
#aba-influencer { --if-caixa: var(--vd-1); --if-borda: var(--vd-borda); }
[id^="aba-chat"], #aba-chat { --ch-caixa: var(--vd-1); --ch-borda: var(--vd-borda); }
.if-lista, .if-painel, .ch-lado, .ch-caixa-pedido, .ch-plano {
  box-shadow: var(--vd-sombra);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.ch-caixa-pedido { transition: border-color .2s, box-shadow .25s; }
.ch-caixa-pedido:focus-within { border-color: rgb(164 107 255 / 55%); box-shadow: var(--vd-brilho); }
.ch-sugestoes button { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, border-color .2s, transform .2s; }
.ch-sugestoes button:hover { background: var(--vd-2); border-color: rgb(164 107 255 / 40%); transform: translateY(-1px); }
.ch-enviar { background: linear-gradient(180deg, #a06bff, #7a3df5); box-shadow: 0 8px 22px -8px rgb(138 77 255 / 80%); }

/* prévia vazia do influenciador: moldura de luz em vez de caixa morta */
.if-previa {
  background: radial-gradient(70% 55% at 50% 40%, rgb(138 77 255 / 16%), transparent 70%), linear-gradient(180deg, var(--vd-2), var(--vd-1));
  border: 1px dashed rgb(164 107 255 / 30%);
  box-shadow: var(--vd-sombra);
}
.if-previa .if-vazio i { border-color: rgb(164 107 255 / 40%); color: var(--neon-forte); box-shadow: 0 0 24px rgb(138 77 255 / 35%); }

/* rodapé "Gerar" grudado embaixo dos painéis: vidro, para o conteúdo passar por trás */
.gerar {
  background: color-mix(in srgb, var(--fundo-2) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--vd-borda);
}
/* mensagem de status logo acima do rodapé grudado: ao rolar até ela, sobra espaço para o rodapé */
.painel .msg { scroll-margin-bottom: 120px; }

/* Nise Viral (aba Ganhar): barra das seções e estados vazios no mesmo vidro do resto */
:root[data-theme="dark"] #aba-ganhar { --ap-vidro: rgb(11 11 14 / 55%); }
.ap-vazio {
  background: radial-gradient(80% 90% at 50% 0%, rgb(138 77 255 / 14%), transparent 65%), linear-gradient(180deg, var(--vd-2), var(--vd-1));
  border: 1px solid var(--vd-borda);
}

/* estados vazios gerais */
.vazio-arte { box-shadow: 0 30px 80px -30px rgb(138 77 255 / 70%); }

/* cartões de resultado: legenda mais legível e ações discretas */
.card .info p { color: var(--texto); font-weight: 600; }
.card .meta { opacity: .75; }

/* canvas: nós e barras flutuantes em vidro */
.cv-no { box-shadow: var(--vd-sombra), 0 0 0 1px var(--vd-borda); }
.cv-flutua, .cv-ferramentas { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* cartões da galeria e dos resultados: brilho de carregamento atrás do vídeo (antes ficava preto) */
.card .midia {
  background-color: var(--fundo-2);
  background-image:
    linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 5%) 50%, transparent 70%),
    radial-gradient(80% 60% at 30% 20%, rgb(138 77 255 / 22%), transparent 70%),
    radial-gradient(70% 60% at 80% 90%, rgb(255 106 77 / 12%), transparent 70%);
  background-size: 220% 100%, 100% 100%, 100% 100%;
  animation: vd-brilho-carregando 2.4s linear infinite;
}
.card .midia video { background: transparent; }
.card .etiqueta { background: rgb(11 11 14 / 45%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / 12%); }
@media (prefers-reduced-motion: reduce) { .card .midia { animation: none; } }

/* menu: o logo novo ficou mais largo e "Planos" era cortado em telas de notebook (1536 px) */
@media (max-width: 1640px) {
  .abas button { padding: 8px 8px; font-size: 16px; }
  .topo { gap: 16px; }
}
/* quando ainda não couber, o menu rola de lado sem barra de rolagem aparente */
.abas { scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }

/* Quem chega de anúncio (utm_source) vê só 4 abas: Início, Vídeo, UGC e Planos. "Ver tudo" mostra as outras. */
.abas.abas-simples > button:not([data-simples]):not(.abas-ver-tudo), .abas.abas-simples > .divisor { display: none !important; }
.abas .abas-ver-tudo { display: none !important; font-size: 15px; opacity: .7; text-decoration: underline; background: transparent; }
.abas.abas-simples .abas-ver-tudo { display: inline-flex !important; }

/* carregando.css */
/* ======================================================================
   Carregando da Nise (10/10): um modelo só para tudo que espera a IA ou a rede.
   Inspirado no jeito do Google Flow, Kling e Higgsfield: o quadro já nasce no formato
   do resultado, a luz roxa respira (opacidade), uma onda de pontos passa por cima,
   a porcentagem fica no centro e, quando fica pronto, a mídia aparece por opacidade.
   Peças (todas montadas por carregando.js):
     .nc          cartão de geração (vídeo, imagem, UGC, cena do editor, nó do Canvas)
     .nc-pontos9  marca de carregando: 9 pontos acendendo em onda (substitui os giros)
     .nc-linha    carregando em linha, para texto ("Transcrevendo…", "Renderizando…")
     .nc-esqueleto bloco cinza que respira, para listas que ainda não chegaram
     fade         toda mídia de lista entra por opacidade quando termina de baixar
   ====================================================================== */
:root {
  --nc-fundo: #0b0b0e;
  --nc-neon: #a46bff;
  --nc-neon-2: #6a3df0;
  --nc-texto: #f5f5f7;
  --nc-texto-2: rgb(245 245 247 / 58%);
}

/* ---------- cartão ---------- */
.nc { position: absolute; inset: 0; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; background: var(--nc-fundo); color: var(--nc-texto); font-family: var(--ui, "Inter", system-ui, sans-serif); container-type: size; }
.nc.solto { position: relative; inset: auto; width: 100%; aspect-ratio: var(--nc-formato, 16 / 9); border-radius: var(--raio, 16px); }

/* luz: duas manchas roxas que respiram fora de fase (a "opacidade" que dá vida ao quadro) */
.nc-luz { position: absolute; inset: -25%; z-index: -3; filter: blur(42px); }
.nc-luz i { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--nc-neon) 0%, transparent 68%); animation: nc-respira 4.2s ease-in-out infinite; animation-delay: var(--fase, 0s); }
.nc-luz i:nth-child(1) { left: 6%; top: 10%; }
.nc-luz i:nth-child(2) { right: 4%; bottom: 6%; background: radial-gradient(circle, var(--nc-neon-2) 0%, transparent 68%); animation-delay: calc(var(--fase, 0s) - 2.1s); }
@keyframes nc-respira { 0%, 100% { opacity: 0.16; transform: scale(0.9); } 50% { opacity: 0.62; transform: scale(1.08); } }

/* pontos: grade fraca parada + a mesma grade acesa só onde a onda passa */
.nc-grade, .nc-onda { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-size: 14px 14px; background-position: 7px 7px; }
.nc-grade { background-image: radial-gradient(circle at center, rgb(255 255 255 / 9%) 1px, transparent 1.6px); }
.nc-onda { background-image: radial-gradient(circle at center, rgb(255 255 255 / 75%) 1.1px, transparent 1.8px); -webkit-mask: linear-gradient(115deg, transparent 38%, #000 50%, transparent 62%) 0 0 / 300% 100% no-repeat; mask: linear-gradient(115deg, transparent 38%, #000 50%, transparent 62%) 0 0 / 300% 100% no-repeat; animation: nc-onda 2.8s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--fase, 0s); }
@keyframes nc-onda { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

.nc-grao { position: absolute; inset: -50%; z-index: -1; opacity: 0.08; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: nc-grao 0.6s steps(4) infinite; }
@keyframes nc-grao { 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, -4%); } }

/* topo: selo de estado + relógio */
.nc-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nc-texto-2); font-variant-numeric: tabular-nums; }
.nc-selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgb(255 255 255 / 7%); backdrop-filter: blur(8px); color: var(--nc-texto); }
.nc-selo i { width: 6px; height: 6px; border-radius: 50%; background: var(--nc-neon); box-shadow: 0 0 8px var(--nc-neon); animation: nc-pisca 1.4s ease-in-out infinite; }
@keyframes nc-pisca { 50% { opacity: 0.25; } }

/* centro: porcentagem grande + frase que troca por opacidade */
.nc-topo { grid-row: 1; } .nc-pe { grid-row: 3; }
.nc-centro { grid-row: 2; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 8px 14px; text-align: center; min-height: 0; }
.nc-pct { font-family: var(--cond, "Archivo", "Arial Narrow", sans-serif); font-stretch: 75%; font-weight: 800; font-size: clamp(26px, 15cqmin, 64px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nc-pct small { font-size: 0.45em; margin-left: 2px; color: var(--nc-texto-2); font-weight: 700; }
.nc-pct.fila { font-size: clamp(18px, 9cqmin, 34px); text-transform: uppercase; letter-spacing: 0.02em; }
.nc-frase { display: grid; font-size: 15px; font-weight: 500; color: var(--nc-texto-2); min-height: 1.35em; }
.nc-frase span { grid-area: 1 / 1; animation: nc-frase-pulsa 2.4s ease-in-out infinite; animation-delay: var(--fase, 0s); }
.nc-frase .entra { animation: nc-frase-entra 0.5s ease both; }
.nc-frase .sai { animation: nc-frase-sai 0.45s ease both; }
@keyframes nc-frase-pulsa { 50% { opacity: 0.55; } }
@keyframes nc-frase-entra { from { opacity: 0; filter: blur(4px); } }
@keyframes nc-frase-sai { to { opacity: 0; filter: blur(4px); } }

/* pé: modelo + barra fininha */
.nc-pe { display: flex; justify-content: center; padding: 0 12px 16px; font-size: 14px; color: var(--nc-texto-2); }
.nc-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(255 255 255 / 8%); }
.nc-barra i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--nc-neon-2), var(--nc-neon)); box-shadow: 0 0 10px var(--nc-neon); transition: width 0.5s linear; }

/* limpo (galeria): só porcentagem + tempo médio, texto parado e discreto */
.nc.limpo .nc-frase { font-size: 14px; letter-spacing: 0.01em; }
.nc.limpo .nc-frase span { animation: none; }

/* sem porcentagem (quando não dá para estimar): os 9 pontos no lugar do número */
.nc-centro .nc-pontos9 { width: clamp(22px, 12cqmin, 40px); }

/* na fila: tudo mais apagado e lento */
.nc.fila .nc-luz { filter: blur(46px) saturate(0); }
.nc.fila .nc-luz i { animation-duration: 6s; }
.nc.fila .nc-onda { animation-duration: 4.5s; opacity: 0.5; }
.nc.fila .nc-selo i { background: var(--nc-texto-2); box-shadow: none; }
.nc.fila .nc-barra { display: none; }

/* tamanhos pequenos (cena do editor, nó do Canvas): só o essencial */
@container (max-height: 150px) {
  .nc-topo, .nc-pe { display: none; }
  .nc-frase { font-size: 14px; }
}

/* ---------- 9 pontos em onda (marca de carregando) ---------- */
.nc-pontos9 { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 18%; width: 18px; aspect-ratio: 1; vertical-align: middle; flex: none; }
.nc-pontos9 i { border-radius: 50%; background: var(--nc-neon); animation: nc-ponto 1.2s ease-in-out infinite; animation-delay: calc(var(--fase, 0s) + var(--d) * 0.12s); }
.nc-pontos9 i:nth-child(1) { --d: 0; } .nc-pontos9 i:nth-child(2), .nc-pontos9 i:nth-child(4) { --d: 1; }
.nc-pontos9 i:nth-child(3), .nc-pontos9 i:nth-child(5), .nc-pontos9 i:nth-child(7) { --d: 2; }
.nc-pontos9 i:nth-child(6), .nc-pontos9 i:nth-child(8) { --d: 3; } .nc-pontos9 i:nth-child(9) { --d: 4; }
@keyframes nc-ponto { 0%, 100% { opacity: 0.18; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } }
.nc-pontos9.grande { width: 34px; }

/* ---------- em linha ---------- */
.nc-linha { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--texto-2, #8f8f9c); padding: 6px 0; line-height: 1.4; }
.nc-linha > b { color: var(--texto, inherit); font-weight: 600; animation: nc-frase-pulsa 2.4s ease-in-out infinite; }
div.nc-linha { display: flex; }

/* ---------- esqueleto ---------- */
.nc-esqueleto { border-radius: 12px; background: var(--fundo-3, #1d1d23); animation: nc-esqueleto 1.6s ease-in-out infinite; animation-delay: var(--fase, 0s); min-height: 14px; }
@keyframes nc-esqueleto { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.nc-esqueletos { display: grid; gap: 10px; padding: 6px 0; }

/* ---------- mídia de lista entra por opacidade (só depois que carregando.js liga) ---------- */
html.nc-fade :is(.midia, .cv-midia, .if-previa) > :is(img, video) { opacity: 0; transition: opacity 0.6s ease, filter 0.6s ease; filter: blur(8px); }
html.nc-fade :is(.midia, .cv-midia, .if-previa) > :is(img, video).nc-ok { opacity: 1; filter: none; }
html.nc-fade :is(.midia, .cv-midia, .if-previa):has(> :is(img, video):not(.nc-ok)) { animation: nc-esqueleto 1.6s ease-in-out infinite; }

/* ---------- revelação quando a geração fica pronta (a mídia nasce do roxo por opacidade) ---------- */
@keyframes revela { from { opacity: 0; filter: blur(18px) brightness(1.3); transform: scale(1.04); } 55% { opacity: 1; } to { opacity: 1; filter: none; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nc *, .nc-pontos9 i, .nc-linha > b, .nc-esqueleto, html.nc-fade :is(.midia, .cv-midia, .if-previa) { animation: none !important; }
  html.nc-fade :is(.midia, .cv-midia, .if-previa) > :is(img, video) { transition: none; filter: none; }
}

/* recriar.css */
/* Recriar: janela no estilo do "Recreate template" do Higgsfield (mídia em cima, título condensado, zona das fotos). */
.dlg-recriar { width: min(560px, 94vw); padding: 16px; }
.dlg-recriar .ed-dialogo-topo { margin-bottom: 10px; }
.rc-autor { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-autor img { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--fundo-3); padding: 5px; }
.rc-autor b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rc-origem { display: grid; place-items: center; background: var(--fundo-3); border-radius: 16px; padding: 16px; height: 220px; }
.rc-origem img, .rc-origem video { max-height: 188px; max-width: 100%; border-radius: 14px; display: block; object-fit: contain; }

.rc-titulo { font-family: var(--cond, "Archivo", "Arial Narrow", sans-serif); font-stretch: 68%; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: -0.01em; margin: 18px 0 4px; }
.rc-sub { color: var(--texto-2); margin: 0 0 14px; }

.rc-zona { position: relative; border: 1.5px dashed rgb(255 255 255 / 14%); border-radius: 16px; background: var(--fundo-3); min-height: 170px; display: grid; place-items: center; text-align: center; padding: 18px; cursor: pointer; transition: border-color .15s; }
:root[data-theme="light"] .rc-zona { border-color: rgb(20 16 40 / 18%); }
.rc-zona:hover, .rc-zona.sobre, .rc-zona:focus-visible { border-color: var(--neon); outline: none; }
.rc-zona.tem { cursor: default; place-items: stretch; }
.rc-vazio { display: grid; justify-items: center; gap: 6px; }
.rc-zona.tem .rc-vazio { display: none; }
.rc-icones { display: flex; margin-bottom: 8px; }
.rc-icones span { width: 38px; height: 38px; border-radius: 50%; background: var(--fundo-2); border: 2px solid var(--fundo-3); display: grid; place-items: center; margin-left: -8px; }
.rc-icones span:first-child { margin-left: 0; }
.rc-icones svg { width: 17px; height: 17px; fill: none; stroke: var(--texto); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rc-vazio b { font-size: 16px; }
.rc-vazio small { color: var(--texto-2); }

.rc-fotos { display: none; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.rc-zona.tem .rc-fotos { display: flex; }
.rc-foto { position: relative; margin: 0; width: 96px; }
.rc-foto img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; display: block; }
.rc-foto figcaption { font-size: 14px; color: var(--texto-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foto button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 65%); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rc-foto button .ic { width: 12px; height: 12px; }
.rc-mais { width: 96px; height: 120px; border-radius: 12px; border: 1.5px dashed rgb(255 255 255 / 18%); background: transparent; color: var(--texto-2); display: grid; place-items: center; cursor: pointer; }
.rc-mais:hover { border-color: var(--neon); color: var(--texto); }

.rc-personagens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; color: var(--texto-2); }
.rc-personagens:empty { display: none; }
.chip-pers { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha); background: var(--fundo-3); color: var(--texto); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 15px; cursor: pointer; }
.chip-pers img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip-pers.ativo { border-color: var(--neon); background: var(--acento-suave); }

.dlg-recriar .campo { margin-top: 12px; }
.dlg-recriar .gerar { margin-top: 12px; }
.rc-botao { width: 100%; }

@media (max-width: 520px) {
  .rc-origem { height: 180px; }
  .rc-origem img, .rc-origem video { max-height: 150px; }
  .rc-titulo { font-size: 26px; }
  .rc-foto, .rc-foto img, .rc-mais { width: 78px; }
  .rc-foto img, .rc-mais { height: 98px; }
}

/* anuncios.css */
/* Anúncios do site: link → marca lida → ideias editáveis → anúncios gerados. */
.an-marca { background: var(--fundo-3); border-radius: 16px; padding: 14px; margin-top: 10px; display: grid; gap: 8px; }
.an-marca-topo { display: flex; align-items: center; gap: 10px; }
.an-marca-topo b { display: block; font-size: 17px; }
.an-marca-topo small { color: var(--texto-2); }
.an-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.an-produto { margin: 0; font-weight: 700; }
.an-desc { margin: 0; color: var(--texto-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.an-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-tags:empty { display: none; }
.an-tag { font-size: 15px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--acento-suave); color: var(--neon-forte, var(--texto)); }
.an-cor { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid rgb(255 255 255 / 20%); }
.an-rotulo { font-size: 15px; font-weight: 700; margin-top: 4px; }
.an-rotulo small { color: var(--texto-2); font-weight: 500; }
.an-fotos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.an-foto { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 12px; border: 2px solid transparent; background: #fff; overflow: hidden; cursor: pointer; position: relative; }
.an-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-foto.ativo { border-color: var(--neon); }
.an-foto.ativo::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--neon); color: #fff; font-size: 14px; display: grid; place-items: center; font-weight: 800; }

.an-ideias { display: grid; gap: 10px; }
.an-ideia { background: var(--fundo-3); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.an-ideia label { display: grid; gap: 4px; font-size: 15px; color: var(--texto-2); font-weight: 600; }
.an-ideia label.check { display: flex; align-items: center; gap: 6px; color: var(--texto); }
.an-ideia input:not([type]), .an-ideia textarea { width: 100%; font: inherit; font-size: 15px; color: var(--texto); background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.an-ideia input[data-campo="titulo"] { font-weight: 800; font-size: 16px; }
.an-ideia details summary { font-size: 15px; color: var(--texto-2); cursor: pointer; }
.an-ideia details textarea { margin-top: 6px; }
.an-ideia-topo { display: flex; justify-content: space-between; align-items: center; }
.an-angulo { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--neon-forte, var(--neon)); }
.an-ideia-topo button { padding: 5px 8px; }
#anFormatos button small { color: var(--texto-2); font-weight: 500; }

/* seletor.css */
/* Lista própria dos <select> (seletor.js) e menus do mesmo tipo: vidro fosco como no iPhone,
   arredondada e no tema da Nise, no lugar da caixa quadrada nativa. */
:root {
  --vidro-fundo: rgb(30 30 36 / 72%);
  --vidro-borda: rgb(255 255 255 / 10%);
  --vidro-item: rgb(255 255 255 / 8%);
  --vidro-sombra: 0 24px 60px rgb(0 0 0 / 50%), 0 2px 10px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 6%);
}
:root[data-theme="light"] {
  --vidro-fundo: rgb(255 255 255 / 76%);
  --vidro-borda: rgb(0 0 0 / 8%);
  --vidro-item: rgb(0 0 0 / 5%);
  --vidro-sombra: 0 24px 60px rgb(0 0 0 / 14%), 0 2px 10px rgb(0 0 0 / 6%), inset 0 1px 0 rgb(255 255 255 / 70%);
}

select { color-scheme: dark; cursor: pointer; }
:root[data-theme="light"] select { color-scheme: light; }
select option { background: var(--fundo-2); color: var(--texto); }
select.sel-aberto { border-color: var(--neon) !important; box-shadow: 0 0 0 3px var(--acento-suave); }

.sel-menu {
  position: fixed; z-index: 2147483000; overflow-y: auto; overscroll-behavior: contain;
  max-width: min(400px, calc(100vw - 16px)); padding: 8px;
  background: var(--vidro-fundo); color: var(--texto);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--vidro-borda); border-radius: 18px; box-shadow: var(--vidro-sombra);
  font: 500 14px/1.3 Inter, Manrope, system-ui, sans-serif;
  animation: sel-entra .16s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin;
}
.sel-menu.para-cima { animation-name: sel-entra-cima; }
@keyframes sel-entra { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes sel-entra-cima { from { opacity: 0; transform: translateY(6px) scale(.97); } }

.sel-busca { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; gap: 10px; margin: -8px -8px 6px; padding: 12px 16px; border-bottom: 1px solid var(--vidro-borda); background: inherit; -webkit-backdrop-filter: inherit; backdrop-filter: inherit; border-radius: 18px 18px 0 0; }
.sel-busca svg { width: 18px; height: 18px; fill: none; stroke: var(--texto-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.sel-busca input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--texto); font: inherit; font-size: 15px; outline: none; padding: 0 !important; }
.sel-busca input::-webkit-search-cancel-button { display: none; }

.sel-item {
  position: relative; display: grid; gap: 2px; padding: 10px 38px 10px 12px; border-radius: 12px;
  cursor: pointer; user-select: none; min-width: 0;
}
.sel-item > b, .sel-item > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-item > b { font-weight: 600; }
.sel-item > small { color: var(--texto-2); font-size: 12.5px; font-weight: 400; }
.sel-item[hidden], .sel-grupo[hidden] { display: none; }
.sel-item.sel-foco { background: var(--vidro-item); }
.sel-item[aria-selected="true"] > b { color: var(--neon-forte); }
.sel-item[aria-selected="true"]::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 11px; height: 6px; margin-top: -5px;
  border-left: 2px solid var(--neon-forte); border-bottom: 2px solid var(--neon-forte); transform: rotate(-45deg);
}
.sel-item[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.sel-item.com-icone { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.sel-item.com-icone > b, .sel-item.com-icone > small { grid-column: 2; }
.sel-item.com-icone > .sel-icone { grid-row: span 2; }
.sel-selo { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: rgb(150 120 255 / 22%); color: #c9b8ff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
:root[data-theme="light"] .sel-selo { background: rgb(110 80 230 / 12%); color: #5b3fd6; }
/* ícones das IAs do chat: letra/forma simples em quadradinho, sem logo de marca */
.sel-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--vidro-item); font-style: normal; font-weight: 800; font-size: 15px; color: var(--texto); }
.sel-icone::before { content: "•"; }
.sel-icone-deepseek::before { content: "DS"; color: #6d8dff; font-size: 13px; }
.sel-icone-claude::before { content: "✳"; color: #e08a62; font-size: 19px; }
.sel-icone-openai::before { content: "◎"; color: var(--texto); font-size: 19px; }
.sel-icone-gemini::before { content: "✦"; color: #7aa7ff; font-size: 18px; }
.sel-icone-grok::before { content: "X"; }
.sel-icone-kimi::before { content: "K"; color: #9fd3ff; }
.sel-icone-qwen::before { content: "Q"; color: #b39cff; }
.sel-icone-nise::before { content: "N"; color: var(--neon-forte, #c9b8ff); }
.sel-grupo { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2); }

:root[data-theme="light"] .sel-item[aria-selected="true"] > b { color: var(--neon-fundo); }
:root[data-theme="light"] .sel-item[aria-selected="true"]::after { border-color: var(--neon-fundo); }
@media (prefers-reduced-motion: reduce) { .sel-menu { animation: none; } }

/* promo.css */
/* Pop-up da oferta (promo.js): tabela de comparação + oferta do Lite, no roxo da Nise. */
dialog.pm {
  --pm-roxo: var(--neon, #a46bff); --pm-roxo-forte: var(--neon-forte, #c3a0ff);
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #111114; color: #f5f5f7; border: 1px solid rgb(255 255 255 / 9%); border-radius: 22px;
  box-shadow: 0 40px 120px rgb(0 0 0 / 70%); font-family: Inter, Manrope, system-ui, sans-serif;
}
dialog.pm:not([open]) { display: none; }
dialog.pm[open] { animation: pm-entra .28s cubic-bezier(.2, .8, .2, 1); }
dialog.pm::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(6px); }
@keyframes pm-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.pm-x { position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / 10%); color: #fff; cursor: pointer; }
.pm-x:hover { background: rgb(255 255 255 / 18%); }
.pm .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tabela */
.pm-tabela { overflow: auto; padding: 22px 18px 22px 22px; background: #0c0c0f; }
.pm-tabela table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.pm-tabela th, .pm-tabela td { padding: 15px 14px; text-align: center; color: #9a9aa6; }
.pm-tabela th { color: #fff; font-weight: 700; font-size: 16px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.pm-tabela th:first-child, .pm-tabela td:first-child { text-align: left; color: #c9c9d2; }
.pm-tabela th:first-child { color: #fff; }
.pm-tabela td:not(:first-child), .pm-tabela th:not(:first-child) { white-space: nowrap; }
.pm-tabela tbody tr:nth-child(odd) td { background: rgb(255 255 255 / 3.5%); }
.pm-tabela tbody tr:nth-child(odd) td:first-child { border-radius: 10px 0 0 10px; }
.pm-tabela tbody tr:nth-child(odd) td:last-child { border-radius: 0 10px 10px 0; }
.pm-tabela .pm-col { color: var(--pm-roxo-forte); font-weight: 600; background: rgb(164 107 255 / 9%) !important; border-left: 1px solid rgb(164 107 255 / 55%); border-right: 1px solid rgb(164 107 255 / 55%); }
.pm-tabela th.pm-col { border-top: 1px solid rgb(164 107 255 / 55%); border-radius: 14px 14px 0 0; color: var(--pm-roxo-forte); }
.pm-tabela tbody tr:last-child .pm-col { border-bottom: 1px solid rgb(164 107 255 / 55%); border-radius: 0 0 14px 14px; }
.pm-ok { display: inline-grid; color: #fff; }
.pm-col .pm-ok { color: var(--pm-roxo-forte); }
.pm-nao { color: #55555f; }

/* Oferta */
.pm-oferta { overflow: auto; padding: 44px 40px 30px; display: flex; flex-direction: column; gap: 18px; }
.pm-oferta h2 { margin: 0; padding-right: 30px; font-family: "Archivo", sans-serif; font-stretch: 75%; font-weight: 900; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.01em; color: #fff; }
.pm-oferta h2 span { color: var(--pm-roxo-forte); }
.pm-sub { margin: -4px 0 4px; color: #9a9aa6; font-size: 16px; line-height: 1.45; }
.pm-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; font-size: 16px; color: #c9c9d2; }
.pm-lista li { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.pm-lista b { color: #fff; font-weight: 600; }
.pm-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.pm-ic .ic { width: 16px; height: 16px; }
.pm-ic.roxo { background: linear-gradient(135deg, #b98aff, #6f34e0); }
.pm-ic.rosa { background: linear-gradient(135deg, #ff7ab8, #d6286f); }
.pm-ic.azul { background: linear-gradient(135deg, #6fb6ff, #2a62e0); }
.pm-check > .ic { color: var(--pm-roxo-forte); margin: 0 5px; }
.pm-dica { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgb(164 107 255 / 10%); border: 1px solid rgb(164 107 255 / 18%); }
.pm-dica > .ic { color: var(--pm-roxo-forte); margin-top: 2px; }
.pm-dica p { margin: 0; font-size: 15px; line-height: 1.45; color: #b9b9c4; }
.pm-dica b { color: #fff; }

.pm-cta {
  position: relative; margin-top: 6px; width: 100%; padding: 19px 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--neon-fundo, #8a4dff); color: #fff; font: 700 17px/1 Inter, sans-serif;
  box-shadow: 0 4px 0 var(--neon-sombra, #5f2bd1), 0 14px 40px rgb(138 77 255 / 35%); transition: transform .12s, box-shadow .12s, filter .12s;
}
.pm-cta:hover { filter: brightness(1.08); }
.pm-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--neon-sombra, #5f2bd1), 0 8px 24px rgb(138 77 255 / 30%); }
.pm-cta:disabled { opacity: .7; cursor: progress; }
.pm-tag { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; padding: 5px 11px; border-radius: 7px; background: #ff3d8b; color: #fff; font: 700 15px/1 Inter, sans-serif; box-shadow: 0 4px 14px rgb(255 61 139 / 40%); }
.pm-link { align-self: center; margin-top: 10px; background: none; border: 0; color: #9a9aa6; font: 500 16px Inter, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pm-link:hover { color: #fff; }

#faixa p { cursor: pointer; }

@media (max-width: 900px) {
  dialog.pm { grid-template-columns: 1fr; overflow: auto; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .pm-oferta { order: -1; padding: 34px 22px 24px; overflow: visible; }
  .pm-tabela { overflow: visible; padding: 8px 10px 20px; }
  .pm-tabela table { font-size: 15px; }
  .pm-tabela th, .pm-tabela td { padding: 11px 6px; }
}
@media (prefers-reduced-motion: reduce) { dialog.pm[open] { animation: none; } }

/* explorar.css */
/* Explorar: biblioteca de vídeos de referência com prompt para recriar */
.explorar-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.exp-item { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--fundo-2); cursor: pointer; }
.exp-item.r34 { aspect-ratio: 3 / 4; align-self: start; }
.exp-item.h { aspect-ratio: 16 / 9; grid-column: span 2; align-self: start; }
.exp-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.exp-item:hover video { transform: scale(1.04); }
.exp-sobre { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; display: grid; gap: 3px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / 82%)); }
.exp-sobre b { font-size: 16px; line-height: 1.15; }
.exp-sobre span { font-size: 14px; opacity: 0.8; }
.exp-botoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.exp-sobre .exp-botoes .pri { padding: 8px 14px; font-size: 15px; }
.exp-sobre .exp-botoes .sec { padding: 7px 12px; font-size: 15px; background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 25%); color: #fff; backdrop-filter: blur(6px); }
@media (hover: hover) {
  .exp-sobre .exp-botoes { opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
  .exp-item:hover .exp-botoes, .exp-item:focus-within .exp-botoes { opacity: 1; transform: none; }
}

.exp-detalhe { border: 0; padding: 0; border-radius: 20px; max-width: min(900px, calc(100vw - 32px)); width: 100%; background: var(--fundo); color: var(--texto); box-shadow: var(--sombra); overflow: hidden; }
.exp-detalhe[open] { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.exp-detalhe::backdrop { background: rgb(0 0 0 / 65%); backdrop-filter: blur(4px); }
.exp-detalhe-midia { background: #000; display: grid; place-items: center; max-height: 86vh; }
.exp-detalhe-midia video { width: 100%; max-height: 86vh; object-fit: contain; display: block; }
.exp-detalhe-texto { position: relative; padding: 22px 22px 18px; display: grid; gap: 8px; align-content: start; overflow: auto; max-height: 86vh; }
.exp-detalhe-texto small { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--texto-2); }
.exp-detalhe-texto h3 { margin: 0; font-size: 22px; }
.exp-detalhe-texto p { margin: 0; color: var(--texto-2); font-size: 16px; }
.exp-detalhe-texto label { font-weight: 800; font-size: 15px; margin-top: 6px; }
.exp-detalhe-texto textarea { width: 100%; resize: vertical; font: 15px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); }
.exp-detalhe-texto .exp-botoes .pri { padding: 11px 18px; font-size: 16px; }
.exp-detalhe-texto .exp-dica { font-size: 15px; }
.exp-fechar { position: absolute; top: 10px; right: 12px; border: 0; background: var(--fundo-2); color: var(--texto); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) {
  .explorar-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exp-detalhe[open] { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .exp-detalhe-midia, .exp-detalhe-midia video { max-height: 42vh; }
  .exp-detalhe-texto { max-height: none; }
}

/* Vídeos de referência do Explorar (midia/explorar) vêm com a marca "KlingAI 3.0" no canto de baixo:
   zoom a partir do topo corta a faixa de baixo, onde fica a marca (vale na grade, no detalhe e no Canvas). */
:is(video, img)[src*="midia/explorar/"] { transform: scale(1.12); transform-origin: 50% 0; }
.exp-item:hover video[src*="midia/explorar/"] { transform: scale(1.16); }
.exp-detalhe-midia { overflow: hidden; }

/* galeria-limpa.css */
/* Galeria limpa: o cartão é só a mídia, como nas galerias do Higgsfield.
   Título, preço e ações aparecem por cima ao passar o mouse; o resto fica no menu "⋯".
   Carregado por último para valer sobre styles.css, pele.css e acabamento.css. */

.feed, .grade { align-items: start; gap: 10px; }

.card { position: relative; background: none; border: 0; border-radius: 16px; box-shadow: none; overflow: visible; isolation: isolate; }
.card:hover { transform: none; }
.card .midia { border-radius: 16px; }
.card .midia video, .card .midia img { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .midia video, .card:hover .midia img { transform: scale(1.03); }

/* preço e tipo: só no hover (o "+N" das variações continua sempre visível) */
.card .etiqueta:not(.dir) { opacity: 0; transition: opacity 0.2s; }
.card:hover .etiqueta, .card.menu-aberto .etiqueta { opacity: 1; }

/* camada de cima: degradê no rodapé da mídia, só os botões recebem clique */
.card .sobre {
  position: absolute; inset: auto 0 0 0; z-index: 2; pointer-events: none;
  display: grid; gap: 8px; padding: 48px 12px 12px; border-radius: 0 0 16px 16px;
  background: linear-gradient(transparent, rgb(0 0 0 / 55%) 45%, rgb(0 0 0 / 82%));
  color: #fff;
}
.card .sobre .info { padding: 0; font-size: 15px; }
.card .sobre .info p { color: #fff; font-weight: 600; margin: 0 0 3px; -webkit-line-clamp: 2; line-height: 1.3; text-shadow: 0 1px 8px rgb(0 0 0 / 40%); }
.card .sobre .meta { color: rgb(255 255 255 / 72%); opacity: 1; font-size: 14px; font-weight: 500; gap: 2px 6px; }
.card .sobre .erro-card { padding: 0; color: #ff9b8a; font-size: 15px; font-weight: 600; }
.card .sobre .aviso-card { color: rgb(255 255 255 / 80%); }
.card .sobre .tentar-card {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; pointer-events: auto;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 14%); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card .sobre .tentar-card:hover { background: rgb(255 255 255 / 26%); }
.card .sobre .tentar-card:disabled { opacity: .6; cursor: wait; }
.card .sobre .tentar-card .ic { width: 14px; height: 14px; }

.card .acoes { display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: nowrap; pointer-events: auto; }
.card .acoes::before { content: none; }
.card .acoes a, .card .acoes button {
  order: 0; width: 34px; height: 34px; padding: 0; gap: 0; font-size: 0; justify-content: center;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); color: #fff;
  background: rgb(255 255 255 / 12%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card .acoes a:hover, .card .acoes button:hover { background: rgb(255 255 255 / 24%); color: #fff; }
.card .acoes .ic { width: 16px; height: 16px; }
.card .acoes .mais { margin-left: auto; }
.card .acoes .fav.on { color: var(--sol); }

/* com mouse: tudo escondido até passar por cima */
@media (hover: hover) {
  .card .sobre { opacity: 0; transform: translateY(6px); transition: opacity 0.22s, transform 0.22s; }
  .card:hover .sobre, .card:focus-within .sobre, .card.menu-aberto .sobre { opacity: 1; transform: none; }
  /* erro e aviso continuam visíveis sem hover */
  .card:has(.erro-card) .sobre { opacity: 1; transform: none; }
}

/* no celular: rodapé compacto sempre visível, título em 1 linha e sem metadados */
@media (hover: none) {
  .card .sobre { padding: 36px 8px 8px; gap: 6px; }
  .card .sobre .info p { -webkit-line-clamp: 1; font-size: 15px; }
  .card .sobre .meta { display: none; }
  .card .acoes a, .card .acoes button { width: 30px; height: 30px; }
}

/* menu "⋯" */
.card-menu {
  position: absolute; right: 8px; bottom: 54px; z-index: 5; min-width: 190px;
  display: grid; padding: 6px; border-radius: 14px;
  background: rgb(20 18 28 / 92%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
  animation: card-menu-entra 0.16s ease-out;
}
.card-menu[hidden] { display: none; }
.card-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px;
  background: none; color: rgb(255 255 255 / 88%); font: 600 15px/1.2 inherit; text-align: left; cursor: pointer;
}
.card-menu button:hover, .card-menu button:focus-visible { background: rgb(255 255 255 / 9%); color: #fff; outline: none; }
.card-menu .ic { width: 16px; height: 16px; color: rgb(255 255 255 / 65%); }
.card-menu .perigo { margin-top: 4px; border-top: 1px solid rgb(255 255 255 / 8%); border-radius: 0 0 9px 9px; padding-top: 11px; }
.card-menu .perigo:hover { color: var(--erro); }
.card-menu .perigo:hover .ic { color: var(--erro); }
.card.menu-aberto { z-index: 10; }
@keyframes card-menu-entra { from { opacity: 0; transform: translateY(6px) scale(.98); } }
/* 11/10: por cima da mídia só Baixar, Apagar e ⋯ (sem título, modelo nem preço), num degradê leve */
.card .sobre { padding: 28px 10px 10px; background: linear-gradient(transparent, rgb(0 0 0 / 45%)); }
.card .acoes { justify-content: flex-end; }
.card .acoes .mais { margin-left: 0; }

@media (prefers-reduced-motion: reduce) { .card-menu { animation: none; } .card .sobre { transition: none; } }

/* Explorar: em repouso só o vídeo; no hover escurece e mostra título + Recriar no centro */
.exp-item { border-radius: 16px; }
.exp-sobre { inset: 0; align-content: end; justify-items: start; padding: 12px; background: linear-gradient(transparent 60%, rgb(0 0 0 / 55%)); transition: background 0.25s; }
.exp-sobre b { text-shadow: 0 1px 10px rgb(0 0 0 / 45%); }
@media (hover: hover) {
  .exp-sobre { align-content: center; justify-items: center; text-align: center; background: transparent; }
  .exp-sobre b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
  .exp-sobre > b, .exp-sobre > span { opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
  .exp-item:hover .exp-sobre, .exp-item:focus-within .exp-sobre { background: rgb(0 0 0 / 45%); }
  .exp-item:hover .exp-sobre > *, .exp-item:focus-within .exp-sobre > * { opacity: 1; transform: none; }
  .exp-sobre .exp-botoes { justify-content: center; }
}
@media (hover: none) {
  .exp-sobre span, .exp-sobre .exp-botoes .sec { display: none; }
  .exp-sobre b { font-size: 15px; }
  .exp-sobre .exp-botoes { margin-top: 4px; }
}

/* Explorar em mosaico (colunas): vídeos de alturas diferentes se encaixam sem buraco */
.explorar-grade { display: block; columns: 5 210px; column-gap: 12px; }
.explorar-grade .exp-item { display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; grid-column: auto; }
.explorar-grade .exp-item.h { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .explorar-grade { columns: 2; column-gap: 8px; } .explorar-grade .exp-item { margin-bottom: 8px; } }

/* canvas-inicio.css */
/* Tela inicial do Canvas (estilo do Canvas do Higgsfield): hero com nós flutuando ligados por fios,
   título dentro de uma caixa de seleção, e a grade "Meus canvas" / "Modelos".
   Clicar num cartão faz ele crescer até virar o quadro (cvi-voo). */

.cv-inicio {
  --cvi-roxo: #8a4dff;
  position: absolute; inset: 0; z-index: 30; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(70% 55% at 50% 0%, rgb(138 77 255 / 22%), transparent 70%),
    var(--cv-fundo);
  color: var(--cv-texto);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.cv-inicio[hidden] { display: none; }
.cv-inicio.saindo { opacity: 0; transform: scale(0.985); pointer-events: none; }
#aba-canvas.no-inicio > :not(.cv-inicio):not(.cvi-voo) { visibility: hidden; }

/* ---------- hero ---------- */
.cvi-heroi {
  position: relative; height: 360px; margin-bottom: 8px;
  background-image: radial-gradient(var(--cv-ponto) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent);
}
.cvi-fios { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cvi-fios path {
  fill: none; stroke-width: 1.6; opacity: 0.75;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: cvi-fio 1.1s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(0.35s + var(--i) * 0.12s);
}
.cvi-fios path.texto { stroke: var(--cv-texto-fio); }
.cvi-fios path.imagem { stroke: var(--cv-imagem-fio); }
.cvi-fios path.video { stroke: var(--cv-video-fio); }
@keyframes cvi-fio { to { stroke-dashoffset: 0; } }
.cvi-fios.pronto path { animation: none; stroke-dashoffset: 0; }

.cvi-no {
  position: absolute; overflow: hidden; border-radius: 16px; background: var(--cv-no);
  border: 1px solid rgb(255 255 255 / 12%); box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
  opacity: 0; transform: translateY(14px) scale(0.92) rotate(var(--gira));
  animation: cvi-no-entra 0.7s cubic-bezier(.2, .9, .2, 1.1) forwards, cvi-boia 6s ease-in-out infinite;
  animation-delay: calc(0.1s + var(--i) * 0.09s), calc(1s + var(--i) * -1.3s);
}
.cvi-no img, .cvi-no video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvi-no.nota { padding: 10px 12px; background: rgb(32 30 42 / 88%); backdrop-filter: blur(8px); }
.cvi-no.nota small { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cv-texto-fio); margin-bottom: 4px; }
.cvi-no.nota p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--cv-texto-2); }
@keyframes cvi-no-entra { to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--gira)); } }
@keyframes cvi-boia { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.cvi-titulo {
  position: absolute; left: 0; right: 0; margin-inline: auto; top: 40px; width: min(520px, 35vw);
  padding: 22px 18px 24px; text-align: center; border: 1.5px solid rgb(138 77 255 / 85%);
  opacity: 0; animation: cvi-titulo 0.8s cubic-bezier(.2, .8, .2, 1) 0.15s forwards;
}
.cvi-titulo small { display: block; font: 600 15px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.14em; color: var(--cv-texto-2); margin-bottom: 14px; }
.cvi-titulo h1 { margin: 0; font-family: Archivo, Inter, sans-serif; font-stretch: 75%; font-weight: 900; font-size: clamp(28px, 3vw, 48px); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; color: #fff; }
.cvi-alca { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: #fff; border: 1.5px solid var(--cvi-roxo); }
@keyframes cvi-titulo { from { opacity: 0; transform: scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- lista ---------- */
.cvi-lista { width: min(1340px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 48px; }
.cvi-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cvi-abas { display: flex; gap: 6px; }
.cvi-abas button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 16px; border-radius: 999px;
  background: none; color: var(--cv-texto-2); font: 700 16px/1 inherit; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.cvi-abas button:hover { color: var(--cv-texto); }
.cvi-abas button.ativa { background: rgb(255 255 255 / 9%); color: var(--cv-texto); }
.cvi-selo { font-size: 14px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--cvi-roxo); color: #fff; }
.cvi-busca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / 6%); color: var(--cv-texto-2); width: 40px; overflow: hidden; transition: width 0.3s ease; cursor: text; }
.cvi-busca:focus-within, .cvi-busca:has(input:not(:placeholder-shown)) { width: 230px; }
.cvi-busca .ic { flex: none; width: 17px; height: 17px; }
.cvi-busca input { flex: 1; min-width: 0; border: 0; background: none; color: var(--cv-texto); font: 16px inherit; outline: none; }

.cvi-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.cvi-cartao {
  display: grid; gap: 4px; align-content: start; text-align: left; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  opacity: 0; animation: cvi-cartao 0.5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 0.05s);
}
.cvi-cartao b { margin-top: 10px; font-size: 16px; font-weight: 700; }
.cvi-cartao small { font-size: 15px; color: var(--cv-texto-2); }
@keyframes cvi-cartao { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cvi-capa {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #23232c, #1a1a21); border: 1px solid var(--cv-borda);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.25s, box-shadow 0.35s;
}
.cvi-cartao:hover .cvi-capa, .cvi-cartao:focus-visible .cvi-capa { transform: translateY(-4px); border-color: rgb(138 77 255 / 55%); box-shadow: 0 18px 40px rgb(0 0 0 / 40%), 0 0 0 1px rgb(138 77 255 / 30%); }
.cvi-cartao:focus-visible { outline: none; }
.cvi-capa img, .cvi-capa video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.cvi-cartao:hover .cvi-capa img, .cvi-cartao:hover .cvi-capa video { transform: scale(1.04); }
.cvi-mais { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 16%); color: #fff; transition: transform 0.3s, background 0.3s; }
.cvi-mais .ic { width: 20px; height: 20px; }
.cvi-cartao:hover .cvi-mais { transform: scale(1.1) rotate(90deg); background: var(--cvi-roxo); }

/* capa de quem ainda não gerou nada: o nome dentro da caixa de seleção, como no hero */
.cvi-marca { position: relative; padding: 4px 8px; border: 1.5px solid rgb(138 77 255 / 85%); font: 800 18px/1.1 Inter, sans-serif; text-align: center; color: rgb(255 255 255 / 60%); }
.cvi-marca i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #fff; border: 1.5px solid var(--cvi-roxo); }
.cvi-marca i:nth-child(1) { left: -4px; top: -4px; } .cvi-marca i:nth-child(2) { right: -4px; top: -4px; }
.cvi-marca i:nth-child(3) { left: -4px; bottom: -4px; } .cvi-marca i:nth-child(4) { right: -4px; bottom: -4px; }

/* miniatura dos modelos: nós e fios desenhados */
.cvi-capa.modelo, .cvi-capa:has(.cvi-mapa) { background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1.2px), linear-gradient(160deg, #23232c, #1a1a21); background-size: 14px 14px, auto; }
.cvi-mini { width: 92%; height: 86%; }
.cvi-mapa { display: contents; }
.cvi-mini path { fill: none; stroke-width: 6; }
.cvi-mini path.texto { stroke: var(--cv-texto-fio); } .cvi-mini path.imagem { stroke: var(--cv-imagem-fio); } .cvi-mini path.video { stroke: var(--cv-video-fio); }
.cvi-mini-no > rect:first-child { fill: #2b2b34; stroke: rgb(255 255 255 / 12%); stroke-width: 3; }
.cvi-mini-no .topo { fill: rgb(255 255 255 / 30%); }
.cvi-mini-no .linha { fill: rgb(255 255 255 / 14%); }
.cvi-mini-no .tela { fill: rgb(138 77 255 / 22%); }
.cvi-vazio { color: var(--cv-texto-2); }

/* ---------- abrir o canvas: o cartão cresce até virar o quadro ---------- */
.cvi-voo {
  position: absolute; z-index: 40; pointer-events: none; overflow: hidden;
  background-color: var(--cv-fundo); background-image: radial-gradient(var(--cv-ponto) 1.2px, transparent 1.3px);
  box-shadow: 0 0 0 1px rgb(138 77 255 / 40%), 0 30px 80px rgb(0 0 0 / 50%);
}
#aba-canvas.cv-entrando .cv-no { animation: cvi-no-quadro 0.55s cubic-bezier(.2, .9, .2, 1.05) both; }
#aba-canvas.cv-entrando .cv-fios { animation: cvi-aparece 0.6s ease 0.15s both; }
#aba-canvas.cv-entrando .cv-flutua, #aba-canvas.cv-entrando .cv-ajuda { animation: cvi-sobe 0.45s cubic-bezier(.2, .8, .2, 1) 0.1s both; }
@keyframes cvi-no-quadro { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
@keyframes cvi-aparece { from { opacity: 0; } }
@keyframes cvi-sobe { from { opacity: 0; translate: 0 12px; } }

/* ---------- tema claro ---------- */
:root[data-theme="light"] .cv-inicio { background: radial-gradient(70% 55% at 50% 0%, rgb(138 77 255 / 14%), transparent 70%), var(--cv-fundo); }
:root[data-theme="light"] .cvi-titulo h1 { color: var(--cv-texto); }
:root[data-theme="light"] .cvi-no.nota { background: rgb(255 255 255 / 90%); }
:root[data-theme="light"] .cvi-capa { background: linear-gradient(160deg, #fff, #f1eee7); }
:root[data-theme="light"] .cvi-capa.modelo, :root[data-theme="light"] .cvi-capa:has(.cvi-mapa) { background-image: radial-gradient(rgb(21 17 46 / 10%) 1px, transparent 1.2px), linear-gradient(160deg, #fff, #f1eee7); }
:root[data-theme="light"] .cvi-mini-no > rect:first-child { fill: #fff; stroke: rgb(21 17 46 / 14%); }
:root[data-theme="light"] .cvi-mini-no .topo { fill: rgb(21 17 46 / 25%); }
:root[data-theme="light"] .cvi-mini-no .linha { fill: rgb(21 17 46 / 10%); }
:root[data-theme="light"] .cvi-abas button.ativa, :root[data-theme="light"] .cvi-busca { background: rgb(21 17 46 / 7%); }
:root[data-theme="light"] .cvi-mais { background: rgb(21 17 46 / 8%); color: var(--cv-texto); border-color: rgb(21 17 46 / 12%); }
:root[data-theme="light"] .cvi-marca { color: rgb(21 17 46 / 55%); }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .cvi-heroi { height: 300px; }
  .cvi-no:nth-of-type(2), .cvi-no:nth-of-type(4) { display: none; }
  .cvi-no { scale: 0.75; transform-origin: top left; }
  .cvi-titulo { width: calc(100% - 48px); top: 120px; padding: 16px 12px 18px; background: rgb(20 20 23 / 70%); backdrop-filter: blur(6px); }
  .cvi-titulo h1 { font-size: 30px; }
  .cvi-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .cvi-abas button { padding: 9px 12px; font-size: 15px; }
  .cvi-selo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cvi-no, .cvi-titulo, .cvi-cartao, .cvi-fios path { animation: none; opacity: 1; stroke-dashoffset: 0; transform: rotate(var(--gira, 0deg)); }
  #aba-canvas.cv-entrando * { animation: none !important; }
}

/* inicio-vitrine.css */
/* Topo do Início no formato do Higgsfield (10/10): lançamentos, modos e divisões por ferramenta.
   Só usa os tokens da pele (--fundo-2, --neon...), então segue o dia/noite sozinho. */

/* ---------- lançamentos: carrossel de cartões grandes ---------- */
.ini-lanc { position: relative; margin: 0 -20px 34px; }
.il-trilho { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px - 3 * 14px) / 3.15); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 4px; scrollbar-width: none; }
.il-trilho::-webkit-scrollbar { display: none; }
.il-cartao { all: unset; cursor: pointer; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; min-width: 0; }
.il-arte { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--fundo-2); margin-bottom: 10px; }
.il-arte > video, .il-arte > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.il-cartao:hover .il-arte > video, .il-cartao:hover .il-arte > img { transform: scale(1.04); }
.il-cartao:hover .il-arte, .il-cartao:focus-visible .il-arte { outline: 2px solid var(--neon); outline-offset: -2px; }
.il-cartao b { font: 900 clamp(17px, 1.35vw, 21px)/1.05 var(--cond); font-stretch: 68%; text-transform: uppercase; color: var(--texto); }
.il-cartao:nth-child(3n + 2) b { color: var(--neon-forte); }
.il-cartao span { font-size: 16px; color: var(--texto-2); }

/* colagem: 3 a 5 quadros verticais inclinados, como o Ads Studio do Higgsfield */
.il-colagem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(70% 90% at 50% 100%, rgb(164 107 255 / 35%), transparent 70%), var(--fundo); }

.il-quadro { width: 25%; aspect-ratio: 9 / 16; margin: 0 -1.2%; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgb(0 0 0 / 45%); rotate: calc(var(--n) * 5deg); translate: 0 calc(var(--n) * var(--n) * 6px); transition: rotate 0.5s, translate 0.5s; background: #000; }
.il-quadro video, .il-quadro img { width: 100%; height: 100%; object-fit: cover; display: block; }
.il-rostos .il-quadro { width: 18%; aspect-ratio: 3 / 4; border: 3px solid #fff; }
.il-cartao:hover .il-quadro { rotate: calc(var(--n) * 7deg); translate: calc(var(--n) * 8px) calc(var(--n) * var(--n) * 6px - 6px); }

.il-seta { position: absolute; top: calc((100% - 50px) / 2); translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(255 255 255 / 92%); color: #0b0b0e; box-shadow: 0 6px 20px rgb(0 0 0 / 35%); }
.il-seta.esq { left: 28px; } .il-seta.dir { right: 28px; }
.il-seta[hidden] { display: none; }
.il-seta .ic { width: 20px; height: 20px; }

/* ---------- modos: promoção grande + 6 cartões ---------- */
.ini-modos { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.5fr); gap: 12px; margin-bottom: 18px; }
.ini-promo { all: unset; cursor: pointer; position: relative; overflow: hidden; border-radius: 18px; min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: #120b22; isolation: isolate; }
.ini-promo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.75; }
.ini-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(11 11 14 / 88%) 25%, rgb(11 11 14 / 25%)); }
.ip-texto { display: grid; gap: 4px; }
.ip-texto b { font: 900 clamp(28px, 2.6vw, 42px)/0.92 var(--cond); font-stretch: 68%; text-transform: uppercase; color: var(--neon-forte); }
:root[data-theme="light"] .ip-texto b { color: #ffffff; } /* o cartão continua escuro (vídeo por trás): título em branco, nunca roxo claro */
.ip-texto .ip-2 { color: #fff; opacity: 0.9; }
.ip-texto span { max-width: 36ch; color: rgb(255 255 255 / 75%); font-weight: 600; font-size: 16px; margin-top: 8px; }
.ini-promo .ip-btn { align-self: flex-start; padding: 13px 24px; font-size: 16px; }
.ini-promo:hover video { opacity: 0.9; }

.im-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.im-modo { all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 18px; min-height: 112px; border-radius: 16px; background: var(--fundo-2); transition: background 0.2s, outline-color 0.2s; outline: 1px solid var(--linha); outline-offset: -1px; }
.im-modo:hover, .im-modo:focus-visible { background: var(--fundo-3); outline: 2px solid var(--neon); outline-offset: -2px; }
.im-icone { position: absolute; top: 16px; left: 18px; color: var(--neon-forte); }
.im-icone .ic { width: 22px; height: 22px; }
.im-etq { position: absolute; top: 14px; right: 14px; font-size: 15px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--fundo-3); color: var(--texto-2); }
.im-modo b { font-size: 17px; font-weight: 700; color: var(--texto); display: flex; align-items: center; gap: 8px; }
.im-modo > span:last-child { font-size: 15px; color: var(--texto-2); }
.im-selo { font: italic 800 14px/1 var(--ui); padding: 4px 7px; border-radius: 6px; background: var(--neon); color: #0b0b0e; letter-spacing: 0.02em; vertical-align: middle; }
.im-selo.top { background: #ff4fa0; color: #fff; }
.titulo-caixa .im-selo { font-size: 15px; position: relative; top: -6px; }

/* herói vira faixa de criar mais compacta debaixo dos modos */
#aba-inicio .heroi { padding: 56px 0 34px; }
#aba-inicio .heroi h1 { font-size: clamp(44px, 6.4vw, 104px); }

/* ---------- divisões por ferramenta ---------- */
.ini-divisao { margin-bottom: 56px; }
.ini-divisao .secao-topo { margin-bottom: 16px; }
.id-grade { --h: clamp(300px, 30vw, 440px); display: flex; gap: 8px; height: var(--h); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.id-grade::-webkit-scrollbar { display: none; }
.id-item { position: relative; flex: 1 1 0; min-width: calc(var(--h) * 0.5625); height: 100%; border-radius: 14px; overflow: hidden; background: var(--fundo-2); cursor: pointer; scroll-snap-align: start; }
.id-item.grande { flex-grow: 2; min-width: calc(var(--h) * 0.8); }
.id-item video, .id-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.id-item:hover video, .id-item:hover img { transform: scale(1.04); }
.id-item:hover { outline: 2px solid var(--neon); outline-offset: -2px; }
.id-rotulo { position: absolute; left: 8px; bottom: 8px; font-size: 14px; font-weight: 700; color: #fff; padding: 4px 8px; border-radius: 7px; background: rgb(0 0 0 / 55%); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s; }
.id-item:hover .id-rotulo { opacity: 1; }
@media (hover: none) { .id-rotulo { opacity: 1; } }

.id-explica { flex: 1.6 1 0; min-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 26px; border-radius: 14px; background: radial-gradient(80% 90% at 0% 100%, rgb(164 107 255 / 26%), transparent 70%), var(--fundo-2); }
.id-explica b { font: 900 clamp(26px, 2.4vw, 36px)/0.95 var(--cond); font-stretch: 68%; text-transform: uppercase; }
.id-explica ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 10px; }
.id-explica li { counter-increment: p; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--texto-2); }
.id-explica li::before { content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-suave); color: var(--neon-forte); font-weight: 800; font-size: 15px; }
.id-explica .pri { align-self: flex-start; }

/* ---------- telas menores ---------- */
@media (max-width: 1200px) {
  .il-trilho { grid-auto-columns: calc((100% - 40px - 14px) / 2.2); }
  .ini-modos { grid-template-columns: 1fr; }
  .ini-promo { min-height: 220px; }
}
@media (max-width: 760px) {
  .ini-lanc { margin: 0 -12px 26px; }
  .il-trilho { grid-auto-columns: 84%; padding: 0 12px 4px; gap: 10px; scroll-padding: 0 12px; }
  .il-seta { display: none; }
  .im-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .im-modo { min-height: 0; padding: 14px; justify-content: flex-start; }
  .im-icone { position: static; margin-bottom: 6px; }
  .im-modo b { flex-wrap: wrap; gap: 4px 6px; font-size: 16px; }
  .im-etq { display: none; }
  .ini-promo { padding: 20px; min-height: 200px; }
  .id-grade { --h: 360px; margin: 0 -12px; padding: 0 12px; scroll-padding: 0 12px; }
  .id-explica { min-width: 260px; padding: 20px; }
  .ini-divisao .secao-topo { flex-wrap: wrap; gap: 10px; }
}

/* a esteira de modelos do herói e a página nunca passam da largura da tela no celular */
#aba-inicio .heroi { max-width: 100%; min-width: 0; }
#aba-inicio .heroi-modelos { max-width: 100%; overflow: hidden; }
@media (max-width: 760px) { #aba-inicio { overflow-x: clip; } }

/* porta.css */
/* Porta de entrada (cadastro e login), no formato do Higgsfield: vitrine de vídeos à esquerda, formulário à direita.
   Cores neutras e vídeo de verdade: nada de brilho, gradiente colorido ou ícone de "IA". */
#porta { width: min(1080px, 94vw); max-width: none; max-height: 92vh; border-radius: 22px; background: #111113; color: #f4f3f7; box-shadow: 0 40px 120px rgb(0 0 0 / 55%); overflow: hidden; }
#porta::backdrop { background: rgb(5 5 8 / 72%); backdrop-filter: blur(6px); }
.porta { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(640px, 88vh); }

/* ---------- vitrine ---------- */
.porta-vitrine { position: relative; margin: 10px; border-radius: 16px; overflow: hidden; background: #000; }
.porta-vitrine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity 0.6s ease; }
.porta-vitrine video.ativo { opacity: 1; }
.porta-vitrine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 78%)); pointer-events: none; }
.porta-legenda { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px 22px 20px; }
.porta-selo { display: inline-block; font-size: 15px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgb(255 255 255 / 14%); backdrop-filter: blur(8px); margin-bottom: 12px; }
.porta-legenda b { display: block; font: 900 clamp(30px, 3.4vw, 46px)/0.95 var(--cond, "Geist", sans-serif); font-stretch: 70%; text-transform: uppercase; letter-spacing: -0.01em; }
.porta-legenda p { margin: 10px 0 18px; color: rgb(255 255 255 / 78%); font-size: 16px; max-width: 42ch; }
.porta-abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.porta-abas button { border: 0; background: none; color: rgb(255 255 255 / 55%); padding: 0; text-align: left; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.porta-abas button > i { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 25%); margin-bottom: 8px; position: relative; overflow: hidden; }
.porta-abas button > i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.porta-abas button.visto > i::after { transform: scaleX(1); }
.porta-abas button.ativo { color: #fff; }
.porta-abas button.ativo > i::after { animation: porta-encher 5s linear forwards; }
@keyframes porta-encher { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .porta-abas button.ativo > i::after { animation: none; transform: scaleX(1); } .porta-vitrine video { transition: none; } }

/* ---------- formulário ---------- */
.porta-form { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 4vw, 64px); text-align: center; }
.porta-fechar { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 8%); color: #fff; display: grid; place-items: center; cursor: pointer; }
.porta-fechar:hover { background: rgb(255 255 255 / 16%); }
.porta-logo { width: 40px; height: 40px; margin: 0 auto 18px; }
.porta-form h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.porta-sub { margin: 8px 0 22px; color: rgb(255 255 255 / 62%); font-size: 16px; }
.porta-oferta { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%); font-size: 16px; }
.porta-oferta b { color: #fff; }
.porta-campos { display: grid; gap: 6px; text-align: left; }
.porta-campos label { font-size: 15px; color: rgb(255 255 255 / 62%); margin-top: 8px; }
.porta-campos input { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 14%); background: #18181b; color: #fff; font: inherit; font-size: 16px; }
.porta-campos input:focus { outline: none; border-color: rgb(255 255 255 / 45%); }
.porta-campos .cad-erro { margin: 6px 0 0; color: #ff8a8a; font-size: 15px; }
.porta-botao { margin-top: 16px; padding: 15px; border-radius: 12px; border: 0; background: #f4f3f7; color: #0a0a0b; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.porta-botao:hover { background: #fff; }
.porta-botao:disabled { opacity: 0.6; cursor: wait; }
.porta-trocar { margin: 18px 0 0; font-size: 16px; color: rgb(255 255 255 / 62%); }
.porta-trocar button { border: 0; background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.porta-nota { margin: 14px 0 0; font-size: 15px; color: rgb(255 255 255 / 42%); }
.porta-nota a { color: rgb(255 255 255 / 70%); }

/* ---------- celular: a vitrine vira uma faixa curta em cima ---------- */
@media (max-width: 760px) {
  #porta { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .porta { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100%; overflow-y: auto; }
  .porta-vitrine { height: 34vh; min-height: 220px; }
  .porta-legenda p { display: none; }
  .porta-legenda b { font-size: 26px; }
  .porta-form { padding: 28px 20px 32px; justify-content: flex-start; }
  .porta-fechar { position: fixed; top: 14px; right: 14px; z-index: 2; background: rgb(0 0 0 / 50%); }
}

/* criar.css */
/* Painel de criar no formato do Higgsfield (11/10): abas com sublinhado, área de envio com três ícones redondos
   sobrepostos e selo "Opcional", texto do roteiro ocupando o cartão inteiro e botão Gerar alto com borda 3D.
   Carregado por último: só sobrescreve. Os ícones e o título da área de envio são postos pelo criar.js. */

/* ---------- abas Vídeo / Imagem: texto com sublinhado, sem pílula ---------- */
.painel .seg {
  background: none; border-radius: 0; padding: 0 6px; margin: 4px 0 10px;
  display: flex; gap: 22px; border-bottom: 1px solid var(--linha);
}
.painel .seg button {
  flex: none; padding: 12px 0 13px; border-radius: 0; background: none; box-shadow: none;
  font-size: 16px; font-weight: 600; color: var(--texto-2); position: relative;
}
.painel .seg button:hover { color: var(--texto); }
.painel .seg button.ativo { background: none; color: var(--texto); }
.painel .seg button.ativo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--texto);
}
.painel .seg button .ic { display: none; }

/* ---------- cartões dos campos: borda fina, rótulo pequeno em cima ---------- */
.painel .campo { border: 1px solid var(--linha); background: color-mix(in srgb, var(--fundo-3) 85%, transparent); }
.painel .campo > label { font-size: 15px; font-weight: 500; color: var(--texto-2); }

/* o roteiro / prompt é o próprio cartão (como o "Script" do Higgsfield) */
.painel .campo textarea {
  background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 2px 0; min-height: 120px; font-size: 16px; line-height: 1.5; color: var(--texto); resize: vertical;
}
.painel .campo textarea::placeholder { color: color-mix(in srgb, var(--texto-2) 85%, transparent); }
.painel .campo:has(> textarea:focus) { border-color: rgb(164 107 255 / 55%); }

/* ---------- área de envio ---------- */
.soltar.hf {
  position: relative; display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 26px 16px 22px; border: 1.5px dashed rgb(255 255 255 / 14%); border-radius: 18px;
  background: color-mix(in srgb, var(--fundo-3) 70%, transparent); box-shadow: none;
  transition: border-color .2s, background .2s;
}
.soltar.hf::before { display: none; }
.soltar.hf:hover, .soltar.hf.sobre { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 6%, var(--fundo-3)); }
.soltar.hf > span { font-size: 15px; color: var(--texto-2); max-width: 300px; }

.soltar-icones { display: flex; margin-bottom: 10px; }
.soltar-icones i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-left: -8px;
  background: linear-gradient(180deg, #2a2a31, #1b1b20); color: var(--texto);
  box-shadow: 0 0 0 3px var(--fundo-3), 0 6px 16px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 10%);
  transition: transform .25s ease;
}
.soltar-icones i:first-child { margin-left: 0; }
.soltar-icones svg { width: 19px; height: 19px; }
.soltar.hf:hover .soltar-icones i:nth-child(1) { transform: translateX(-4px) rotate(-6deg); }
.soltar.hf:hover .soltar-icones i:nth-child(3) { transform: translateX(4px) rotate(6deg); }
.soltar.hf:hover .soltar-icones i:nth-child(2) { transform: translateY(-3px); }
.soltar-titulo { font-size: 17px; font-weight: 700; color: var(--texto); }
.soltar-opc {
  position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 14px; font-weight: 600;
  color: var(--texto-2); background: var(--fundo-3); border: 1px solid var(--linha); padding: 3px 9px; border-radius: 8px;
}

/* versão pequena: ícones e texto lado a lado */
.soltar.hf.pequeno { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; row-gap: 0; padding: 12px 14px; }
.soltar.hf.pequeno .soltar-icones { margin: 0; align-self: center; }
.soltar.hf.pequeno .soltar-icones i { width: 34px; height: 34px; margin-left: -10px; }
.soltar.hf.pequeno .soltar-icones i:first-child { margin-left: 0; }
.soltar.hf.pequeno .soltar-icones svg { width: 15px; height: 15px; }
.soltar.hf.pequeno > span { font-size: 15px; max-width: none; align-self: center; }
.soltar.hf.pequeno .soltar-opc { top: 50%; translate: 0 -50%; }
.soltar.hf.pequeno:has(.soltar-opc) { padding-right: 90px; }

/* com arquivo escolhido: some o convite, fica a prévia */
.soltar.hf:has(> img:not([hidden])) .soltar-icones, .soltar.hf:has(> video:not([hidden])) .soltar-icones,
.soltar.hf:has(> img:not([hidden])) .soltar-titulo, .soltar.hf:has(> video:not([hidden])) .soltar-titulo { display: none; }
.soltar.hf:has(> img:not([hidden])), .soltar.hf:has(> video:not([hidden])) { display: block; text-align: center; border-style: solid; }

/* ---------- linha do modelo (Modelo / Kling 3 Pro  >) ---------- */
.painel .campo:has(> .modelos) { padding: 12px 14px; }

/* ---------- botão Gerar: alto, com a borda de baixo em 3D ---------- */
.gerar { padding: 12px 12px 14px; }
.gerar .pri {
  white-space: nowrap;
  min-height: 56px; border-radius: 16px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #a777ff 0%, #8a4dff 60%, #7b3ff2 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -6px 0 var(--neon-sombra), 0 12px 30px -14px rgb(138 77 255 / 90%);
  padding-bottom: 19px;
}
.gerar .pri:hover { transform: translateY(-1px); }
.gerar .pri:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), inset 0 -2px 0 var(--neon-sombra), 0 6px 16px -10px rgb(138 77 255 / 90%); padding-bottom: 15px; }
.gerar .pri:disabled { filter: grayscale(.4) brightness(.8); transform: none; }

/* ---------- tema claro ---------- */
:root[data-theme="light"] .soltar.hf { border-color: rgb(20 16 40 / 16%); }
:root[data-theme="light"] .soltar-icones i { background: linear-gradient(180deg, #ffffff, #efedf5); color: #2b2733; box-shadow: 0 0 0 3px var(--fundo-3), 0 4px 12px rgb(20 16 40 / 12%); }
:root[data-theme="light"] .painel .seg button.ativo::after { background: var(--texto); }

@media (prefers-reduced-motion: reduce) {
  .soltar-icones i { transition: none; }
  .soltar.hf:hover .soltar-icones i { transform: none; }
}

/* com a faixa de oferta aberta no topo, o painel desconta a altura dela: senão o Gerar fica abaixo da tela */
body:has(#faixa:not([hidden])) :is(#aba-criar, #aba-ugc, #aba-movimento, #aba-genjutsu, #aba-edicao) .painel { max-height: calc(100vh - 150px); }

/* conectar.css */
/* Seção "Nise no seu chat": como ligar a Nise no Claude e no ChatGPT pelo MCP.
   Usa currentColor para funcionar no estúdio escuro, no tema claro e na página de venda branca. */
.conectar { --cx-linha: color-mix(in srgb, currentColor 13%, transparent); --cx-fundo: color-mix(in srgb, currentColor 4%, transparent); --cx-roxo: #8a5cff; }
.cx-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 22px; }
.cx-cartao { border: 1px solid var(--cx-linha); background: var(--cx-fundo); border-radius: 20px; padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.cx-app { display: flex; align-items: center; gap: 12px; }
.cx-app b { font-size: 18px; }
.cx-app small { display: block; opacity: 0.6; font-size: 12px; font-weight: 500; }
.cx-selo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; flex: none; }
.cx-selo.claude { background: #d97757; }
.cx-selo.chatgpt { background: #0d0d0d; border: 1px solid rgb(255 255 255 / 14%); }
.cx-selo svg { width: 22px; height: 22px; }
.cx-passos { margin: 0; padding: 0; list-style: none; counter-reset: cx; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }
.cx-passos li { counter-increment: cx; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.cx-passos li::before { content: counter(cx); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--cx-roxo) 18%, transparent); color: var(--cx-roxo); }
.cx-passos strong { font-weight: 650; }

/* conversa de exemplo */
.cx-chat { gap: 10px; }
.cx-chat .cx-app b { font-size: 15px; }
.cx-bolha { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.cx-bolha.eu { align-self: flex-end; background: var(--cx-roxo); color: #fff; border-bottom-right-radius: 5px; }
.cx-bolha.ia { align-self: flex-start; border: 1px solid var(--cx-linha); border-bottom-left-radius: 5px; }
.cx-bolha.ia em { font-style: normal; font-weight: 650; color: var(--cx-roxo); }
.cx-ferramenta { align-self: flex-start; font-size: 12px; opacity: 0.65; display: flex; align-items: center; gap: 6px; }
.cx-ferramenta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-roxo); }

/* endereço para copiar */
.cx-url { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.cx-url code { font: 600 15px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; padding: 13px 16px; border: 1px dashed color-mix(in srgb, var(--cx-roxo) 55%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--cx-roxo) 8%, transparent); overflow-wrap: anywhere; }
.cx-url button { font: inherit; font-weight: 650; font-size: 14px; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--cx-roxo); color: #fff; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.cx-url button:hover { transform: translateY(-1px); background: #7444ff; }
.cx-url button.ok { background: #12a150; }
.cx-ferramentas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.cx-ferramentas li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cx-linha); }
.cx-nota { text-align: center; font-size: 13px; opacity: 0.7; margin: 14px auto 0; max-width: 620px; }

/* na página de venda (branca) o bloco vem centralizado */
.bloco.conectar .cx-grade { max-width: 1140px; margin-left: auto; margin-right: auto; margin-top: 40px; }
.bloco.conectar .cx-cartao { background: #fff; }
.bloco.conectar .sub-bloco { text-align: center; color: var(--tinta-2); max-width: 620px; margin: 14px auto 0; }

/* comunidade.css */
/* Comunidade "Em alta / Novos" no formato do Higgsfield (11/10): grade de cartões com etiqueta do modo,
   tela cheia e menu em cima, coração com o número e Recriar embaixo. */
.comunidade { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linha, rgb(255 255 255 / 8%)); }
.comunidade[hidden] { display: none; }
.cm-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-titulo { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.cm-abas { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fundo-2, rgb(255 255 255 / 5%)); }
.cm-abas button { border: 0; background: transparent; color: var(--texto-2); font: inherit; font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cm-abas button.ativa { background: var(--fundo-3, rgb(255 255 255 / 12%)); color: var(--texto); }

/* alturas variadas como no Higgsfield: colunas, cada cartão na proporção da própria mídia */
.cm-grade { columns: 4 200px; column-gap: 10px; }
.cm-cartao { position: relative; aspect-ratio: 9 / 16; break-inside: avoid; margin-bottom: 10px; border-radius: 16px; overflow: hidden; background: var(--fundo-2); isolation: isolate; cursor: pointer; }
.cm-midia, .cm-midia > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-midia > * { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cm-cartao:hover .cm-midia > * { transform: scale(1.04); }
/* parado: só a mídia. Com o mouse em cima: sombra, etiqueta, botões, curtida e Recriar */
.cm-cartao::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / 40%), transparent 26%, transparent 58%, rgb(0 0 0 / 70%)); opacity: 0; transition: opacity 0.25s; }
.cm-cartao:hover::after, .cm-cartao:focus-within::after { opacity: 1; }
.cm-etq, .cm-base { opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.cm-base { transform: translateY(4px); }
.cm-cartao:hover .cm-etq, .cm-cartao:focus-within .cm-etq, .cm-cartao:hover .cm-base, .cm-cartao:focus-within .cm-base { opacity: 1; transform: none; }

.cm-etq { position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #fff; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgb(12 10 20 / 50%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / 12%); }
.cm-etq .ic { width: 13px; height: 13px; }
.cm-acoes-topo { position: absolute; z-index: 2; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: 0.25s; }
.cm-cartao:hover .cm-acoes-topo, .cm-cartao:focus-within .cm-acoes-topo { opacity: 1; transform: none; }
.cm-redondo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / 14%); background: rgb(12 10 20 / 55%); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; }
.cm-redondo .ic { width: 15px; height: 15px; }
.cm-redondo:hover { background: rgb(12 10 20 / 80%); }

.cm-modelo { display: none; position: absolute; z-index: 2; left: 10px; bottom: 46px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 85%); opacity: 0; transition: opacity 0.25s; }
.cm-cartao:hover .cm-modelo { opacity: 1; }
.cm-base { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-curtir { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgb(255 255 255 / 16%); background: rgb(12 10 20 / 45%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: inherit; font-size: 15px; font-weight: 700; padding: 4px 6px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgb(0 0 0 / 50%); }
.cm-coracao { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.cm-curtir:hover .cm-coracao { transform: scale(1.12); }
.cm-curtir.ativo .cm-coracao { fill: #ff4d6d; stroke: #ff4d6d; animation: cm-pulsa 0.35s ease-out; }
@keyframes cm-pulsa { 50% { transform: scale(1.3); } }
.cm-recriar { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; padding: 7px 13px; border-radius: 999px; background: linear-gradient(180deg, #9a6bff, #7c3aed); box-shadow: 0 6px 18px -6px rgb(124 58 237 / 70%), inset 0 1px 0 rgb(255 255 255 / 25%); transition: transform 0.2s, filter 0.2s; }
.cm-recriar:hover { transform: translateY(-1px); filter: brightness(1.08); }

.cm-menu { position: absolute; z-index: 3; top: 44px; right: 8px; min-width: 150px; display: grid; padding: 6px; border-radius: 12px; background: rgb(18 16 28 / 92%); border: 1px solid rgb(255 255 255 / 12%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgb(0 0 0 / 50%); }
.cm-menu a, .cm-menu button { display: block; text-align: left; border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.cm-menu a:hover, .cm-menu button:hover { background: rgb(255 255 255 / 8%); }

.cm-ver-mais { display: block; margin: 16px auto 0; border: 1px solid var(--linha, rgb(255 255 255 / 12%)); background: transparent; color: var(--texto); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.cm-ver-mais:hover { background: var(--fundo-2); }
.cm-ver-mais[hidden] { display: none; }

.cm-tela { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.cm-tela::backdrop { background: rgb(5 4 10 / 80%); backdrop-filter: blur(6px); }
.cm-tela > video, .cm-tela > img { display: block; max-width: min(92vw, 900px); max-height: 88vh; border-radius: 16px; }
.cm-fechar { position: absolute; top: -12px; right: -12px; }

@media (prefers-reduced-motion: reduce) {
  .cm-midia > *, .cm-coracao, .cm-acoes-topo { transition: none; animation: none; }
}
@media (hover: none) {
  .cm-acoes-topo, .cm-base, .cm-etq { opacity: 1; transform: none; }
  .cm-cartao::after { opacity: 1; }
}

/* genjutsu.css */
/* Genjutsu no formato do Higgsfield (11/10): referências com @menções no prompt, abas Histórico / Biblioteca /
   Como funciona ao lado, e o detalhe dos exemplos (vídeo à esquerda, prompt com as referências à direita). */

/* ---------- referências (até 4 imagens) ---------- */
.gen-refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gen-refs:empty { display: none; }
.gen-ref { position: relative; margin: 0; }
.gen-ref-foto { display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; background: var(--fundo-2); cursor: pointer; }
.gen-ref-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-ref-foto:hover { border-color: var(--neon); }
.gen-ref figcaption { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--neon-forte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen-ref-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(12 10 20 / 70%); color: #fff; cursor: pointer; }
.gen-ref-x .ic { width: 12px; height: 12px; }
.gen-refs-soltar { display: grid; justify-items: center; gap: 4px; padding: 22px 14px; margin-top: 8px; }
.gen-refs-soltar[hidden] { display: none; }
.gen-refs-soltar b { color: var(--texto); font-size: 15px; }
.gen-refs-icones { display: flex; margin-bottom: 6px; }
.gen-refs-icones i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--fundo-3, rgb(255 255 255 / 10%)); border: 2px solid var(--fundo); margin-left: -8px; color: var(--texto); }
.gen-refs-icones i:first-child { margin-left: 0; }
.gen-refs-icones .ic { width: 16px; height: 16px; }
#genRefsPers:not(:empty) { margin-top: 8px; }

/* ---------- prompt com realce das menções ---------- */
.gen-prompt { position: relative; }
.gen-realce, .gen-prompt textarea.com-realce { font: inherit; font-size: 16px; line-height: 1.5; letter-spacing: inherit; padding: 11px 13px; border: 1px solid transparent; border-radius: 12px; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
.gen-realce { position: absolute; inset: 0; overflow: hidden; color: transparent; pointer-events: none; background: var(--fundo); border-color: var(--linha); }
.gen-realce[hidden] { display: none; }
.gen-realce mark { color: transparent; background: var(--acento-suave); box-shadow: 0 0 0 1px var(--neon); border-radius: 5px; }
.gen-realce mark.falta { background: rgb(255 77 109 / 14%); box-shadow: 0 0 0 1px #ff4d6d; }
.gen-prompt textarea.com-realce { position: relative; background: transparent; min-height: 150px; }
.gen-mencoes { position: absolute; z-index: 20; left: 8px; right: 8px; top: calc(100% + 4px); display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: var(--fundo-2); border: 1px solid var(--linha); box-shadow: 0 16px 40px rgb(0 0 0 / 40%); max-height: 260px; overflow-y: auto; }
.gen-mencoes[hidden] { display: none; }
.gen-mencoes button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--texto); }
.gen-mencoes button img, .gen-m-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--fundo-3, rgb(255 255 255 / 10%)); }
.gen-mencoes button b { font-size: 15px; }
.gen-mencoes button small { font-size: 14px; color: var(--texto-2); }
.gen-mencoes button.ativo, .gen-mencoes button:hover { background: var(--acento-suave); }

/* ---------- abas ao lado dos resultados ---------- */
.gen-abas { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--fundo-2, rgb(255 255 255 / 5%)); flex-wrap: wrap; }
.gen-abas button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--texto-2); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.gen-abas button .ic { width: 15px; height: 15px; }
.gen-abas button.ativa { background: var(--fundo-3, rgb(255 255 255 / 12%)); color: var(--texto); }
.gen-painel[hidden] { display: none; }
.gen-bib-topo h2 { margin: 0 0 6px; }
.gen-bib-topo p { margin: 0; color: var(--texto-2); max-width: 60ch; line-height: 1.55; }
#genBiblioteca .comunidade { margin-top: 18px; padding-top: 0; border-top: 0; }
.gen-como ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.gen-como li { padding: 18px; border-radius: 16px; background: var(--fundo-2); border: 1px solid var(--linha); }
.gen-como li b { font-size: 15px; color: var(--neon-forte); letter-spacing: 0.04em; }
.gen-como li h3 { margin: 8px 0 6px; font-size: 17px; }
.gen-como li p { margin: 0; color: var(--texto-2); line-height: 1.5; font-size: 15px; }
.gen-como .dica { margin-top: 14px; }

/* ---------- detalhe do exemplo ---------- */
.cm-detalhe { width: min(96vw, 1400px); height: min(92vh, 900px); max-width: none; max-height: none; padding: 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: 20px; background: #0d0c12; color: #f5f5f7; overflow: hidden; }
.cm-detalhe[open] { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.cm-detalhe::backdrop { background: rgb(5 4 10 / 82%); backdrop-filter: blur(6px); }
.cm-det-palco { position: relative; display: grid; place-items: center; overflow: hidden; background: #000; min-height: 0; }
.cm-det-fundo { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px) brightness(0.45); }
.cm-det-midia { position: relative; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
.cm-det-visor { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgb(5 4 10 / 88%); backdrop-filter: blur(8px); }
.cm-det-visor[hidden] { display: none; }
.cm-det-visor > img, .cm-det-visor > video { max-width: 88%; max-height: 82%; object-fit: contain; border-radius: 14px; }
.cm-det-visor-rotulo { position: absolute; top: 16px; left: 16px; font-size: 15px; font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 8px; background: rgb(164 107 255 / 30%); box-shadow: 0 0 0 1px #a46bff; }
.cm-det-voltar { position: absolute; top: 14px; right: 14px; }

.cm-det-lado { position: relative; display: flex; flex-direction: column; min-height: 0; background: #16151c; border-left: 1px solid rgb(255 255 255 / 8%); }
.cm-det-autor { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.cm-det-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #2a2338, #14121c); border: 1px solid rgb(255 255 255 / 12%); }
.cm-det-avatar img { width: 22px; height: 22px; }
.cm-det-nome { flex: 1; min-width: 0; display: grid; }
.cm-det-nome b { font-size: 16px; }
.cm-det-nome small { font-size: 15px; color: #8f8f9c; }
.cm-det-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; display: grid; align-content: start; gap: 12px; }
.cm-det-titulo { margin: 0; font-size: 17px; }
.cm-det-caixa { padding: 12px; border-radius: 14px; background: #201f27; border: 1px solid rgb(255 255 255 / 6%); }
.cm-det-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cm-det-rotulo { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8f9c; }
.cm-det-copiar { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgb(255 255 255 / 12%); background: transparent; color: #f5f5f7; font: inherit; font-size: 15px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.cm-det-copiar .ic { width: 13px; height: 13px; }
.cm-det-refs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.cm-det-ref { position: relative; flex: 0 0 64px; height: 80px; padding: 0; border: 1px solid rgb(255 255 255 / 14%); border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.cm-det-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-det-ref span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 14px; font-weight: 700; color: #fff; padding: 10px 4px 3px; background: linear-gradient(transparent, rgb(0 0 0 / 80%)); text-align: center; }
.cm-det-ref:hover { border-color: #a46bff; }
.cm-det-play { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; transform: translate(-50%, -60%); color: #fff; filter: drop-shadow(0 1px 4px rgb(0 0 0 / 60%)); }
.cm-det-prompt { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #e6e6ec; }
.cm-det-prompt.curto { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.cm-chip { color: #d9c6ff; background: rgb(164 107 255 / 22%); box-shadow: 0 0 0 1px rgb(164 107 255 / 55%); border-radius: 5px; padding: 0 3px; font-weight: 700; }
.cm-det-ver { margin-top: 8px; border: 0; background: transparent; color: #8f8f9c; font: inherit; font-size: 15px; font-weight: 600; padding: 0; cursor: pointer; }
.cm-det-ver:hover { color: #fff; }
.cm-det-info summary { cursor: pointer; list-style: none; }
.cm-det-info summary::-webkit-details-marker { display: none; }
.cm-det-linha { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: #2a2932; font-size: 15px; }
.cm-det-linha span { color: #8f8f9c; }
.cm-det-linha b { text-align: right; font-weight: 600; }
.cm-det-acoes { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid rgb(255 255 255 / 6%); }
.cm-det-recriar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; color: #fff; padding: 13px; border-radius: 12px; background: linear-gradient(180deg, #9a6bff, #7c3aed); box-shadow: 0 8px 24px -8px rgb(124 58 237 / 80%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.cm-det-recriar:hover { filter: brightness(1.08); }
.cm-det-recriar:disabled { opacity: 0.6; cursor: default; }
.cm-det-recriar .ic { width: 17px; height: 17px; }
.cm-det-linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-det-sec { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgb(255 255 255 / 10%); background: #22212a; color: #f5f5f7; font: inherit; font-size: 15px; font-weight: 600; padding: 10px; border-radius: 12px; text-decoration: none; cursor: pointer; text-shadow: none; }
.cm-det-sec:hover { background: #2c2b35; }
.cm-det-sec .ic { width: 16px; height: 16px; }
.cm-det-lado .cm-menu { top: 58px; right: 16px; }
.cm-menu .cm-reportar-item { display: flex; align-items: center; gap: 8px; }
.cm-menu .cm-reportar-item .ic { width: 15px; height: 15px; }

/* ---------- reportar ---------- */
.cm-reporte { width: min(92vw, 420px); padding: 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: 18px; background: #16151c; color: #f5f5f7; }
.cm-reporte::backdrop { background: rgb(5 4 10 / 70%); backdrop-filter: blur(4px); }
.cm-reporte form { display: grid; gap: 12px; padding: 18px; }
.cm-rep-cab { display: flex; align-items: center; gap: 10px; }
.cm-rep-cab h3 { flex: 1; margin: 0; font-size: 17px; }
.cm-rep-cab > .ic { width: 18px; height: 18px; }
.cm-rep-sub { margin: 0; color: #8f8f9c; font-size: 15px; line-height: 1.5; }
.cm-rep-motivos { display: grid; gap: 6px; }
.cm-rep-motivo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #201f27; border: 1px solid rgb(255 255 255 / 6%); cursor: pointer; font-size: 15px; }
.cm-rep-motivo:has(input:checked) { border-color: #a46bff; background: rgb(164 107 255 / 12%); }
.cm-rep-motivo input { accent-color: #a46bff; margin: 0; }
.cm-reporte textarea { min-height: 80px; background: #201f27; border-color: rgb(255 255 255 / 8%); color: #f5f5f7; }
.cm-rep-status { margin: 0; min-height: 1em; font-size: 15px; color: #c3a0ff; }

@media (max-width: 860px) {
  .cm-detalhe { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .cm-detalhe[open] { grid-template-columns: 1fr; grid-template-rows: 46dvh minmax(0, 1fr); }
  .cm-det-lado { border-left: 0; border-top: 1px solid rgb(255 255 255 / 8%); }
  .gen-refs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}
.cm-titulo:empty { display: none; }
#genBiblioteca .cm-topo { justify-content: center; }

/* aviso + "Entendi" acima do Gerar (formato do Higgsfield) */
.gj-aviso { margin: 14px 0 4px; display: grid; gap: 10px; }
.gj-aviso p { margin: 0; display: flex; gap: 10px; align-items: flex-start; color: var(--erro, #ff6a4d); font-size: 15px; line-height: 1.5; font-weight: 600; }
.gj-aviso p .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.gj-entendi { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; cursor: pointer; }
.gj-entendi input { width: 18px; height: 18px; accent-color: var(--erro, #ff6a4d); }
.gj-aviso.chamar { animation: gj-chamar 0.5s; }
@keyframes gj-chamar { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Como funciona com template */
.gj-como { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: start; }
.gj-como-txt h2 { margin: 2px 0 18px; font-size: 34px; color: var(--neon-forte); letter-spacing: 0.01em; text-transform: uppercase; }
.gj-como-txt h3 { margin: 18px 0 4px; font-size: 16px; }
.gj-como-txt p { margin: 0; color: var(--texto-2); line-height: 1.5; font-size: 16px; }
.gj-como-sob { display: block; margin-top: 20px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon-forte); }
.gj-como-fotos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.gj-como-fotos figure { margin: 0; width: 150px; }
.gj-como-fotos img { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.gj-como-fotos figcaption { margin-top: 6px; font-size: 15px; font-weight: 600; }
.gj-parte { margin-top: 10px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 18px; background: var(--fundo-2); border: 1px solid var(--linha); }
.gj-parte-midia { position: relative; }
.gj-parte-midia video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; background: #000; }
.gj-parte-midia span { position: absolute; top: 8px; left: 8px; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 15px; font-weight: 700; text-align: center; }
.gj-parte-info { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--texto-2); min-width: 0; }
.gj-parte-info b { font-size: 17px; color: var(--texto); }
.gj-parte-tipo { font-size: 16px; color: var(--texto); }
.gj-parte-usa { margin-top: 4px; }
.gj-parte-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gj-parte-botoes button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linha); background: var(--fundo); color: var(--texto); font-weight: 600; font-size: 15px; cursor: pointer; }
.gj-parte-botoes button.pri { background: var(--neon); border-color: transparent; color: #fff; }
.gj-parte-prompt { grid-column: 1 / -1; margin: 0; padding: 12px; border-radius: 12px; background: var(--fundo); white-space: pre-wrap; font-size: 15px; line-height: 1.5; color: var(--texto-2); max-height: 260px; overflow: auto; }
.gj-como-tel { position: sticky; top: 90px; text-align: center; }
.gj-tel { padding: 8px; border-radius: 34px; border: 1px solid var(--linha); background: var(--fundo-2); }
.gj-tel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; display: block; background: #000; }
.gj-como-tel small { display: block; margin-top: 10px; color: var(--texto-2); font-size: 15px; }
@media (max-width: 900px) {
  .gj-como { grid-template-columns: 1fr; }
  .gj-como-tel { position: static; max-width: 280px; margin: 0 auto; }
  .gj-parte { grid-template-columns: 110px minmax(0, 1fr); }
  .gj-como-txt h2 { font-size: 26px; }
}

/* genjutsu-painel.css */
/* Painel do Genjutsu no formato do Higgsfield (11/10): abas, cartão do vídeo inclinado, cartão das referências,
   linhas Estilo / Prompt / Modelo / Qualidade com menus ao lado, e Gerar com o custo dentro do botão. */
#aba-genjutsu .painel { display: flex; flex-direction: column; gap: 10px; }
#aba-genjutsu .painel > * { flex-shrink: 0; }
.gj-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fundo-2); border: 1px solid var(--linha); }
.gj-abas button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: var(--texto-2); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 8px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.gj-abas button .ic { width: 15px; height: 15px; }
.gj-abas button.ativa { background: var(--fundo-3, rgb(255 255 255 / 10%)); color: var(--texto); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }

.gj-cartao { position: relative; border-radius: 16px; background: var(--fundo-2); border: 1px solid var(--linha); }
.gj-cartao.soltar { margin: 0; padding: 0; text-align: center; border-style: solid; }
.gj-vazio { display: grid; justify-items: center; gap: 6px; padding: 26px 18px; margin: 0; text-align: center; border: 1.5px dashed var(--linha); border-radius: 16px; cursor: pointer; background: transparent; }
.gj-vazio[hidden] { display: none; }
.gj-vazio b { color: var(--texto); font-size: 16px; line-height: 1.35; max-width: 26ch; }
.gj-vazio small { color: var(--texto-2); font-size: 15px; }
.gj-bolha { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 9%); color: var(--texto); margin-bottom: 4px; }
.gj-bolha .ic { width: 18px; height: 18px; }
.gj-icones { display: flex; margin-bottom: 4px; }
.gj-icones i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #2a2833; border: 2px solid var(--fundo-2); margin-left: -8px; color: var(--texto); }
.gj-icones i:first-child { margin-left: 0; }
.gj-icones .ic { width: 16px; height: 16px; }

/* vídeo enviado: cartão inclinado como no Higgsfield */
.gj-video.cheio { padding: 18px 22px; cursor: pointer; }
.gj-video-cheio { position: relative; display: grid; place-items: center; }
.gj-video-cheio[hidden] { display: none; }
.gj-video-cheio video { width: 100%; max-height: 190px; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 12px; border: 3px solid #fff; transform: rotate(-3deg); box-shadow: 0 14px 30px -12px rgb(0 0 0 / 70%); background: #000; }
.gj-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(12 10 20 / 80%); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.gj-x .ic { width: 12px; height: 12px; }
.gj-video-cheio:hover .gj-x, .gj-ref:hover .gj-x, .gj-x:focus-visible { opacity: 1; }

/* referências: "+" e miniaturas quadradas */
.gj-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px 18px; }
.gj-grade[hidden] { display: none; }
.gj-mais, .gj-ref > button:first-child { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; padding: 0; border: 0; cursor: pointer; overflow: hidden; }
.gj-mais { display: grid; place-items: center; background: var(--fundo-3, rgb(255 255 255 / 8%)); color: var(--texto-2); }
.gj-mais .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; border: 1.5px solid currentColor; }
.gj-mais:hover { color: var(--texto); }
.gj-ref { position: relative; margin: 0; }
.gj-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gj-n { position: absolute; left: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgb(12 10 20 / 75%); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; pointer-events: none; }
.gj-ref .gj-x { top: 4px; right: 4px; }
.gj-autoriza { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--texto-2); padding: 0 4px; }
.gj-autoriza[hidden] { display: none; }

/* linhas Estilo / Prompt / Modelo / Qualidade */
.gj-linha-wrap { position: relative; }
.gj-linha { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); font: inherit; padding: 14px 16px; border-radius: 14px; cursor: pointer; }
.gj-linha:hover { background: var(--fundo-3, rgb(255 255 255 / 6%)); }
.gj-linha > b { font-size: 16px; }
.gj-dir { margin-left: auto; color: var(--texto-2); font-size: 15px; }
.gj-linha.com-valor .gj-dir { color: var(--texto); font-weight: 600; }
.gj-seta { width: 16px; height: 16px; color: var(--texto-2); flex: none; }
.gj-linha-2 { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.gj-linha-2 small { grid-column: 1; color: var(--texto-2); font-size: 15px; }
.gj-linha-2 > b, .gj-linha-2 > span { grid-column: 1; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.gj-linha-2 .gj-seta { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.gj-logo-gj { width: 15px; height: 15px; color: var(--neon-forte); }
.gj-novo { font-size: 14px; font-weight: 700; color: var(--neon-forte); background: var(--acento-suave); border: 1px solid rgb(164 107 255 / 35%); padding: 1px 6px; border-radius: 6px; }
.gj-estilo-pilha { position: relative; width: 52px; height: 34px; flex: none; }
.gj-estilo-pilha img { position: absolute; top: 2px; width: 24px; height: 30px; object-fit: cover; border-radius: 5px; border: 1.5px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 40%); }
.gj-estilo-pilha img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.gj-estilo-pilha img:nth-child(2) { left: 13px; z-index: 1; }
.gj-estilo-pilha img:nth-child(3) { left: 26px; transform: rotate(10deg); }
.gj-prompt-linha { cursor: default; justify-content: space-between; }
.gj-prompt-linha:hover { background: var(--fundo-2); }
.gj-chave { position: relative; width: 36px; height: 20px; flex: none; cursor: pointer; }
.gj-chave input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.gj-chave span { position: absolute; inset: 0; border-radius: 999px; background: rgb(255 255 255 / 18%); transition: background 0.2s; }
.gj-chave span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.gj-chave input:checked + span { background: var(--neon); }
.gj-chave input:checked + span::after { transform: translateX(16px); }
.gj-chave input:focus-visible + span { outline: 2px solid var(--neon-forte); outline-offset: 2px; }
#genPromptCaixa[hidden] { display: none; }

/* menus suspensos (modelos, qualidade, estilos, "+") */
.gj-pop { position: absolute; z-index: 30; left: calc(100% + 10px); top: 0; width: 300px; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: #1b1a21; border: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 20px 50px rgb(0 0 0 / 55%); color: #f5f5f7; }
.gj-pop[hidden] { display: none; }
.gj-pop-curto { width: 260px; max-width: calc(100vw - 32px); }
.gj-pop-tit { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #8f8f9c; padding: 6px 8px 8px; }
.gj-pop-tit .ic { width: 14px; height: 14px; }
.gj-pop button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; cursor: pointer; }
.gj-pop button:hover, .gj-pop button.ativo { background: rgb(255 255 255 / 7%); }
.gj-pop button > .ic { margin-left: auto; width: 16px; height: 16px; color: var(--neon-forte); }
.gj-pop button small { display: block; color: #8f8f9c; font-size: 15px; margin-top: 2px; }
.gj-pop button img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.gj-pop-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 7%); }
.gj-pop-ic .ic { width: 17px; height: 17px; }
.gj-pop-mais { left: 18px; top: calc(100% - 10px); width: 240px; }

/* Gerar com o custo dentro do botão */
.gerar.gj-gerar { display: grid; grid-template-columns: 1fr; gap: 6px; }
.gerar.gj-gerar .pri { width: 100%; max-width: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gj-custo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.gj-custo .ic { width: 16px; height: 16px; }
.gj-gerar small { text-align: center; color: var(--texto-2); font-size: 14px; min-height: 1em; }
@media (max-width: 860px) {
  .gj-pop { left: 0; top: calc(100% + 6px); width: 100%; }
}
#genPromptCaixa textarea.com-realce { overflow: hidden; resize: none; min-height: 120px; }

/* edicao.css */
/* Vídeo > Editar (formato do Video Edit do Higgsfield) e o seletor Criar · Editar · Motion Control */
#aba-edicao .painel { display: flex; flex-direction: column; gap: 10px; }
#aba-edicao .painel > * { flex-shrink: 0; }

.ve-abas { display: flex; gap: 4px; padding: 4px; margin-bottom: 6px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.ve-abas[hidden] { display: none; }
.ve-abas button { flex: 1; padding: 10px 6px; white-space: nowrap; border: 0; border-radius: 12px; background: transparent; color: var(--texto-2, #9a98a6); font: 600 16px/1 inherit; cursor: pointer; transition: background .2s, color .2s; }
.ve-abas button:hover { color: var(--texto, #fff); }
.ve-abas button.ativa { background: rgb(255 255 255 / 8%); color: var(--texto, #fff); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }

.ve-atalho { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: rgb(255 255 255 / 4%); color: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ve-atalho:hover { background: rgb(164 107 255 / 10%); border-color: rgb(164 107 255 / 35%); }
.ve-atalho > .ic:first-child { width: 26px; height: 26px; color: var(--neon, #a46bff); }
.ve-atalho span { flex: 1; display: grid; gap: 2px; }
.ve-atalho b { font-size: 16px; letter-spacing: .02em; }
.ve-atalho small { color: var(--texto-2, #9a98a6); font-size: 15px; }

.ve-rotulo { margin-top: 6px; font-weight: 600; font-size: 16px; }
.ve-rotulo small { margin-left: 6px; color: var(--texto-2, #9a98a6); font-weight: 400; font-size: 15px; }
#aba-edicao textarea { width: 100%; resize: vertical; min-height: 96px; }
#aba-edicao .dica:empty { display: none; }

.ve-vazio { text-align: center; padding: 80px 16px; }
.ve-vazio h3 { font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.02; text-transform: uppercase; }
.ve-vazio h3 em { font-style: normal; color: var(--neon, #a46bff); }
.ve-vazio p { max-width: 520px; margin: 12px auto 0; color: var(--texto-2, #9a98a6); }

.ve-ideias { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ve-ideia { display: grid; gap: 6px; padding: 14px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: rgb(255 255 255 / 4%); color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.ve-ideia:hover { border-color: rgb(164 107 255 / 45%); transform: translateY(-2px); }
.ve-ideia span { color: var(--texto-2, #9a98a6); font-size: 15px; line-height: 1.4; }

/* criar-modelo.css */
/* Vídeo/Imagem > Criar no formato do Higgsfield: cartão do modelo com lista ao lado, Nível Padrão/Pró,
   prompt com contador, Gerar com o custo e as abas Histórico · Galeria · Modelos */
.vc-modelo { padding: 12px 14px; }
.vc-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(255 255 255 / 6%); }
.vc-logo .logo-modelo, .vc-pop .gj-pop-ic .logo-modelo { width: 24px; height: 24px; }
.vc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vc-txt b { font-size: 16px; text-transform: uppercase; letter-spacing: .01em; }
.vc-txt small { color: var(--texto-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-pop { width: 340px; max-height: min(560px, calc(100vh - 24px)); overflow: auto; }
.vc-pop button { padding: 10px 12px; }
.vc-pop button b { font-size: 16px; }

.vc-nivel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fundo-2); border: 1px solid var(--linha); }
.vc-nivel button { border: 0; background: transparent; color: var(--texto-2); font: inherit; font-weight: 700; font-size: 16px; padding: 11px 8px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.vc-nivel button:hover:not(:disabled) { color: var(--texto); }
.vc-nivel button.ativo { background: rgb(255 255 255 / 10%); color: var(--texto); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); }
.vc-nivel button:disabled { opacity: .35; cursor: not-allowed; }

.vc-rotulo-prompt { display: flex; align-items: baseline; gap: 6px; }
.vc-conta { margin-left: auto; color: var(--texto-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

#aba-criar .resultados .ve-vazio { padding-top: 18vh; }
.vc-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.vc-cartao { display: grid; gap: 8px; align-content: start; text-align: left; padding: 16px; border: 1px solid var(--linha); border-radius: 16px; background: var(--fundo-2); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.vc-cartao:hover { border-color: color-mix(in srgb, var(--neon, #a46bff) 50%, transparent); transform: translateY(-2px); }
.vc-cartao-topo { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.vc-cartao-topo .logo-modelo, .vc-cartao-topo .ponto-modelo { grid-row: span 2; width: 28px; height: 28px; }
.vc-cartao-topo b { font-size: 16px; }
.vc-cartao-topo small { color: var(--texto-2); font-size: 15px; }
.vc-cartao-resumo { color: var(--neon, #a46bff); font-size: 15px; font-weight: 600; }
.vc-cartao-desc { color: var(--texto-2); font-size: 15px; line-height: 1.45; }
.vc-cartao-preco { color: var(--texto-2); font-size: 15px; border-top: 1px solid var(--linha); padding-top: 8px; }

/* motion-control.css */
/* Vídeo > Motion Control no formato do Higgsfield (11/10): cartão do modelo com a lista
   "Escolha o modelo", cartão grande "Vídeo de entrada", Gerar largo e abas Histórico/Galeria/Modelos */
#aba-movimento .painel { display: flex; flex-direction: column; gap: 10px; }
#aba-movimento .painel > * { flex-shrink: 0; }
#aba-movimento .campo { margin: 0; }
#aba-movimento .gen-abas { margin-bottom: 18px; }

.mc-modelo-caixa { position: relative; }
.mc-modelo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--linha, rgb(255 255 255 / 8%)); border-radius: 16px; background: var(--fundo-2, rgb(255 255 255 / 4%)); color: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.mc-modelo:hover, .mc-modelo[aria-expanded="true"] { border-color: rgb(164 107 255 / 40%); background: rgb(164 107 255 / 8%); }
.mc-modelo-txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.mc-modelo-txt b { font: 800 16px/1.1 Archivo, Inter, sans-serif; letter-spacing: .02em; }
.mc-modelo-txt small { color: var(--texto-2, #9a98a6); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-modelo > .ic { width: 16px; height: 16px; color: var(--texto-2, #9a98a6); transition: transform .2s; }
.mc-modelo[aria-expanded="true"] > .ic { transform: rotate(90deg); }
.mc-modelo-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 200deg, #2ee6a6, #3aa0ff, #a46bff, #ff6bd6, #2ee6a6); color: #0b0b10; font: 900 16px/1 Archivo, Inter, sans-serif; }

.mc-menu { position: fixed; z-index: 60; padding: 8px; border: 1px solid var(--linha, rgb(255 255 255 / 10%)); border-radius: 16px; background: var(--fundo-3, #1c1b22); box-shadow: 0 24px 60px -18px rgb(0 0 0 / 70%); backdrop-filter: blur(18px); }
.mc-menu[hidden] { display: none; }
.mc-menu-titulo { margin: 4px 8px 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2, #9a98a6); }
.mc-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.mc-op + .mc-op { margin-top: 4px; }
.mc-op:hover, .mc-op.ativo { background: rgb(255 255 255 / 7%); }
.mc-op > span:not(.mc-modelo-ic) { flex: 1; display: grid; gap: 3px; }
.mc-op b { font-size: 16px; font-weight: 600; }
.mc-op small { color: var(--texto-2, #9a98a6); font-size: 15px; }
.mc-op > .ic { width: 16px; height: 16px; color: var(--texto, #fff); }

.soltar.mc-video { display: grid; place-items: center; min-height: 190px; padding: 0; border: 1px solid var(--linha, rgb(255 255 255 / 8%)); border-radius: 16px; background: var(--fundo-2, rgb(255 255 255 / 4%)); overflow: hidden; }
.soltar.mc-video:hover, .soltar.mc-video.sobre { border-color: rgb(164 107 255 / 45%); }
/* o criar.js enfeita toda .soltar com ícones e título; aqui o cartão já tem os seus */
.soltar.mc-video .soltar-icones, .soltar.mc-video .soltar-titulo, .soltar.mc-video .soltar-opc { display: none; }
.mc-video-vazio { display: grid; justify-items: center; gap: 6px; padding: 28px 18px; }
.mc-video-vazio[hidden], .mc-video-info[hidden] { display: none; }
.mc-video-vazio .ic { width: 26px; height: 26px; color: var(--texto-2, #9a98a6); margin-bottom: 6px; }
.mc-video-vazio b { color: var(--texto, #fff); font-size: 16px; }
.mc-video-vazio small { color: var(--texto-2, #9a98a6); font-size: 15px; }
.soltar.mc-video video { width: 100%; max-height: 300px; object-fit: contain; background: #000; display: block; }
.soltar.mc-video.cheio { place-items: stretch; }
.mc-video-info { padding: 8px 12px; font-size: 15px; color: var(--texto-2, #9a98a6); }

.mc-link { margin-top: -2px; }
.mc-link input { font-size: 15px; }
.mc-pico { margin: 4px 0 0; color: var(--texto-2, #9a98a6); font-size: 15px; font-weight: 600; }

:root[data-theme="light"] .mc-op:hover, :root[data-theme="light"] .mc-op.ativo { background: rgb(0 0 0 / 5%); }
:root[data-theme="light"] .mc-menu { background: #fff; box-shadow: 0 24px 60px -18px rgb(0 0 0 / 25%); }

/* personagens.css */
/* Personagens (11/10): cartão com a foto grande e limpa, em retrato, nome por cima de um degradê suave.
   As outras fotos viram miniaturas no canto; Usar e Apagar aparecem embaixo do nome. */
#listaPersonagens.lista-personagens { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pers.pers-cartao { position: relative; padding: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 20px; background: var(--fundo-2); border: 1px solid rgb(255 255 255 / 6%); box-shadow: 0 20px 50px -24px rgb(0 0 0 / 70%); }
.pers-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pers-cartao:hover .pers-foto { transform: scale(1.04); }
.pers-cartao::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(8 8 12 / 55%) 35%, rgb(8 8 12 / 92%)); pointer-events: none; }

.pers-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 16px; color: #fff; }
.pers-cartao .pers-info b { font: 800 20px/1.1 Archivo, Inter, sans-serif; letter-spacing: .01em; }
.pers-cartao .pers-info small { margin: 0 0 10px; color: rgb(255 255 255 / 72%); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pers-acoes { display: flex; gap: 8px; }
.pers-acoes .pri { flex: 1; padding: 10px 14px; border-radius: 12px; font-size: 16px; }
.pers-apagar { width: 42px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: rgb(255 255 255 / 10%); color: #fff; cursor: pointer; backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.pers-apagar:hover { background: rgb(255 70 90 / 25%); border-color: rgb(255 70 90 / 50%); }
.pers-apagar .ic { width: 17px; height: 17px; }

.pers-minis { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; gap: 6px; }
.pers-minis button { width: 38px; height: 38px; padding: 0; border: 2px solid rgb(255 255 255 / 25%); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.pers-minis button.ativo, .pers-minis button:hover { opacity: 1; border-color: #fff; }
.pers-minis img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* no claro a foto continua com o degradê escuro (o texto fica em cima dela) */
:root[data-theme="light"] .pers.pers-cartao { border-color: rgb(0 0 0 / 6%); box-shadow: 0 20px 50px -28px rgb(0 0 0 / 35%); }

/* audio.css */
/* Nise Áudio (11/10): layout do Audio do Higgsfield. Barra lateral com Minhas vozes e o Discord,
   lista de áudios no meio e o compositor fixo embaixo (seletor giratório, texto, modelo, cartão da voz, Gerar). */
#aba-audio.au.ativa { display: grid; }
.au {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 80px);
  padding: 14px 16px 0;
  max-width: none;
}
.au.au-sem-lado { grid-template-columns: minmax(0, 1fr); }
.au.au-sem-lado .au-lado { display: none; }
.au .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au svg:not(.ic) { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(.au) button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- barra lateral ---------- */
.au-lado {
  position: sticky; top: 76px; align-self: start;
  display: flex; flex-direction: column; gap: 6px;
  height: calc(100vh - 92px); padding: 4px 4px 14px; overflow: auto;
}
.au-quad { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--fundo-3); flex: none; }
.au-quad .ic { width: 16px; height: 16px; }
.au-ocultar, .au-item, .au-criar-voz.pequeno {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 500;
}
.au-ocultar { color: var(--texto-2); }
.au-ocultar:hover, .au-criar-voz.pequeno:hover { background: var(--fundo-2); }
.au-sec { margin: 14px 4px 2px; color: var(--texto-2); font-size: 16px; }
.au-item { padding: 9px 8px; }
.au-item.ativo { background: var(--fundo-2); }
.au-rotulo { margin: 14px 4px 0; color: var(--texto-2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.au-vazio-lado { margin: 4px 4px 6px; color: var(--texto-2); font-size: 15px; line-height: 1.55; }
.au-criar-voz.pequeno { font-weight: 700; font-size: 16px; }
.au-espaco { flex: 1; min-height: 16px; }
.au-voz { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 12px; }
.au-voz:hover, .au-voz.ativa { background: var(--fundo-2); }
.au-voz.ativa { box-shadow: inset 0 0 0 1px var(--acento); }
.au-voz.espera { opacity: 0.7; }
.au-tocar-mini { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fundo-3); flex: none; }
.au-tocar-mini .ic { width: 14px; height: 14px; }
.au-voz-nome { flex: 1; min-width: 0; display: grid; border: 0; background: none; text-align: left; padding: 0; }
.au-voz-nome b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-voz-nome small { color: var(--texto-2); font-size: 14px; }
.au-voz-tirar { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--texto-2); opacity: 0; }
.au-voz:hover .au-voz-tirar, .au-voz-tirar:focus-visible { opacity: 1; }
.au-voz-tirar:hover { color: #ff6b6b; background: var(--fundo-3); }

.au-discord { padding: 16px 14px; border-radius: 18px; background: var(--fundo-2); border: 1px solid var(--linha); }
.au-discord b { display: block; font-size: 16px; }
.au-discord p { margin: 8px 0 14px; color: var(--texto-2); font-size: 15px; line-height: 1.55; }
.au-discord-botao {
  display: block; padding: 10px 12px; border-radius: 12px; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--neon-forte); color: #160b2c; box-shadow: 0 2px 0 var(--neon-sombra);
}
.au-discord-botao:hover { filter: brightness(1.06); }
.au-criar-voz.grande {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; padding: 13px; border: 1px solid var(--linha);
  border-radius: 16px; background: var(--fundo-2); font-weight: 700; font-size: 16px;
}
.au-criar-voz.grande:hover { background: var(--fundo-3); }

/* ---------- centro ---------- */
.au-centro { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 92px); }
.au-topo { display: flex; align-items: center; gap: 10px; }
.au-mostrar { display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--fundo-2); }
.au-sem-lado .au-mostrar { display: grid; }
.au-filtro { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--fundo-2); }
.au-filtro button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--texto-2); font-weight: 600; }
.au-filtro button.ativo { background: var(--fundo-3); color: var(--texto); }
.au-coracao { width: 16px; height: 16px; }
.au-vista { margin-left: auto; display: inline-flex; gap: 4px; }
.au-vista button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--texto-2); }
.au-vista button svg { width: 18px; height: 18px; }
.au-vista button.ativo { background: var(--fundo-2); color: var(--texto); }

.au-feed { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 0 230px; }
.au-feed.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; }
.au-vazio { margin: auto; padding: 40px 16px; text-align: center; }
.au-vazio h2 { margin: 0; font-family: var(--cond); font-stretch: 75%; font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; }
.au-vazio h2 span { color: var(--neon-forte); }
.au-vazio p { margin: 14px auto 0; max-width: 560px; color: var(--texto-2); font-size: 17px; }

.au-linha {
  --prog: 0%;
  display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(120px, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 16px; background: var(--fundo-2); border: 1px solid var(--linha);
}
.au-linha.tocando { border-color: var(--acento); }
.au-feed.grade .au-linha { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tocar info" "onda onda" "acoes acoes"; }
.au-feed.grade .au-onda { grid-area: onda; }
.au-feed.grade .au-acoes { grid-area: acoes; justify-content: flex-end; }
.au-tocar { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--texto); color: var(--fundo); }
.au-tocar .ic { width: 17px; height: 17px; }
.au-tocar .ic, .au-tocar-mini .ic, .au-cartao-play .ic { fill: currentColor; }
.au-tocar.falhou { background: rgb(255 107 107 / 15%); color: #ff6b6b; }
.au-tocar.girando { background: none; border: 3px solid var(--fundo-3); border-top-color: var(--acento); animation: au-gira 0.9s linear infinite; }
@keyframes au-gira { to { transform: rotate(360deg); } }
.au-info { display: grid; gap: 3px; min-width: 0; }
.au-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.au-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-2); font-size: 15px; }
.au-onda { display: flex; align-items: center; gap: 3px; height: 32px; }
.au-onda i { flex: 1; min-width: 2px; max-width: 5px; height: var(--h); border-radius: 3px; background: var(--fundo-3); }
.au-linha.tocando .au-onda i { background: color-mix(in srgb, var(--acento) 30%, var(--fundo-3)); }
.au-linha .au-onda i.on { background: var(--acento); }
.au-acoes { display: flex; align-items: center; gap: 2px; }
.au-acoes button, .au-acoes a { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--texto-2); }
.au-acoes button:hover, .au-acoes a:hover { background: var(--fundo-3); color: var(--texto); }
.au-acoes .curtido { color: #ff5c8a; }
.au-acoes .curtido svg { fill: currentColor; }

/* ---------- compositor ---------- */
.au-compositor {
  position: sticky; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px;
  width: min(1120px, 100%); margin: auto auto 0; padding: 0 0 16px;
  background: linear-gradient(to top, var(--fundo) 78%, transparent);
}
.au-msg { grid-column: 1 / -1; margin: 0; min-height: 0; text-align: center; }
.au-msg:empty { display: none; }

.au-dial {
  --ang: -38deg;
  position: relative; display: flex; align-items: center; height: 150px; padding-left: 108px;
  border-radius: 22px; background: var(--fundo-2); border: 1px solid var(--linha); overflow: hidden;
}
.au-botao-giro {
  position: absolute; left: -46px; top: 50%; width: 140px; height: 140px; margin-top: -70px; border-radius: 50%;
  background: radial-gradient(circle at 62% 40%, #4a4a52, #1b1b20 62%); box-shadow: inset 0 2px 3px rgb(255 255 255 / 12%), 0 6px 18px rgb(0 0 0 / 45%);
  transform: rotate(var(--ang)); transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
:root[data-theme="light"] .au-botao-giro { background: radial-gradient(circle at 62% 40%, #ffffff, #cfcbd9 70%); box-shadow: inset 0 2px 3px #fff, 0 6px 16px rgb(20 16 40 / 18%); }
.au-ponteiro { position: absolute; right: 12px; top: 50%; width: 30px; height: 6px; margin-top: -3px; border-radius: 3px; background: #f1ecff; box-shadow: 0 0 10px var(--neon); }
.au-modos { display: grid; gap: 10px; border-left: 1px solid var(--linha); padding-left: 14px; }
.au-modos button { position: relative; border: 0; background: none; padding: 0; text-align: left; color: var(--texto-2); font-size: 15px; font-weight: 600; white-space: nowrap; }
.au-modos button.ativo { color: var(--texto); font-weight: 700; }
.au-modos button.ativo::before { content: ""; position: absolute; left: -9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--neon-forte); }

.au-caixa {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch;
  padding: 14px; border-radius: 22px; background: var(--fundo-2); border: 1px solid var(--linha);
}
.au-entrada { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.au-entrada textarea {
  flex: 1; min-height: 70px; padding: 6px 4px; border: 0; background: none; resize: none; color: var(--texto); font: inherit; font-size: 16px; line-height: 1.5; outline: none;
}
.au-entrada textarea::placeholder { color: var(--texto-2); }
.au-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.au-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--fundo-3); font-size: 15px; font-weight: 600;
}
.au-chip:hover { filter: brightness(1.15); }
.au-chip.ligado { box-shadow: inset 0 0 0 1px var(--acento); color: var(--neon-forte); }
.au-seta { width: 13px; height: 13px; opacity: 0.7; }
.au-ic-modelo { display: inline-grid; }
.au-ic-modelo svg { width: 16px; height: 16px; }
.au-conta { margin-left: auto; color: var(--texto-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.au-dica { margin: 0; color: var(--texto-2); font-size: 15px; line-height: 1.45; }
.au-autorizo { display: inline-flex; align-items: center; gap: 7px; color: var(--texto-2); font-size: 15px; cursor: pointer; }
.au-autorizo input { accent-color: var(--neon); }

.au-soltar {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 12px 14px;
  border: 1.5px dashed var(--linha); border-radius: 16px; cursor: pointer; color: var(--texto-2);
}
.au-soltar > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.au-soltar b { color: var(--texto); font-size: 16px; }
.au-soltar small { width: 100%; padding-left: 28px; font-size: 15px; }
.au-soltar.sobre, .au-soltar:hover { border-color: var(--acento); }
.au-soltar.cheio { border-style: solid; background: var(--fundo-3); }
.au-soltar.cheio small { width: auto; padding: 0; }
.au-trocar-arq { padding: 6px 12px; border: 0; border-radius: 10px; background: var(--fundo-2); font-size: 15px; font-weight: 600; }

.au-direita { display: flex; gap: 12px; }
.au-cartao-voz {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; width: 214px; padding: 12px 14px;
  border-radius: 16px; background: var(--fundo-3); cursor: pointer;
}
.au-cartao-voz:hover { filter: brightness(1.1); }
.au-cartao-rotulo { color: var(--texto-2); font-size: 15px; font-weight: 600; }
.au-cartao-nome { padding-right: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--cond); font-stretch: 80%; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.au-cartao-play { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--texto); color: var(--fundo); }
.au-cartao-play .ic { width: 12px; height: 12px; }
.au-cartao-voz .au-onda { height: 26px; }
.au-cartao-voz .au-onda i { background: color-mix(in srgb, var(--texto) 35%, transparent); }

.au-gerar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 150px; border: 0; border-radius: 16px;
  background: var(--neon-fundo); color: #fff; box-shadow: 0 3px 0 var(--neon-sombra); text-transform: uppercase;
}
.au-gerar b { font-family: var(--cond); font-stretch: 85%; font-weight: 900; font-size: 17px; letter-spacing: 0.02em; }
.au-gerar small { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.au-gerar small .ic { width: 14px; height: 14px; }
.au-gerar:hover:not(:disabled) { filter: brightness(1.08); }
.au-gerar:disabled { background: color-mix(in srgb, var(--neon-fundo) 45%, var(--fundo-3)); color: rgb(255 255 255 / 55%); box-shadow: none; cursor: not-allowed; }

/* menu que abre acima do compositor (modelos, vozes, idiomas, duração) */
.au-pop {
  position: absolute; left: 14px; bottom: calc(100% + 10px); z-index: 20; width: min(440px, calc(100% - 28px)); max-height: min(420px, 60vh); overflow: auto;
  padding: 10px; border-radius: 22px; background: var(--fundo-2); border: 1px solid var(--linha); box-shadow: 0 18px 50px rgb(0 0 0 / 45%);
}
.au-pop-voz, .au-pop-destino, .au-pop-duracao { left: auto; right: 14px; }
.au-pop-voz, .au-pop-idioma, .au-pop-destino { width: min(520px, calc(100% - 28px)); }
.au-pop-tit { margin: 6px 8px; color: var(--texto-2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.au-pop-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.au-pop-linha { display: flex; gap: 6px; flex-wrap: wrap; }
.au-pop-nota { margin: 8px; color: var(--texto-2); font-size: 15px; }
.au-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: none; text-align: left; }
.au-op:hover, .au-op.ativo { background: var(--fundo-3); }
.au-op.mini { width: auto; padding: 9px 14px; font-weight: 700; }
.au-op-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fundo-3); flex: none; }
.au-op.ativo .au-op-ic { background: var(--fundo-2); }
.au-op-ic svg { width: 18px; height: 18px; }
.au-op-ic.letra { font-size: 15px; font-weight: 800; color: var(--texto-2); }
.au-op-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.au-op-txt b { font-size: 16px; font-weight: 600; }
.au-op-txt small { color: var(--texto-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-check { width: 18px; height: 18px; color: var(--neon-forte); flex: none; }

/* ---------- criar voz ---------- */
.au-dialogo { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--linha); border-radius: 22px; background: var(--fundo-2); color: var(--texto); }
.au-dialogo::backdrop { background: rgb(0 0 0 / 60%); backdrop-filter: blur(3px); }
.au-dlg { display: grid; gap: 14px; padding: 20px; }
.au-dlg-topo { display: flex; align-items: center; justify-content: space-between; }
.au-dlg-topo h3 { margin: 0; font-family: var(--cond); font-stretch: 75%; font-weight: 900; font-size: 26px; text-transform: uppercase; }
.au-dlg-fechar { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--fundo-3); color: var(--texto); cursor: pointer; }
.au-dlg-sub, .au-dlg-nota { margin: 0; color: var(--texto-2); font-size: 15px; line-height: 1.5; }
.au-dlg-campo { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--texto-2); }
.au-dlg-campo input { padding: 11px 12px; border: 1px solid var(--linha); border-radius: 12px; background: var(--fundo); color: var(--texto); font: inherit; font-size: 16px; }
.au-dlg-gravar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.au-gravar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--linha); border-radius: 14px; background: var(--fundo-3); color: var(--texto); font-weight: 700; cursor: pointer; }
.au-rec { width: 12px; height: 12px; border-radius: 50%; background: #ff5c5c; }
.au-gravar.gravando { border-color: #ff5c5c; }
.au-gravar.gravando .au-rec { animation: au-pisca 1s infinite; }
@keyframes au-pisca { 50% { opacity: 0.3; } }
.au-dlg audio { width: 100%; }
.au-dlg-ok { padding: 13px; border: 0; border-radius: 14px; background: var(--neon-fundo); color: #fff; box-shadow: 0 3px 0 var(--neon-sombra); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.au-dlg-ok .ic { width: 15px; height: 15px; }
.au-dlg-ok:disabled { opacity: 0.6; cursor: wait; }

/* áudio na galeria geral */
.cartao-audio { display: grid; place-items: center; gap: 10px; width: 100%; height: 100%; min-height: 160px; padding: 16px; background: linear-gradient(135deg, var(--fundo-3), var(--fundo-2)); }
.cartao-audio .ic { width: 34px; height: 34px; color: var(--neon-forte); }
.cartao-audio audio { width: 100%; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .au { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 0; }
  .au-lado { position: static; height: auto; }
  .au-lado .au-espaco, .au-criar-voz.grande { display: none; }
  .au-compositor { grid-template-columns: minmax(0, 1fr); }
  .au-dial { height: 64px; padding-left: 16px; }
  .au-botao-giro { display: none; }
  .au-modos { display: flex; gap: 6px; border: 0; padding: 0; }
  .au-modos button { padding: 8px 12px; border-radius: 10px; }
  .au-modos button.ativo { background: var(--fundo-3); }
  .au-modos button.ativo::before { display: none; }
  .au-caixa { grid-template-columns: minmax(0, 1fr); }
  .au-direita { flex-wrap: wrap; }
  .au-cartao-voz { flex: 1; width: auto; min-width: 0; }
  .au-gerar { width: 120px; }
  .au-linha { grid-template-columns: auto minmax(0, 1fr) auto; }
  .au-linha .au-onda { display: none; }
  .au-pop, .au-pop-voz, .au-pop-idioma, .au-pop-destino { left: 8px; right: 8px; width: auto; }
  .au-pop-grade { grid-template-columns: minmax(0, 1fr); }
  .au-feed { padding-bottom: 40px; }
}

/* visor.css */
/* Visor (11/10): ao clicar num resultado abre no formato do Higgsfield. A mídia fica grande e centralizada,
   o painel ao lado mostra modelo, prompt (texto normal, rola dentro do painel), Copiar e Baixar. */
#visor[open] { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; overflow: hidden; }
#visor .fechar { z-index: 3; top: 18px; right: 18px; background: var(--fundo-2); color: var(--texto); border: 1px solid var(--linha); }
#visor .fechar:hover { background: var(--fundo-3); }
#visorConteudo { width: 100%; height: 100%; display: grid; place-items: center; }
/* quem abre o visor só com a mídia (Canvas, Editor) também fica centralizado */
#visorConteudo > video, #visorConteudo > img { max-width: 92vw; max-height: 88vh; border-radius: 14px; }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) 380px; width: 100%; height: 100%; }
.vs-palco { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; padding: 32px 24px; }
.vs-midia { display: grid; place-items: center; width: 100%; min-height: 0; flex: 1; }
#visorConteudo .vs-midia video, #visorConteudo .vs-midia img {
  max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 16px; background: #000; box-shadow: 0 20px 60px rgb(0 0 0 / 55%);
}
.vs-midia .cartao-audio { width: min(560px, 100%); min-height: 240px; border-radius: 20px; }
.vs-minis { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.vs-minis button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--fundo-3); color: var(--texto-2); cursor: pointer; display: grid; place-items: center; }
.vs-minis button.ativa { border-color: var(--acento); }
.vs-minis video, .vs-minis img { width: 100%; height: 100%; object-fit: cover; }

.vs-lado {
  display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 76px 22px 22px;
  background: var(--fundo-2); border-left: 1px solid var(--linha); color: var(--texto);
}
.vs-topo { display: grid; gap: 3px; }
.vs-topo b { font-family: var(--cond); font-stretch: 80%; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.vs-topo small { color: var(--texto-2); font-size: 15px; }
.vs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-tags span { padding: 5px 10px; border-radius: 999px; background: var(--fundo-3); color: var(--texto-2); font-size: 15px; font-weight: 600; }
.vs-rotulo { margin: 4px 0 -6px; color: var(--texto-2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vs-prompt {
  min-height: 0; max-height: 46vh; overflow: auto; padding: 14px; border-radius: 14px; background: var(--fundo-3);
  font-family: var(--ui); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--texto);
}
.vs-acoes { display: grid; gap: 8px; margin-top: auto; }
.vs-acoes button, .vs-baixar {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.vs-acoes button { border: 1px solid var(--linha); background: var(--fundo-3); color: var(--texto); }
.vs-baixar { border: 0; background: var(--neon-fundo); color: #fff; box-shadow: 0 3px 0 var(--neon-sombra); }
.vs-baixar:hover { filter: brightness(1.08); }

@media (max-width: 900px) {
  #visor[open] { overflow: auto; }
  .vs { grid-template-columns: minmax(0, 1fr); height: auto; }
  .vs-palco { padding: 70px 16px 12px; }
  #visorConteudo .vs-midia video, #visorConteudo .vs-midia img { max-height: 62vh; }
  .vs-lado { padding: 18px 16px 24px; border-left: 0; border-top: 1px solid var(--linha); }
  .vs-prompt { max-height: none; }
}

/* modo-viral.css */
/* Modo Viral (Vídeo > Viral). Par do modo-viral.js. Usa os tokens --ap-* (dia/noite). */
/* apelidos para os tokens do tema do app (styles.css), que trocam sozinhos no dia/noite */
#viralRaiz {
  --ap-cartao: var(--fundo-2); --ap-cartao-2: var(--fundo-3); --ap-texto: var(--texto); --ap-texto-2: var(--texto-2); --ap-texto-3: var(--texto-2);
  --ap-linha: var(--linha); --ap-acento: var(--acento); --ap-acento-txt: var(--acento-txt); --ap-ok: var(--ok); --ap-alerta: var(--coral); --ap-erro: var(--erro); --ap-sombra: var(--sombra);
  color: var(--ap-texto);
}
#viralRaiz small { color: var(--ap-texto-2); font-weight: 500; }
.mv-intro { background: var(--ap-cartao); border: 1px solid var(--ap-linha); border-radius: 18px; padding: 24px; box-shadow: var(--ap-sombra); }
.mv-intro h2 { margin: 0 0 8px; }
.mv-intro p { color: var(--ap-texto-2); max-width: 62ch; }
.mv-custo { font-weight: 600; color: var(--ap-texto) !important; }
.mv-lista { list-style: none; padding: 0; display: grid; gap: 8px; }
#viralRaiz .mv-item { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; background: var(--ap-cartao); color: var(--ap-texto); border: 1px solid var(--ap-linha); border-radius: 12px; padding: 12px 16px; }
.mv-item span { color: var(--ap-texto-2); font-weight: 500; }

.mv-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mv-topo span { margin-left: auto; color: var(--ap-texto-2); font-size: 16px; }

/* régua dos 6 passos */
.mv-regua { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: passo; }
#viralRaiz .mv-passo button { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; background: var(--ap-cartao); color: var(--ap-texto); border: 1px solid var(--ap-linha); border-radius: 14px; cursor: pointer; position: relative; }
#viralRaiz .mv-passo button:disabled { cursor: not-allowed; opacity: .45; }
#viralRaiz .mv-passo.ok button { border-color: color-mix(in srgb, var(--ap-ok) 50%, transparent); }
#viralRaiz .mv-passo.atual button { border-color: var(--ap-acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ap-acento) 20%, transparent); }
#viralRaiz .mv-passo.vendo button { background: color-mix(in srgb, var(--ap-acento) 10%, var(--ap-cartao)); }
.mv-bola { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--ap-cartao-2); border: 1px solid var(--ap-linha); }
.mv-passo.atual .mv-bola { background: var(--ap-acento); color: var(--ap-acento-txt); border-color: transparent; }
.mv-passo.ok .mv-bola { background: color-mix(in srgb, var(--ap-ok) 18%, transparent); }
.mv-nome { font-weight: 700; font-size: 15px; text-align: center; line-height: 1.2; }
.mv-sub { font-size: 14px; color: var(--ap-texto-2); }

.mv-tela { background: var(--ap-cartao); border: 1px solid var(--ap-linha); border-radius: 18px; padding: 20px; box-shadow: var(--ap-sombra); }
.mv-tela h3 { margin: 0; }
.mv-prova, .mv-dica { color: var(--ap-texto-2); font-size: 16px; }
.mv-aviso { color: var(--ap-erro); font-weight: 600; }
.mv-ocupado { color: var(--ap-acento); font-weight: 600; }

.mv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.mv-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.mv-form .largo, .mv-form fieldset { grid-column: 1 / -1; }
.mv-form input, .mv-form select, .mv-form textarea { font: inherit; font-weight: 400; color: var(--ap-texto); background: var(--ap-cartao-2); border: 1px solid var(--ap-linha); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.mv-form input:disabled, .mv-form select:disabled, .mv-form textarea:disabled { opacity: .75; }
.mv-form fieldset { border: 1px solid var(--ap-linha); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.mv-cena { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mv-cena legend, .mv-form legend { font-weight: 700; padding: 0 4px; }
.mv-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }

.mv-rodape { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ap-linha); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.mv-faltas { margin: 0; padding-left: 18px; color: var(--ap-alerta); font-size: 16px; }
.mv-pronto { color: var(--ap-ok); font-weight: 600; margin: 0; }
.mv-selo { color: var(--ap-ok); font-weight: 600; }
.mv-confirma { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.mv-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.mv-quadro { margin: 0; background: var(--ap-cartao-2); border: 1px solid var(--ap-linha); border-radius: 12px; overflow: hidden; }
.mv-quadro img, .mv-quadro video, .mv-vazio { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.mv-vazio { display: grid; place-items: center; color: var(--ap-texto-3); font-size: 15px; }
.mv-quadro figcaption { padding: 8px 10px; font-size: 15px; display: grid; gap: 6px; }
.mv-etapas { display: grid; gap: 4px; }
.mv-fala { max-width: 220px; border-radius: 10px; vertical-align: middle; }

/* palco do animatic e do final */
.mv-palco { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; margin: 8px 0; }
.mv-palco.vertical { max-width: 300px; aspect-ratio: 9 / 16; }
.mv-palco iframe { width: 100%; height: 100%; border: 0; }
.mv-cena-anim { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.mv-cena-anim.on { opacity: 1; }
.mv-cena-anim img, .mv-cena-anim video { width: 100%; height: 100%; object-fit: cover; }
.mv-cena-anim.on .zoom-in { animation: mv-zoom-in var(--dur, 5s) linear both; }
.mv-cena-anim.on .zoom-out { animation: mv-zoom-out var(--dur, 5s) linear both; }
@keyframes mv-zoom-in { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes mv-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
.mv-texto { position: absolute; left: 8%; right: 8%; top: 18%; margin: 0; text-align: center; color: #fff; font-weight: 800; font-size: clamp(16px, 4vw, 26px); text-shadow: 0 2px 12px rgb(0 0 0 / 70%); }
.mv-tempo { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / 20%); }
.mv-tempo i { display: block; height: 100%; width: 0; background: var(--ap-acento); }
.mv-marca { position: absolute; right: 2.5%; bottom: 2%; width: 20%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .mv-cena-anim.on .zoom-in, .mv-cena-anim.on .zoom-out { animation: none; } }
@media (max-width: 720px) {
  .mv-regua { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-form, .mv-cena { grid-template-columns: 1fr; }
}
.mv-atalho-ugc { display: block; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--ap-acento); color: var(--ap-texto); text-decoration: none; font-size: 16px; }
.mv-atalho-ugc b { color: var(--ap-acento); }
#viralRaiz button { font: inherit; font-weight: 600; font-size: 16px; border-radius: 999px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--ap-linha); background: var(--ap-cartao-2); color: var(--ap-texto); }
#viralRaiz button.mv-primario { background: var(--ap-acento); color: var(--ap-acento-txt); border-color: transparent; }
#viralRaiz button:disabled { opacity: .45; cursor: not-allowed; }
.mv-ganchos { background: color-mix(in srgb, var(--ap-acento) 6%, transparent); }
.mv-receita { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--ap-linha); }
.mv-receita label { display: grid; gap: 2px; font-size: 15px; font-weight: 600; }
.mv-receita select { font: inherit; font-size: 15px; color: var(--ap-texto); background: var(--ap-cartao); border: 1px solid var(--ap-linha); border-radius: 8px; padding: 6px 8px; }
.mv-palco video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.mv-medidas { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; font-size: 16px; }
.mv-baixar { color: var(--ap-acento); font-weight: 700; }
.mv-quadro { min-width: 0; }
.mv-quadro figcaption { overflow-wrap: anywhere; }
#viralRaiz .mv-quadro figcaption button { max-width: 100%; white-space: normal; justify-self: start; }
.mv-receita select { max-width: 100%; }
/* trava (12/10): a aba Viral e o atalho no UGC só aparecem quando o servidor libera (equipe, PC ou aberto a todos) */
body:not(.mv-liberado) [data-ve="viral"], body:not(.mv-liberado) .mv-atalho-ugc { display: none !important; }

/* Build (12/10): próximo passo claro e carregando animado em cada cena */
.mv-estado { display: grid; gap: 6px; margin: 12px 0; padding: 14px 16px; border-radius: 14px; font-size: 17px; line-height: 1.45; color: var(--ap-texto); border: 1px solid var(--ap-linha); background: var(--ap-cartao-2); }
.mv-estado.proximo, .mv-estado.gerando { border-color: var(--ap-acento); background: color-mix(in srgb, var(--ap-acento) 10%, var(--ap-cartao)); }
.mv-estado.pronto { border-color: color-mix(in srgb, var(--ap-ok) 60%, transparent); background: color-mix(in srgb, var(--ap-ok) 10%, var(--ap-cartao)); }
.mv-estado.gerando > span { font-size: 16px; color: var(--ap-texto-2); font-variant-numeric: tabular-nums; }
.mv-barra { height: 6px; border-radius: 999px; background: var(--ap-linha); overflow: hidden; }
.mv-barra i { display: block; height: 100%; background: var(--ap-acento); border-radius: inherit; transition: width .6s ease; min-width: 6px; }
.mv-etapas p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0; font-size: 16px; }
.mv-ok { color: var(--ap-ok); font-weight: 700; font-size: 16px; }
.mv-espera { color: var(--ap-texto-2); font-size: 16px; }
.mv-rodape .mv-dica { margin: 0; font-size: 16px; }
.mv-quadro.gera { border-color: var(--ap-acento); }
.mv-quadro.gera .nc { border-radius: 0; }
.mv-quadro.gera figcaption { color: var(--ap-texto); }
@media (prefers-reduced-motion: reduce) { .mv-barra i { transition: none; } }

/* branco.css */
/* ======================================================================
   Nise branca (03/11/2026): "deixe o Nise mais white para o pessoal velho".
   Carregado por ÚLTIMO no estúdio (index.html). Direção em docs/design/branco/direcao.md.
   - Tema CLARO é o padrão (html sem atributo ou data-theme="light"); o escuro só com data-theme="dark".
   - Papel branco, letra quase preta, roxo #6d28d9 só no que se clica. Sem aurora, vidro, blur ou grão.
   - Leitura para 40–65 anos: texto maior, títulos em caixa normal, botões de 48 px, foco visível.
   Não renomeia classes nem IDs usados pelo JS.
   ====================================================================== */

/* ---------- tokens do claro ---------- */
:root:not([data-theme="dark"]) {
  --fundo: #ffffff; --fundo-2: #ffffff; --fundo-3: #f7f6fa; --linha: #dcd8e4;
  --texto: #16131d; --texto-2: #454054;
  --acento: #6d28d9; --acento-suave: #f1ebfd; --acento-txt: #ffffff;
  --neon: #6d28d9; --neon-forte: #5b21b6; --neon-fundo: #6d28d9; --neon-sombra: #4c1d95; --neon-txt: #ffffff;
  --ok: #166534; --erro: #b42318; --alerta: #8a5a00;
  --sombra: 0 1px 2px rgb(22 19 29 / 6%);
  --vidro: #ffffff;
  --vd-1: #ffffff; --vd-2: #ffffff; --vd-borda: #dcd8e4; --vd-luz: transparent;
  --vd-sombra: 0 1px 2px rgb(22 19 29 / 5%), 0 6px 18px -10px rgb(22 19 29 / 14%);
  --vd-brilho: 0 0 0 3px #e4d8fc;
  --vd-aurora-1: transparent; --vd-aurora-2: transparent; --vd-aurora-3: transparent;
  /* lista dos <select> (seletor.css): branca e sólida */
  --vidro-fundo: #ffffff; --vidro-borda: #dcd8e4; --vidro-item: #f1ebfd;
  --vidro-sombra: 0 18px 40px -12px rgb(22 19 29 / 22%);
  color-scheme: light;
}
:root:not([data-theme="dark"]) #aba-canvas { --cv-fundo: #f7f6fa; --cv-no: #ffffff; --cv-no-2: #f7f6fa; --cv-borda: #dcd8e4; --cv-texto: #16131d; --cv-texto-2: #454054; --cv-sel: #6d28d9; }
:root:not([data-theme="dark"]) #aba-ganhar { --ap-fundo: #ffffff; --ap-cartao: #ffffff; --ap-cartao-2: #f7f6fa; --ap-texto: #16131d; --ap-texto-2: #454054; --ap-texto-3: #454054; --ap-linha: #dcd8e4; --ap-vidro: #ffffff; --ap-acento: #6d28d9; --ap-acento-txt: #fff; --ap-ok: #166534; --ap-alerta: #8a5a00; --ap-erro: #b42318; }
:root:not([data-theme="dark"]) .conectar { --cx-roxo: #6d28d9; }

/* ---------- fundo chapado: sem aurora, sem grão, sem vidro ---------- */
:root:not([data-theme="dark"]) body { background: #ffffff; background-image: none; color: var(--texto); }
:root:not([data-theme="dark"]) body::before,
:root:not([data-theme="dark"]) body::after,
:root:not([data-theme="dark"]) .heroi::before { content: none; display: none; }
:root:not([data-theme="dark"]) *,
:root:not([data-theme="dark"]) *::before,
:root:not([data-theme="dark"]) *::after { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="dark"]) .destaque::after, :root:not([data-theme="dark"]) .painel::after,
:root:not([data-theme="dark"]) .numeros div::after, :root:not([data-theme="dark"]) .plano::after { content: none; }

/* superfícies: cartão branco com borda fina, sem gradiente */
:root:not([data-theme="dark"]) :is(.destaque, .painel, .resultados, .bloco, .card, .plano, .numeros div, .faq-lista details,
  .cartao-modelo, .modelo, .pers, .quadro-destaque, .briefing, .ed-linha, .ed-exportar, .hype, .im-modo, .if-lista, .if-painel, .ch-lado, .ch-caixa-pedido, .ch-plano, .ap-vazio) {
  background: #ffffff; border: 1px solid var(--linha); box-shadow: var(--vd-sombra);
}
:root:not([data-theme="dark"]) .faq-lista details[open] { background: #ffffff; border-color: #b9a7e3; }
:root:not([data-theme="dark"]) .if-previa { background: #f7f6fa; border: 2px dashed #b9a7e3; box-shadow: none; }
:root:not([data-theme="dark"]) .if-previa .if-vazio i { box-shadow: none; }
:root:not([data-theme="dark"]) .vazio-arte { box-shadow: 0 10px 30px -18px rgb(22 19 29 / 30%); }
:root:not([data-theme="dark"]) .painel .campo { background: var(--fundo-3); border: 1px solid #e8e5ef; }
:root:not([data-theme="dark"]) .painel .campo .campo { border: 0; }
:root:not([data-theme="dark"]) .gerar { background: #ffffff; border-top: 1px solid var(--linha); }

/* topo e faixa */
:root:not([data-theme="dark"]) .topo { background: #ffffff; border-bottom: 1px solid var(--linha); }
:root:not([data-theme="dark"]) .abas .divisor { background: var(--linha); }
:root:not([data-theme="dark"]) .abas button { color: var(--texto-2); font-weight: 600; }
:root:not([data-theme="dark"]) .abas button:hover { color: var(--texto); background: var(--fundo-3); }
:root:not([data-theme="dark"]) .abas button.ativa { color: #5b21b6; background: var(--acento-suave); font-weight: 700; }
:root:not([data-theme="dark"]) .abas .novo, :root:not([data-theme="dark"]) .selo { background: var(--acento-suave); color: #5b21b6; }
:root:not([data-theme="dark"]) .faixa { background: #6d28d9; color: #ffffff; box-shadow: none; }
:root:not([data-theme="dark"]) .faixa-selo { background: #ffffff; color: #16131d; }
:root:not([data-theme="dark"]) .faixa-selo b { color: #5b21b6; }
:root:not([data-theme="dark"]) .faixa-btn { background: #ffffff; color: #5b21b6; }
:root:not([data-theme="dark"]) .faixa-btn:hover { background: #f1ebfd; }
:root:not([data-theme="dark"]) .faixa-fechar { color: #ffffff; }
:root:not([data-theme="dark"]) .faixa-fechar:hover { background: rgb(255 255 255 / 18%); }
:root:not([data-theme="dark"]) .tema { background: #ffffff; border: 1px solid var(--linha); color: var(--texto); }

/* ---------- títulos: caixa normal, sem condensado ---------- */
:root:not([data-theme="dark"]) :is(.cond, .heroi h1, .titulo-caixa, .destaque-texto h2, .faq-titulo h2, .rodape-frase, .capa-video-texto b,
  .ferramenta b, .vazio h3, .hype b, .hype span, .painel > h2, .duas h2, .bloco > h2, .bloco .titulo-res h2, .titulo-res h2,
  .il-cartao b, .ip-texto b, .id-explica b, .au-vazio h2, .au-cartao-nome, .au-dlg-topo h3, .vs-topo b, .numeros b) {
  font-family: var(--ui); font-stretch: 100%; text-transform: none; letter-spacing: -0.02em; font-weight: 800;
}
:root:not([data-theme="dark"]) .heroi-marca,
:root:not([data-theme="dark"]) .numeros div b, :root:not([data-theme="dark"]) .numeros div strong {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #5b21b6;
}
:root:not([data-theme="dark"]) .heroi h1 { line-height: 1.05; color: var(--texto); }
:root:not([data-theme="dark"]) #aba-inicio .heroi h1 { font-size: clamp(34px, 5.2vw, 64px); }
:root:not([data-theme="dark"]) .heroi-sub { color: var(--texto-2); font-weight: 500; opacity: 1; max-width: 62ch; }
:root:not([data-theme="dark"]) .titulo-caixa { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; }
:root:not([data-theme="dark"]) .painel > h2 { font-size: 26px; line-height: 1.15; }
:root:not([data-theme="dark"]) .il-cartao b { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.2; }
:root:not([data-theme="dark"]) .il-cartao:nth-child(3n + 2) b { color: var(--texto); }
:root:not([data-theme="dark"]) .ip-texto b { line-height: 1.08; font-size: clamp(26px, 2.4vw, 36px); }
:root:not([data-theme="dark"]) .id-explica b { line-height: 1.1; }
:root:not([data-theme="dark"]) .vazio-arte .passo i, :root:not([data-theme="dark"]) .numeros b { font-family: var(--ui); font-stretch: 100%; }
:root:not([data-theme="dark"]) #personagensVazio::before { font-family: var(--ui); font-stretch: 100%; text-transform: none; font-weight: 800; }

/* ---------- texto corrido: maior e escuro ---------- */
body { line-height: 1.55; }
:root:not([data-theme="dark"]) body { font-size: 17px; letter-spacing: 0; }
:root:not([data-theme="dark"]) :is(.heroi-sub, .secao-topo p, .dica, .dica-sel, .il-cartao span, .im-modo > span:last-child, .painel > h2 small, .id-explica li) { color: var(--texto-2); }
:root:not([data-theme="dark"]) .secao-topo p, :root:not([data-theme="dark"]) .dica { font-size: 17px; line-height: 1.55; max-width: 65ch; }
:root:not([data-theme="dark"]) .campo > label { color: var(--texto); font-size: 16px; font-weight: 700; }
:root:not([data-theme="dark"]) .campo > label small { color: var(--texto-2); opacity: 1; }
:root:not([data-theme="dark"]) small { color: var(--texto-2); }
:root:not([data-theme="dark"]) .link { color: #5b21b6; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
:root:not([data-theme="dark"]) .card .meta { opacity: 1; color: var(--texto-2); }
:root:not([data-theme="dark"]) .heroi-modelos button { color: var(--texto); }
:root:not([data-theme="dark"]) .im-etq { background: var(--fundo-3); color: var(--texto-2); }
:root:not([data-theme="dark"]) .im-selo { background: #6d28d9; color: #ffffff; }
:root:not([data-theme="dark"]) .im-selo.top { background: #b42318; }
:root:not([data-theme="dark"]) .pp-preco.verde b { color: #166534; }
:root:not([data-theme="dark"]) .msg.erro, :root:not([data-theme="dark"]) .erro { color: #b42318; }
:root:not([data-theme="dark"]) .msg.ok { color: #166534; }
@media (max-width: 760px) {
  :root:not([data-theme="dark"]) body { font-size: 18px; }
  :root:not([data-theme="dark"]) :is(.heroi-sub, .secao-topo p, .dica, .il-cartao span) { font-size: 18px; }
  :root:not([data-theme="dark"]) .im-modo > span:last-child { font-size: 16px; }
  :root:not([data-theme="dark"]) .im-modo b { font-size: 17px; }
  :root:not([data-theme="dark"]) .titulo-caixa { font-size: 26px; }
  :root:not([data-theme="dark"]) #aba-inicio .heroi h1 { font-size: 34px; }
}

/* ---------- botões: 48 px, chapados, texto claro ---------- */
:root:not([data-theme="dark"]) .pri {
  background: #6d28d9; color: #ffffff; box-shadow: none; filter: none; transform: none;
  min-height: 48px; font-size: 17px; font-weight: 700; border-radius: 12px; transition: background-color .15s;
}
:root:not([data-theme="dark"]) .pri:hover { background: #5b21b6; filter: none; transform: none; box-shadow: none; }
:root:not([data-theme="dark"]) .pri.pequeno { box-shadow: none; min-height: 44px; font-size: 16px; }
:root:not([data-theme="dark"]) :is(.sec, .link-pilula) {
  background: #ffffff; border: 1.5px solid #c9c2d8; color: var(--texto); min-height: 44px; font-weight: 600;
}
:root:not([data-theme="dark"]) :is(.sec, .link-pilula):hover { background: var(--fundo-3); border-color: #6d28d9; }
:root:not([data-theme="dark"]) .sec .ic { color: var(--texto-2); }
:root:not([data-theme="dark"]) .link-pilula::after { color: var(--texto-2); }
:root:not([data-theme="dark"]) .ini-promo .ip-btn { min-height: 52px; font-size: 17px; }
:root:not([data-theme="dark"]) .ch-enviar { background: #6d28d9; box-shadow: none; }
:root:not([data-theme="dark"]) .heroi-busca { background: #ffffff; border: 2px solid #c9c2d8; box-shadow: none; }
:root:not([data-theme="dark"]) .heroi-busca:focus-within { border-color: #6d28d9; box-shadow: 0 0 0 3px #e4d8fc; }
:root:not([data-theme="dark"]) .heroi-busca input { font-size: 18px; }
:root:not([data-theme="dark"]) .heroi-modelos button:hover, :root:not([data-theme="dark"]) .heroi-modelos button { transform: none; }

/* campos: brancos com borda visível */
:root:not([data-theme="dark"]) :is(input:not([type]), input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="number"], textarea, select) {
  background: #ffffff; border: 1.5px solid #c9c2d8; color: var(--texto);
}
:root:not([data-theme="dark"]) .heroi-busca input { border: 0; }
:root:not([data-theme="dark"]) .painel .campo :is(textarea, input:not([type]), input[type="url"]) { background: #ffffff; }
:root:not([data-theme="dark"]) ::placeholder { color: #6b6578; opacity: 1; }
:root:not([data-theme="dark"]) .chips button, :root:not([data-theme="dark"]) .painel .chips button { background: #ffffff; border: 1.5px solid #dcd8e4; color: var(--texto); }
:root:not([data-theme="dark"]) .chips button:hover { border-color: #6d28d9; }
:root:not([data-theme="dark"]) .chips button.ativo, :root:not([data-theme="dark"]) .painel .chips button.ativo { background: var(--acento-suave); border-color: #6d28d9; color: var(--texto); }
:root:not([data-theme="dark"]) .chips button.ativo small { color: #5b21b6; }
:root:not([data-theme="dark"]) .seg { background: var(--fundo-3); border: 1px solid var(--linha); }
:root:not([data-theme="dark"]) .seg button { color: var(--texto-2); }
:root:not([data-theme="dark"]) .seg button.ativo { background: #ffffff; color: var(--texto); box-shadow: 0 1px 3px rgb(22 19 29 / 14%); }
:root:not([data-theme="dark"]) .soltar { background: #f7f6fa; border: 2px dashed #b9a7e3; box-shadow: none; }

/* carregando e cartões de mídia: sem brilho passando (nada piscando no claro) */
:root:not([data-theme="dark"]) :is(.mv-peca, .capa-quadro, .ferramenta-arte, .mural-item, .capa-video, .card .midia) {
  background-color: #efecf5; background-image: none; animation: none;
}
:root:not([data-theme="dark"]) .mv-peca { box-shadow: 0 6px 18px -10px rgb(22 19 29 / 25%); }
:root:not([data-theme="dark"]) :is(.ferramenta, .cartao-modelo, .modelo, .pers, .mural-item, .plano, .card):hover,
:root:not([data-theme="dark"]) .ferramenta:hover .ferramenta-arte { transform: none; border-color: #6d28d9; box-shadow: var(--vd-sombra); }
:root:not([data-theme="dark"]) .il-seta { background: #ffffff; color: #16131d; border: 1px solid var(--linha); }

/* ---------- foco, seleção e rolagem (os dois temas) ---------- */
:focus-visible { outline: 3px solid #6d28d9; outline-offset: 2px; }
:root[data-theme="dark"] :focus-visible { outline-color: #c3a0ff; }
:root:not([data-theme="dark"]) :is(input, textarea, select):focus-visible { outline: 3px solid #6d28d9; outline-offset: 1px; }
:root:not([data-theme="dark"]) ::selection { background: #e4d8fc; color: #16131d; }
:root:not([data-theme="dark"]) * { scrollbar-color: #c9c2d8 transparent; }
:root:not([data-theme="dark"]) { caret-color: #6d28d9; }

/* ---------- menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- ajustes vistos nos prints ---------- */
/* o JS escreve o nome do modo em caixa-alta ("TEXTO PARA VÍDEO"): no claro lê em caixa normal */
:root:not([data-theme="dark"]) .vazio h3 em { text-transform: lowercase; font-style: normal; color: #5b21b6; }
/* cartões de modo no computador: o título não encosta no ícone nem na etiqueta */
@media (min-width: 761px) { :root:not([data-theme="dark"]) .im-modo { padding-top: 56px; justify-content: flex-start; } }
/* "Testar frases de abertura" e "Como se fala": a explicação vai embaixo do título, não espremida ao lado */
:root:not([data-theme="dark"]) .briefing summary { flex-wrap: wrap; row-gap: 2px; color: #5b21b6; font-size: 17px; }
:root:not([data-theme="dark"]) .briefing summary small { flex-basis: 100%; font-weight: 500; font-size: 15px; color: var(--texto-2); }
/* títulos sobre o vídeo das capas: branco sobre a sombra escura, nunca roxo */
:root:not([data-theme="dark"]) .capa-video-texto b { color: #ffffff; }
:root:not([data-theme="dark"]) .capa-video-texto span { color: #ffffff; }
/* rodapé "Gerar": com a letra maior o custo não cabe numa linha; quebra em vez de espremer o botão (os dois temas) */
.gerar { flex-wrap: wrap; }
.gerar .custo { flex: 1 1 170px; min-width: 0; }
.gerar .custo small { display: block; overflow-wrap: anywhere; }
.gerar .pri { flex: 1 1 150px; min-height: 52px; }
/* Planos: oferta em fundo lilás claro (era um cartão escuro com roxo por cima) e títulos em caixa normal */
:root:not([data-theme="dark"]) .pp-oferta { background: #f1ebfd; border: 1px solid #d9c8f7; color: var(--texto); }
:root:not([data-theme="dark"]) .pp-oferta::after { content: none; }
:root:not([data-theme="dark"]) .pp-oferta p { color: var(--texto-2); }
:root:not([data-theme="dark"]) .pp-titulo-oferta { color: var(--texto); }
:root:not([data-theme="dark"]) .pp-titulo-oferta span { color: #5b21b6 !important; }
:root:not([data-theme="dark"]) :is(.pp-cond, .pp-titulo-oferta, .pp-cabeca h3, .pp-avulso h3, .pp-preco b, .pp-preco s, .pp-pacotes button b, .pp-etiqueta, .pp-selo, .pp-selo-azul) {
  font-family: var(--ui); font-stretch: 100%; font-style: normal; text-transform: none; letter-spacing: -0.01em; font-weight: 800; transform: none;
}
:root:not([data-theme="dark"]) .pp-titulo-oferta { line-height: 1.12; font-size: clamp(28px, 3.6vw, 44px); }
:root:not([data-theme="dark"]) .pp-cabeca h3 { line-height: 1.15; font-size: 26px; }
:root:not([data-theme="dark"]) .pp-selo-azul { background: #1d4ed8; }
/* Áudio: botão da comunidade com texto branco sobre o roxo de ação */
:root:not([data-theme="dark"]) .au-discord-botao { background: #6d28d9; color: #ffffff; box-shadow: none; min-height: 48px; display: grid; place-items: center; }
:root:not([data-theme="dark"]) .au-discord-botao:hover { background: #5b21b6; filter: none; }
/* seletores do Vídeo (Criar/Editar/Movimento/Viral e Nível): o ativo era branco translúcido, invisível no papel branco */
:root:not([data-theme="dark"]) :is(.ve-abas button.ativa, .vc-nivel button.ativo) { background: var(--acento-suave); color: #5b21b6; box-shadow: inset 0 0 0 1.5px #6d28d9; font-weight: 700; }

/* ---------- piso de 14 px no que sobrou (os dois temas) ---------- */
small { font-size: max(14px, 0.85em); }
.sel-item > small { font-size: 14px; }
/* "Nise no seu chat" (conectar.css): sem letra de 12 px nem texto apagado por opacidade */
.conectar .cx-app small { font-size: 15px; opacity: 1; color: var(--texto-2); }
.conectar .cx-passos { font-size: 16px; }
.conectar .cx-bolha { font-size: 15px; }
.conectar .cx-ferramenta { font-size: 14px; opacity: 1; color: var(--texto-2); }
.conectar .cx-ferramentas li { font-size: 15px; }
.conectar .cx-nota { font-size: 15px; opacity: 1; color: var(--texto-2); }
.conectar .cx-passos li::before { font-size: 14px; }

/* ---------- títulos das outras abas: caixa normal e sem condensado (só no claro) ---------- */
:root:not([data-theme="dark"]) :is(.ch-boas h1, .cvi-titulo h1, .rc-titulo, .pm-oferta h2, .porta-legenda b, .ve-vazio h3, .gj-como-txt h2,
  .destaque-texto h2, .mc-modelo-txt b, .pers-cartao .pers-info b, .vc-txt b, .au-gerar b) {
  font-family: var(--ui); font-stretch: 100%; text-transform: none; letter-spacing: -0.02em; font-weight: 800; line-height: 1.12;
}
:root:not([data-theme="dark"]) .gj-como-txt h2 { color: var(--texto); }
/* rótulos pequenos: sem caixa-alta espaçada (lê pior com óculos) */
:root:not([data-theme="dark"]) :is(.ch-slot-nome, .ch-anexo figcaption, .ch-enviar, .cvi-no.nota small, .cm-det-rotulo, .gj-como-sob, .mc-menu-titulo,
  .au-rotulo, .au-pop-tit, .vs-rotulo, .an-angulo, .cv-menu h4, .rodape-colunas b, .cartao-modelo-arte .etq, .if-op.olho span small, .ap-cartao .ap-marca, .abas .novo, .selo, .leg-gratis, .au-gerar) {
  text-transform: none; letter-spacing: 0;
}
:root:not([data-theme="dark"]) .cm-det-rotulo { color: var(--texto-2); }
:root:not([data-theme="dark"]) .cvi-marca { color: var(--texto-2); letter-spacing: 0.04em; }
:root:not([data-theme="dark"]) .cvi-no.nota { color: var(--texto); }
:root:not([data-theme="dark"]) .cvi-selo { background: #6d28d9; color: #ffffff; }
/* na faixa roxa o anel de foco é branco (roxo sobre roxo some) */
.faixa :focus-visible { outline-color: #ffffff; }

/* ---------- revisão final (coordenador, 03/11): leitura calma para 40–65 anos, só no claro ---------- */
/* título grande da vitrine: entrelinha que não encosta uma linha na outra */
:root:not([data-theme="dark"]) .heroi h1 { line-height: 1.04; letter-spacing: -0.02em; }
/* nada de texto em degradê: cor sólida */
:root:not([data-theme="dark"]) :is(.heroi-marca, .numeros div b, .numeros div strong, .ap-heroi h1 span) {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #5b21b6;
}
/* faixa de modelos não rola sozinha: a pessoa rola com o dedo */
:root:not([data-theme="dark"]) .mv-esteira { overflow-x: auto; }
:root:not([data-theme="dark"]) .mv-trilho { animation: none; }
/* bolinhas que piscam sem parar ficam paradas */
:root:not([data-theme="dark"]) :is(.rec, .mv-vitrine-rotulo i, .nc-selo i)::before,
:root:not([data-theme="dark"]) :is(.mv-vitrine-rotulo i, .nc-selo i) { animation: none; }

/* confianca.css */
/* Bloco de confiança (03/11): quem faz a Nise, contato e LGPD. Usado no rodapé do estúdio, em /comecar e na 404. Só fatos, sem prova inventada. */
.confianca { grid-column: 1 / -1; max-width: 62ch; margin: 0 0 20px; padding: 18px 0 4px; text-align: left; color: var(--texto-2, var(--suave, #454054)); font-size: 16px; line-height: 1.6; }
.confianca p { margin: 0 0 6px; }
.confianca b { color: var(--texto, #16131d); }
.confianca a { color: var(--roxo-forte, #5b21b6); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
#aba-inicio .rodape .confianca { text-align: left; margin: 0 0 12px; max-width: none; padding: 20px 0 8px; border-top: 1px solid var(--linha, #dcd8e4); }
.rodape .confianca a { display: inline; padding: 0; }
/* uma frase de promessa no topo do estúdio, antes da vitrine */
.ini-promessa { margin: 4px 0 18px; max-width: 46ch; font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.35; color: var(--texto, #16131d); }
@media (max-width: 700px) { .ini-promessa { margin: 0 0 14px; } }

/* Reserva o espaço do que o JS desenha no Início (lançamentos e modos), para a página não pular quando eles chegam (CLS). Só vale enquanto estão vazios. */
#iniLanc:empty { min-height: 300px; }
#iniModos:empty { min-height: 388px; }
@media (max-width: 1200px) { #iniLanc:empty { min-height: 270px; } }
@media (max-width: 760px) { #iniModos:empty { min-height: 520px; } }

