/* Clipeye - identidade: azul-noite com ciano e lilás (paleta do kurage) */
:root {
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: #151518;
  --border: #222226;
  --text: #e6eef5;
  --muted: #8593a5;
  --accent: #8fe0ee;
  --accent-2: #b4a8ee;
  --accent-ink: #04121a;
  --ok: #8fe0ee;
  --error: #f0b8c8;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 16px/1.55 var(--font);
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }

/* nav */
.nav { border-bottom: 1px solid var(--border); background: rgba(5, 5, 5, .85);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { color: var(--text); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav-links a { color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn { color: var(--accent-ink); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  font: 700 .95rem var(--font); padding: 11px 18px; border-radius: 10px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.is-static { cursor: default; opacity: .8; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* cards e formulários */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form { display: grid; gap: 14px; margin: 18px 0; }
label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
input, select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px; font: 1rem var(--font); }
input:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: #7f8ea2; }

/* avisos */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { border-radius: 10px; padding: 11px 14px; font-size: .92rem; border: 1px solid var(--border);
  background: var(--surface-2); margin-bottom: 12px; }
.flash-ok { border-color: rgba(210, 210, 210, .35); background: rgba(210, 210, 210, .08); }
.flash-erro { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.flash-info { border-color: rgba(230, 230, 230, .3); background: rgba(230, 230, 230, .06); }

/* barras e badges */
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 120px; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s ease; }
.bar-sm { height: 5px; margin-top: 6px; }
.bar-indeterminate span { width: 30% !important; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-done { color: var(--accent); border-color: rgba(230, 230, 230, .35); }
.badge-error { color: var(--error); border-color: rgba(255, 255, 255, .4); }

/* landing */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
mark { background: var(--accent); color: var(--accent-ink); padding: 0 .18em; border-radius: 6px; }
.lead { font-size: 1.12rem; color: #c3cfdc; max-width: 36em; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.platforms { color: var(--muted); font-size: .9rem; }
.phone { justify-self: center; width: 250px; aspect-ratio: 9 / 19; border-radius: 34px; padding: 10px;
  background: #050505; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 6px #15171e; }
.phone-screen { height: 100%; border-radius: 26px; overflow: hidden; display: grid; grid-template-rows: 40% auto 1fr; background: #000; }
.ph-cam { background: radial-gradient(circle at 50% 70%, #4a5b70 0, #26262a 55%, #111111 100%); display: grid; place-items: end center; }
.ph-face { width: 46%; aspect-ratio: 1; margin-bottom: -12%; border-radius: 50% 50% 42% 42%; background: #b3c0cf; box-shadow: inset 0 -10px 0 rgba(0,0,0,.12); }
.ph-caption { background: #000; color: #fff; font: 900 1.05rem "Arial Black", var(--font); text-align: center; padding: 8px 4px; letter-spacing: .02em; }
.ph-caption span { color: var(--accent); }
.ph-game { background: linear-gradient(160deg, #253445, #45566b 40%, #202023 75%, #0a0f16); display: grid; place-items: center; padding: 12px; }
.ph-hook { background: #000; color: #fff; font: 800 .78rem/1.3 var(--font); padding: 6px 8px; text-align: center; border-radius: 3px; }
.section { padding: 48px 16px; }
.section-title { font-size: 1.6rem; margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps p, .feature p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

/* planos: cartão com um topo destacado (nome, preço e botão) e a lista do que vem incluso embaixo */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; background: #0f0f10; border: 1px solid #1f1f22;
  border-radius: 18px; padding: 6px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.plan-top { background: #161618; border: 1px solid #232327; border-radius: 13px; padding: 16px; }
.plan-featured .plan-top { background: #1b1b1e; border-color: #2e2e33; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 32px; }
.plan-head h2, .plan-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 550; color: #a4a4ab; }
.plan-ico, .plan li svg { flex: none; }
.plan-tag { font-size: .75rem; font-weight: 600; color: var(--text); border: 1px solid #34343a; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.1; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.plan .btn, .plan form { width: 100%; }
.plan .btn-ghost { background: #0f0f10; border-color: #2a2a2f; }
.plan .btn-ghost:hover { background: #1f1f23; }
.plan-featured .btn:not(.btn-ghost) { color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(180deg, #c4f4fb, var(--accent) 55%, #6fcfe0);
  box-shadow: 0 0 0 1px rgba(143, 224, 238, .35), 0 8px 26px -8px rgba(143, 224, 238, .55);
  transition: box-shadow .2s, filter .2s; }
.plan-featured .btn:not(.btn-ghost):hover { filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(143, 224, 238, .5), 0 10px 34px -6px rgba(143, 224, 238, .7); }
.plan-note { display: block; padding: 11px 0 1px; font-size: .84rem; color: var(--muted); text-align: center; }
.plan-body { flex: 1; padding: 18px 12px 14px; }
.plan-for { margin: 0 0 14px; font-size: .8rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .9rem; color: #a9a9b0; }
.plan li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.35; }
.plan li svg { margin-top: 1px; color: var(--text); }
/* planos em movimento (classes postas pelo script do _plan_cards.html; sem ele, nada muda) */
@media (min-width: 861px) {
  .plans-fx { padding-top: 30px; }
  .plans-fx .plan { --x: 0px; --y: 0px; --s: .94; transform: translate(var(--x), var(--y)) scale(var(--s));
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease, border-color .3s ease, opacity .6s ease; }
  .plans-fx .plan.is-focus { --y: -20px; --s: 1; z-index: 2; border-color: #2c2c31; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .95); }
  .plans-fx .plan.to-left { --x: -24px; }
  .plans-fx .plan.to-right { --x: 24px; }
  .plans-fx.entering .plan { transition-duration: 1.2s, 1.2s, .3s, .6s; }
  .plans-fx.pre .plan { --x: 0px; --y: 50px; --s: 1; opacity: 0; transition: none; }
}
@media (max-width: 860px) {
  .plans-fx .plan { transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
  .plans-fx.pre .plan { transform: translateY(30px); opacity: 0; transition: none; }
}
.fineprint { margin-top: 20px; }

/* páginas internas */
.page { padding-top: 32px; padding-bottom: 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.usage { display: grid; gap: 6px; justify-items: end; min-width: 200px; }
.usage .bar { width: 220px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.job-h1 { font-size: 1.5rem; max-width: 40ch; overflow-wrap: anywhere; }


.new-job { display: grid; gap: 14px; margin-bottom: 32px; }
.url-field span { font-size: .9rem; }
.url-field input { font-size: 1.05rem; padding: 14px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row label { flex: 1; min-width: 140px; }
.row .btn { height: 46px; padding-left: 26px; padding-right: 26px; }
details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details[open] summary { margin-bottom: 12px; }

.list-title { font-size: 1.15rem; margin-bottom: 12px; }
.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.job:hover { border-color: #2f3f52; }
.job-main { display: grid; gap: 2px; min-width: 0; color: var(--text); flex: 1; }
.job-main:hover { text-decoration: none; }
.job-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-state { text-align: right; min-width: 150px; }
.empty { text-align: center; padding: 36px; }

.status-card { max-width: 560px; display: grid; gap: 10px; }
.status-label { font-weight: 700; font-size: 1.1rem; margin: 0; }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.clip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.clip video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; }
.clip-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.clip-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clip-n { font-weight: 800; color: var(--accent); }
.clip-title { font-weight: 700; margin: 0; }
.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; padding: 22px 0; margin-top: 32px; }

/* celular */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 210px; }
}
@media (max-width: 560px) {
  .nav-links { gap: 12px; font-size: .9rem; }
  .usage { justify-items: start; width: 100%; }
  .usage .bar { width: 100%; }
  .job { flex-direction: column; align-items: stretch; }
  .job-state { text-align: left; }
  .row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- aquário ASCII (página inicial) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aquario {
  --aq: #7fd9d6;
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(560px, 88vh, 780px); margin: 24px 0 8px;
  background: radial-gradient(ellipse at 50% 52%, #0a1416 0%, #05090b 55%, #030506 100%);
  border-top: 1px solid #10191b; border-bottom: 1px solid #10191b;
}
.aquario > video { display: none; }
.aquario canvas { position: absolute; inset: 0; z-index: 0; }
.aquario::after { /* vinheta para o texto respirar */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 34% 26% at 50% 50%, rgba(3, 6, 7, .78), transparent 70%);
}
.aq-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 0 16px; text-align: center;
}
.aq-hello {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  font: 500 .8rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #9fc9c7; letter-spacing: .02em;
}
.aq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aq); box-shadow: 0 0 10px var(--aq); }
.aq-title {
  margin: 0; font-size: clamp(1.7rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  max-width: 16ch; text-wrap: balance;
}
.aq-rot { display: inline-block; color: var(--accent); transition: opacity .38s ease, filter .38s ease, transform .38s ease; }
.aq-rot.out { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.aq-composer {
  width: min(620px, 100%); margin-top: 6px; text-align: left;
  background: rgba(14, 24, 27, .55); border: 1px solid rgba(127, 217, 214, .16);
  border-radius: 18px; padding: 14px 14px 10px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.aq-composer input {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--text);
  font: 400 1rem/1.4 var(--font); padding: 4px 4px 12px;
}
.aq-composer input::placeholder { color: #7f9a9b; }
.aq-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aq-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.aq-chip {
  font: 500 .75rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #a9cfcd;
  background: rgba(127, 217, 214, .06); border: 1px solid rgba(127, 217, 214, .16);
  border-radius: 999px; padding: 7px 11px; cursor: pointer; transition: background .15s, color .15s;
}
.aq-chip:hover { background: rgba(127, 217, 214, .14); color: var(--text); }
.aq-send {
  flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  transition: transform .12s ease;
}
.aq-send:active { transform: scale(.94); }
.aq-foot { margin: 0; font: 400 .75rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #6f8b8c; }
@media (max-width: 560px) {
  .aquario { height: 600px; }
  .aquario::after { background: radial-gradient(ellipse 70% 30% at 50% 50%, rgba(3, 6, 7, .8), transparent 75%); }
}
.aq-title { max-width: none; }
.aq-rot { min-height: 1.1em; white-space: nowrap; }
.aq-hello, .aq-foot, .aq-title { text-shadow: 0 0 14px #030607, 0 0 4px #030607; }
.aquario[data-olho]::after { display: none; } /* a pupila já é escura: não precisa de vinheta */
/* olho: título dentro da pupila, caixa do link embaixo do olho */
.aquario[data-olho] { height: clamp(640px, 94vh, 840px); }
.aquario[data-olho] .aq-content { display: block; padding: 0; }
.aquario[data-olho] .aq-head {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(92%, 640px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.aquario[data-olho] .aq-bottom {
  position: absolute; left: 0; right: 0; bottom: 26px; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
@media (max-width: 699px) {
  .aquario[data-olho] { height: 660px; }
  .aquario[data-olho] .aq-head { top: 38%; }
}
/* página inicial = só o olho, ocupando a tela toda abaixo do menu */
.aquario[data-olho] { height: calc(100vh - 61px); height: calc(100svh - 61px); min-height: 620px; margin: 0; border: 0; }
.aquario[data-olho] .aq-head { top: 45%; }
.aquario[data-olho] .aq-title { font-size: clamp(1.8rem, 4.6vw, 3.4rem); }
@media (max-width: 699px) {
  .aquario[data-olho] { height: calc(100svh - 61px); min-height: 600px; }
  .aquario[data-olho] .aq-head { top: 40%; }
}

/* detalhes do preto e branco (valem no site todo) */
.nav { background: rgba(5, 5, 5, .85); border-bottom: 0; }
.logo-mark { background: var(--accent); color: var(--accent-ink); }
.aquario { background: radial-gradient(ellipse at 50% 48%, #0b0b0c 0%, #060606 55%, #030303 100%); }
/* caixa do link transparente: o olho aparece por trás */
.aq-composer {
  background: transparent; border-color: rgba(255, 255, 255, .14);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.aq-composer input { text-shadow: 0 0 6px #000, 0 0 2px #000; }
.aq-composer input::placeholder { color: #7f8ea2; }
.aq-chip { color: #b3c0cf; background: transparent; border-color: rgba(255, 255, 255, .16); }
.aq-chip:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.aq-send { background: var(--accent); color: var(--accent-ink); }
.aq-foot { color: var(--muted); }
.footer { border-top-color: #161618; }
/* sem cor, o erro se diferencia pela borda forte e pelo peso do texto */
.flash-erro { border-left: 3px solid #fff; font-weight: 600; }
/* caixa da home: só o campo e o botão, numa linha */
.aq-composer { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; }
.aq-composer input { flex: 1; min-width: 0; padding: 6px 0; }
/* página /pergunta: mesmo olho, bem desfocado, com a conversa por cima */
.aquario.desfocado canvas { transform-origin: 50% var(--pupil-y, 45%); }
/* a página abre com o olho normal; quando a 1ª mensagem vai para a IA (.zoom), a câmera mergulha na pupila */
.aquario.desfocado.zoom.pronto canvas:not(.medusas) {
  filter: blur(6px) brightness(.4); transform: scale(7);
  animation: entra-pupila 2.4s cubic-bezier(.55, 0, .3, 1) both;
}
@keyframes entra-pupila {           /* um movimento só, sem parar na pupila: entra direto até o fundo dela */
  from { transform: scale(1); filter: blur(0) brightness(1); }
  to { transform: scale(7); filter: blur(6px) brightness(.4); }
}
/* lá dentro, as águas-vivas sobem do fundo para o topo */
.aquario.desfocado canvas.medusas { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transform: none; filter: none; animation: none; opacity: .85; }
.aquario.desfocado.zoom.pronto .chat { animation: aparece .6s 1.9s ease-out both; }
.aquario.desfocado:not(.zoom) .chat, .aquario.desfocado:not(.pronto) .chat { opacity: 0; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .aquario.desfocado.zoom.pronto canvas, .aquario.desfocado.zoom.pronto .chat { animation: none; }
}
.aquario.desfocado .aq-content { display: block; padding: 0; }
.chat { position: absolute; top: 0; bottom: 150px; left: 0; right: 0; overflow-y: auto; padding: 32px 16px 24px;
  scrollbar-width: thin; scrollbar-color: #2a2a2e transparent;
  mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 24px), transparent 100%); }
.chat-inner { width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.msg { line-height: 1.6; font-size: 1rem; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .7em; } .msg p:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 .7em; padding-left: 1.3em; } .msg li { margin: .2em 0; }
.msg code { font: .9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; }
.msg-user { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  border: 1px solid rgba(255,255,255,.16); color: #ecf3f8; }
.msg-assistant { color: #dce6ef; text-shadow: 0 0 10px #000, 0 0 3px #000; }
.msg-erro { color: #fff; border-left: 3px solid #fff; padding-left: 12px; font-weight: 600; }
.typing { display: inline-flex; gap: 5px; padding-top: 6px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #b3c0cf; animation: pisca 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pisca { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .7; } }
.aq-send:disabled { opacity: .5; cursor: default; }
.chat { text-align: left; }

/* caixa "Pergunte algo": texto em cima, ferramentas embaixo (layout de chat) */
.aq-composer.composer { display: block; width: min(720px, 100%); padding: 14px 12px 10px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 6, 6, .35); }
.composer textarea { display: block; width: 100%; resize: none; overflow-y: auto; min-height: 26px; max-height: 168px;
  background: transparent; border: 0; outline: 0; color: var(--text); font: 400 .98rem/1.5 var(--font);
  padding: 2px 2px 14px; text-shadow: 0 0 6px #000, 0 0 2px #000; scrollbar-width: thin; }
.composer textarea::placeholder { color: #6d7c8f; }
.cmp-bar { display: flex; align-items: center; gap: 10px; }
.cmp-tools { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.cmp-icon, .cmp-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px;
  border: 0; background: transparent; color: #8e9cad; border-radius: 8px; cursor: pointer; font: 500 .8rem/1 var(--font);
  transition: background .15s, color .15s; }
.cmp-icon { width: 30px; }
.cmp-pill { padding: 0 9px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); color: #bac6d4; }
.cmp-icon:hover, .cmp-pill:hover { background: rgba(255, 255, 255, .07); color: #e3edf5; }
.cmp-icon[aria-disabled="true"], .cmp-pill[aria-disabled="true"] { cursor: default; }
.cmp-mic.on { color: #fff; background: rgba(255, 255, 255, .12); }
.composer .cmp-send { width: 34px; height: 34px; border-radius: 9px; background: #1c1c1f; color: #8190a3;
  border: 1px solid rgba(255, 255, 255, .08); transition: background .15s, color .15s; }
.composer.has-text .cmp-send { background: var(--accent); color: var(--accent-ink); }
/* cartões no chat: pedido de clipes e convite para entrar */
.chat-card { border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px 16px;
  background: rgba(10, 10, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chat-card p { margin: 0; }
.jc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jc-title { font-weight: 600; overflow-wrap: anywhere; }
.jc-open { flex: none; font-size: .85rem; color: var(--muted); }
.jc-open.jc-ready { color: var(--accent-ink); background: var(--accent); padding: 6px 12px; border-radius: 9px; font-weight: 600; text-decoration: none; }
.jc-meta { color: var(--muted); font-size: .85rem; margin: 4px 0 10px !important; }
.job-card .bar { margin: 0 0 8px; }
.jc-status { font-size: .88rem; color: #c6d2df; }
.job-card.falhou .jc-status { color: #fff; font-weight: 600; }
.lc-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.lc-link { color: var(--muted); font-size: .9rem; }
.chat-status { color: var(--muted); font-size: .9rem; }

/* ---------- barra lateral (logo, nova conversa, projetos salvos, planos, conta) ---------- */
:root { --rail: 64px; }
body { padding-left: var(--rail); }
.nav { display: none; }
.rail { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 16px;
  background: #070707; border-right: 1px solid #151517; border-top-right-radius: 18px; }
.rail-logo { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; text-decoration: none; }
.rail-logo:hover { text-decoration: none; }
.rail-logo .logo-mark { width: 30px; height: 30px; font-size: .85rem; }
/* logo: o olho do Clipeye, que pisca de vez em quando (e logo ao passar o mouse) */
.logo-eye { position: relative; display: block; width: 38px; height: 38px;
  filter: drop-shadow(0 0 5px rgba(143, 224, 238, .28)); }
.logo-eye img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.logo-eye-closed { opacity: 0; }
.logo-eye-open { animation: eye-open 5s infinite; transform-origin: 50% 50%; }
.logo-eye-closed { animation: eye-closed 5s infinite; }
.rail-logo:hover .logo-eye-open { animation: eye-open-now .5s 1; }
.rail-logo:hover .logo-eye-closed { animation: eye-closed-now .5s 1; }
@keyframes eye-open {
  0%, 86%, 100% { opacity: 1; transform: scaleY(1); }
  88.5% { opacity: 1; transform: scaleY(.4); }
  89%, 93% { opacity: 0; transform: scaleY(.4); }
  93.5% { opacity: 1; transform: scaleY(.6); }
  96% { transform: scaleY(1); }
}
@keyframes eye-closed { 0%, 88.5%, 93.5%, 100% { opacity: 0; } 89%, 93% { opacity: 1; } }
@keyframes eye-open-now {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  25% { opacity: 1; transform: scaleY(.4); }
  30%, 60% { opacity: 0; transform: scaleY(.4); }
  65% { opacity: 1; transform: scaleY(.6); }
}
@keyframes eye-closed-now { 0%, 25%, 65%, 100% { opacity: 0; } 30%, 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-eye img { animation: none !important; } }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rail-item { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: #7f8ea2; transition: background .15s, color .15s; }
.rail-item:hover { background: #141416; color: #e3edf5; text-decoration: none; }
.rail-item.active { background: #1a1a1d; color: #ecf3f8; box-shadow: inset 0 0 0 1px #26262a; }
.rail-item.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); }
.rail-conta { margin-top: auto; }
.rail-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 700 .8rem/1 var(--font); }
/* nome do item ao passar o mouse */
.rail [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  background: #161618; color: #e6eef5; border: 1px solid #26262a; padding: 6px 10px; border-radius: 8px;
  font: 500 .8rem/1 var(--font); transition: opacity .12s, transform .12s; }
.rail-logo[data-tip] { position: relative; }
.rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
/* telas cheias (olho): ocupam a altura toda, sem o menu de cima */
.aquario[data-olho] { height: 100vh; height: 100svh; }

@media (max-width: 699px) {
  :root { --rail: 0px; }
  body { padding-bottom: 60px; }
  .rail { top: auto; right: 0; width: auto; height: 60px; flex-direction: row; justify-content: space-around;
    padding: 0 8px; border-right: 0; border-top: 1px solid #151517; border-radius: 0; gap: 0; }
  .rail-logo { margin: 0; }
  .rail-nav { flex-direction: row; gap: 0; display: contents; }
  .rail-conta { margin: 0; }
  .rail-item.active::before { left: 10px; right: 10px; top: auto; bottom: -10px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .rail [data-tip]::after { display: none; }
  .aquario[data-olho] { height: calc(100svh - 60px); min-height: 560px; }
}
/* página da conta */
.conta { max-width: 720px; }
.conta-id { display: flex; align-items: center; gap: 14px; }
.conta-id h1 { margin: 0; }
.conta-id p { margin: 2px 0 0; }
.conta-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 800 1.2rem/1 var(--font); flex: none; }
.conta-card { margin-bottom: 14px; }
.conta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.conta-label { margin: 0 0 4px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.conta-value { margin: 0; font-weight: 600; }
.conta-uso { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.conta-uso .bar { margin: 6px 0 8px; }
.conta-sair { margin-top: 20px; }
/* saldo do usuário na caixa de perguntas (mesmo diamante da aba Planos) */
.cmp-saldo { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px;
  color: var(--text); font: 700 .84rem/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background .15s; }
.cmp-saldo .ico { color: var(--accent); }
/* leve neon no número: brilho ciano em volta do texto branco */
.cmp-saldo-n { color: #eefcff; text-shadow: 0 0 6px rgba(143, 224, 238, .55), 0 0 14px rgba(143, 224, 238, .25); }
.cmp-saldo-free { font-weight: 500; font-size: .82rem; color: var(--muted); }
.cmp-saldo:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }

/* ---------- editor, publicação e desempenho ---------- */
:root {
  /* cores das redes no gráfico: ordem fixa, validada para o fundo escuro (daltonismo e contraste) */
  /* a cor de cada app: TikTok branco, Instagram roxo, YouTube vermelho */
  --net-tiktok: #f2f2f2;
  --net-instagram: #9b4dea;
  --net-youtube: #ff0033;
}
.flash-error { border-color: rgba(240, 184, 200, .45); background: rgba(240, 184, 200, .08); }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); }
code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.head-actions { display: flex; gap: 8px; }
.sec-h { font-size: 1.1rem; margin: 28px 0 12px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }

.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -3px; }
.spinner-sm { width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ed-status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ed-col { display: grid; gap: 18px; min-width: 0; }
.ed-col > * { min-width: 0; }
.ed-card { padding: 18px; }
.ed-h { font-size: 1rem; margin: 0 0 12px; }
.ed-h2 { margin-top: 18px; }
.ed-h-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ed-src { width: 100%; max-height: 360px; background: #000; border-radius: 10px; display: block; cursor: pointer; }
.ed-out { width: 100%; max-height: 520px; background: #000; border-radius: 10px; display: block; }
.ed-wait { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 10px; }
.ed-wait p { margin: 0; }

.trim { position: relative; height: 34px; margin: 14px 0 8px; }
.trim-track { position: absolute; inset: 11px 0; border-radius: 99px; background: var(--surface-2); }
.trim-sel { position: absolute; top: -4px; bottom: -4px; background: rgba(143, 224, 238, .28);
  border: 2px solid var(--accent); border-radius: 6px; }
.trim-orig { position: absolute; top: 4px; bottom: 4px; background: rgba(230, 238, 245, .22); border-radius: 99px;
  pointer-events: none; }
.trim-head { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--text); left: 0; pointer-events: none; }
.trim-in { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; background: none; border: 0;
  appearance: none; -webkit-appearance: none; pointer-events: none; height: 34px; }
.trim-in::-webkit-slider-runnable-track { background: none; height: 34px; }
.trim-in::-moz-range-track { background: none; }
.trim-in::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 34px;
  border-radius: 6px; background: var(--accent); cursor: ew-resize; border: 2px solid var(--bg); }
.trim-in::-moz-range-thumb { pointer-events: auto; width: 14px; height: 32px; border-radius: 6px; background: var(--accent);
  cursor: ew-resize; border: 2px solid var(--bg); }
.trim-in:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--text); outline-offset: 2px; }
.trim-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.trim-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.trim-side { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.nudge { display: flex; align-items: center; gap: 6px; }
.trim-v { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 64px; text-align: center; }

.opt-grid { display: grid; gap: 10px; }
.opt-fmt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-style { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.opt { display: block; color: var(--text); cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); height: 100%; transition: border-color .15s, background .15s; }
.opt:hover .opt-box { border-color: #3a3f48; }
.opt input:checked + .opt-box { border-color: var(--accent); background: rgba(143, 224, 238, .06); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.fmt-shape { display: block; border: 2px solid var(--muted); border-radius: 4px; margin-bottom: 6px; height: 34px; }
.fmt-shape.fmt-9-16 { width: 19px; }
.fmt-shape.fmt-4-5 { width: 27px; }
.fmt-shape.fmt-1-1 { width: 34px; }
.fmt-shape.fmt-16-9 { width: 60px; }
.opt input:checked + .opt-box .fmt-shape { border-color: var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-opt { position: relative; cursor: pointer; color: var(--text); font-size: .88rem; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 7px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg); }
.seg-opt input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(143, 224, 238, .06); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-opt.is-off, .seg-opt.is-dim { opacity: .45; cursor: not-allowed; }
.seg-note { margin: 8px 0 0; }

.cap-sample { display: grid; place-items: center; min-height: 52px; border-radius: 8px; padding: 6px;
  background: linear-gradient(135deg, #1c2733, #2b2234); font-size: .8rem; line-height: 1.2; text-align: center; color: #fff; }
.cap-destaque { font-weight: 900; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 0 #000; }
.cap-destaque b { color: #ffe500; }
.cap-neon { font-weight: 900; text-shadow: 0 0 3px #102a60, 0 0 6px #102a60; }
.cap-neon b { color: #8fe0ee; text-shadow: 0 0 8px rgba(143, 224, 238, .7); }
.cap-caixa { font-weight: 700; }
.cap-caixa b { color: #ffe500; font-weight: 700; }
.cap-minimal { font-weight: 600; text-shadow: 0 1px 2px #000; }
.cap-minimal b { font-weight: 600; }
.cap-none { color: var(--muted); font-size: 1.1rem; }

.brand-sum { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.brand-sum img { border-radius: 8px; background: var(--surface-2); object-fit: contain; }
.brand-form { margin-top: 18px; }
.brand-form summary { cursor: pointer; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.brand-grid input[type=file] { padding: 8px; }

.clip video.fmt-16-9 { aspect-ratio: 16 / 9; }
.clip video.fmt-1-1 { aspect-ratio: 1; }
.clip video.fmt-4-5 { aspect-ratio: 4 / 5; }
.clip-posts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.pub-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pub-preview { padding: 14px; display: grid; gap: 8px; }
.pub-preview p { margin: 0; }
.pub-form { padding: 18px; display: grid; gap: 14px; }
.pub-nets { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-net { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.pub-net { flex-wrap: wrap; }
.pub-net.is-off .check { cursor: default; }
.pub-net select { width: auto; min-width: 140px; }
.pub-tt { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 4px; }
.pub-tt-brand { flex-basis: 100%; display: grid; gap: 4px; padding-left: 22px; }
.pub-tt-brand[hidden] { display: none; }
.pub-form .fineprint { margin: 0; }

.net-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; flex: none; }
.net-dot-lg { width: 14px; height: 14px; }
.net-tiktok, .net-bg-tiktok { background: var(--net-tiktok); }
.net-instagram, .net-bg-instagram { background: var(--net-instagram); }
.net-youtube, .net-bg-youtube { background: var(--net-youtube); }
.badge-ok { color: var(--accent); border-color: rgba(143, 224, 238, .35); }
.badge-err { color: var(--error); border-color: rgba(240, 184, 200, .45); }
.badge-sim { color: var(--accent-2); border-color: rgba(180, 168, 238, .4); margin-left: 4px; }
.posts { display: grid; gap: 8px; }
.post-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.post-row:last-child { border-bottom: 0; }
.post-net { font-weight: 600; }
.net-id { display: flex; align-items: center; gap: 12px; }
.net-id p { margin: 0; }
.net-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.conta-sep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px;
  color: var(--text); font-size: .88rem; background: var(--surface); }
.chip:hover { text-decoration: none; border-color: #3a3f48; }
.chip.active { border-color: var(--accent); color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tile p { margin: 0; }
.tile-l { font-size: .8rem; color: var(--muted); }
.tile-v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tile .tile-h { margin-top: 2px; font-size: .75rem; }
.perf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.chart-card { padding: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; font-size: .82rem; color: var(--muted); }
.chart { position: relative; height: 220px; margin: 18px 0 6px; }
.chart-grid { position: absolute; left: 44px; right: 0; top: 0; bottom: 22px; display: flex; flex-direction: column;
  justify-content: space-between; pointer-events: none; }
.chart-grid span { border-top: 1px solid rgba(255, 255, 255, .06); position: relative; height: 0; }
.chart-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 8px); top: -.6em;
  font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-bars { position: absolute; left: 44px; right: 0; top: 0; bottom: 0; display: flex; gap: 6px; }
.col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
  outline: none; padding-bottom: 22px; }
.col .stack { display: flex; flex-direction: column-reverse; gap: 2px; min-height: 0; transition: opacity .15s; }
.col .bar-seg { display: block; min-height: 2px; flex-basis: 0; }
.col .stack .bar-seg:last-child { border-radius: 4px 4px 0 0; }
.col.is-dim .stack { opacity: .45; }
.col:focus-visible .stack { outline: 2px solid var(--text); outline-offset: 2px; }
.col-x { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: .8rem; min-width: 140px;
  pointer-events: none; z-index: 3; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.tip-day { color: var(--muted); margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 4px; }
.tip-row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tip-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.chart-empty { padding: 50px 0; text-align: center; }
.table-view summary { cursor: pointer; color: var(--muted); margin-top: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.table-card { padding: 6px 8px; overflow-x: auto; }
.table-card .fineprint { margin: 8px 10px; }
.posts-table .post-title { max-width: 360px; }
.net-bars { display: grid; gap: 16px; }
.net-bar p { margin: 6px 0 0; }
.net-bar-top { display: flex; justify-content: space-between; align-items: center; }
.hbar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.hbar span { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.tips { padding: 18px; margin-bottom: 8px; }
.tips ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 6px; }
.tips-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.empty-perf { padding: 28px; max-width: 620px; }

@media (max-width: 860px) {
  .ed-grid, .pub-grid, .perf-grid, .tips-tables { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trim-ctl { grid-template-columns: 1fr; }
  .pub-net { flex-wrap: wrap; }
  .pub-net select { width: 100%; }
  .chart-grid, .chart-bars { left: 36px; }
  .chart-bars { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- painel de desempenho (grade de cartões) ---------- */
.dash { max-width: 1240px; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-bar .chips { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-wide { grid-column: span 2; }
/* cartão = moldura com uma "tela" preta embutida (o gráfico) e um rodapé com título, descrição e link */
.dash-card { position: relative; display: flex; flex-direction: column; background: #0f0f10; border: 1px solid #1f1f22;
  border-radius: 18px; padding: 8px; min-width: 0; transition: border-color .15s; }
.dash-card:hover { border-color: #2c2c30; }
.dash-screen { flex: 1; min-width: 0; background: #060607; border: 1px solid #1b1b1e; border-radius: 12px; padding: 18px 18px 14px; }
.dash-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 12px 8px; }
.dash-foot-t { min-width: 0; }
.dash-foot h2 { font-size: 1rem; font-weight: 650; margin: 0; letter-spacing: 0; color: var(--text); }
.dash-foot p { margin: 2px 0 0; font-size: .88rem; color: #8f8f96; line-height: 1.35; }
.dash-link { flex: none; font-size: .88rem; font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
.dash-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash-plain { padding: 14px 16px; }
.dash .table-card { padding: 8px 10px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-head h2 { font-size: .95rem; font-weight: 650; margin: 0; letter-spacing: 0; }
.dash-i { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4a505b; background: none;
  color: var(--muted); font: 700 11px/1 var(--font); font-style: italic; cursor: help; flex: none; padding: 0; }
.dash-i:hover, .dash-i:focus-visible { color: var(--text); border-color: var(--text); outline: none; }
.dash-i::after { content: attr(data-info); position: absolute; right: -6px; top: calc(100% + 8px); width: 230px; z-index: 5;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text);
  font: 400 .78rem/1.4 var(--font); text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.dash-i:hover::after, .dash-i:focus-visible::after { opacity: 1; visibility: visible; }

.kpis { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; margin: 2px 0 8px; }
.kpi { display: grid; }
.kpi-v { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-main .kpi-v { font-size: 1.9rem; letter-spacing: -0.02em; }
.kpi-l { font-size: .75rem; color: var(--muted); }

.viz { position: relative; min-height: 150px; }
.viz svg { display: block; overflow: visible; }
.viz svg text { font-family: var(--font); }
.viz .ax { fill: #7d8796; font-size: 11px; font-variant-numeric: tabular-nums; }
.viz .bub { fill: #04121a; font-size: 11px; font-weight: 700; }
.viz .big { fill: var(--text); font-size: 22px; font-weight: 800; }
.viz [tabindex]:focus { outline: none; }
.viz [tabindex]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.viz .hit { cursor: default; }
.dash-empty { color: var(--muted); font-size: .86rem; text-align: center; padding: 50px 10px; margin: 0; }

.dash-tip { position: absolute; z-index: 6; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; font-size: .8rem; min-width: 150px; max-width: 240px; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55); }
.dash-tip[hidden] { display: none; }
.tip-sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; flex: none; }
.tip-t { font-weight: 600; margin-bottom: 4px; line-height: 1.3; }

.dash-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.dash-legend li { display: flex; align-items: center; gap: 2px; }
.dash-legend b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.dash-legend .muted { margin-left: 10px; font-size: .78rem; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.dash-legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .8rem; }
.dash-legend-row li { gap: 0; }
.donut-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 22px; }
@media (max-width: 420px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .donut-wrap .viz-donut { width: 170px; } .donut-wrap .dash-legend { width: 100%; max-width: 260px; } }
.donut-wrap .dash-legend { margin: 0; }
.sty-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; flex: none; }
.sty-destaque { background: #c98500; }
.sty-neon { background: #17a39a; }
.sty-caixa { background: #3f7fe8; }
.sty-minimal { background: #a3abb5; }
.sty-sem { background: #5d646e; }

/* linha do tempo: eixo no meio, itens alternando dos dois lados */
.tl { list-style: none; margin: 6px 0 0; padding: 0; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px;
  background: linear-gradient(#2b2e36, #2b2e36 60%, transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 54px; }
.tl-node { position: absolute; left: 50%; top: 4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: #060607; border: 2px solid; box-shadow: 0 0 0 5px rgba(255, 255, 255, .04); }
.tl-node::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.net-ring-tiktok { border-color: var(--net-tiktok); color: var(--net-tiktok); }
.net-ring-instagram { border-color: var(--net-instagram); color: var(--net-instagram); }
.net-ring-youtube { border-color: var(--net-youtube); color: var(--net-youtube); }
.tl-body { display: grid; gap: 1px; font-size: .78rem; line-height: 1.3; }
.tl-l .tl-body { grid-column: 1; text-align: right; padding-right: 22px; }
.tl-r .tl-body { grid-column: 2; padding-left: 22px; }
.tl-date { font-weight: 700; color: var(--text); font-size: .8rem; }
.tl-title { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-title a { color: var(--muted); }
.tl-v { color: var(--text); font-variant-numeric: tabular-nums; }

/* pirâmide: mesmo corte, uma rede de cada lado */
.pyr { display: grid; gap: 9px; margin-top: 4px; }
.pyr-row { display: grid; gap: 3px; outline: none; border-radius: 6px; }
.pyr-row:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.pyr-t { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pyr-bars { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; }
.pyr-side { position: relative; display: flex; align-items: center; height: 14px; }
.pyr-side i { display: block; height: 100%; min-width: 2px; }
.pyr-a { justify-content: flex-end; padding-left: 48px; }
.pyr-b { padding-right: 48px; }
.pyr-a i { border-radius: 4px 0 0 4px; }
.pyr-b i { border-radius: 0 4px 4px 0; }
.pyr-side em { position: absolute; font-style: normal; font-size: .7rem; color: var(--text); font-variant-numeric: tabular-nums;
  top: -1px; }
.pyr-a em { left: 0; }
.pyr-b em { right: 0; }
.pyr-mid { text-align: center; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pyr-row:hover .pyr-mid { color: var(--text); }

.dash .tips { margin-bottom: 8px; }


@media (max-width: 1020px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-wide { grid-column: auto; }
  .kpis { gap: 6px 18px; }
  .kpi-main { width: 100%; }
}

/* ---------- painel de desempenho: animação de entrada ----------
   Só existe com .dash-anim (posto pelo template quando a pessoa não pediu "reduzir movimento").
   Cada cartão fica parado até aparecer na tela (.in); --d é o atraso da cascata, --k o atraso de cada peça. */
@keyframes dash-in { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }
@keyframes dash-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dash-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dash-grow { from { transform: scaleY(0); } }
@keyframes dash-growx { from { transform: scaleX(0); } }
@keyframes dash-pop { from { opacity: 0; transform: scale(.5); } }
@keyframes dash-up { from { opacity: 0; transform: translateY(8px); } }

.dash-anim { --ease-out: cubic-bezier(.22, 1, .36, 1); }
.dash-anim .dash-card { animation: dash-in .64s var(--ease-out) var(--d, 0ms) both; }
.dash-anim .a-reveal { animation: dash-reveal 1s cubic-bezier(.65, 0, .35, 1) calc(var(--d, 0ms) + 180ms + var(--k, 0ms)) both; }
.dash-anim .a-draw { stroke-dasharray: 1 2;
  animation: dash-draw 1s var(--ease-out) calc(var(--d, 0ms) + 220ms + var(--k, 0ms)) both; }
.dash-anim .a-grow { transform-box: fill-box; transform-origin: 50% 100%;
  animation: dash-grow .7s var(--ease-out) calc(var(--d, 0ms) + 200ms + var(--k, 0ms)) both; }
.dash-anim .a-pop { transform-box: fill-box; transform-origin: center;
  animation: dash-pop .4s var(--ease-out) calc(var(--d, 0ms) + var(--k, 0ms)) both; }
.dash-anim .pyr-side i { animation: dash-growx .7s var(--ease-out) calc(var(--d, 0ms) + 220ms + var(--k, 0ms)) both; }
.pyr-a i { transform-origin: right center; }
.pyr-b i { transform-origin: left center; }
.dash-anim .tl::before { transform-origin: top; animation: dash-grow .9s var(--ease-out) calc(var(--d, 0ms) + 150ms) both; }
.dash-anim .tl-item { animation: dash-up .5s var(--ease-out) calc(var(--d, 0ms) + 220ms + var(--k, 0ms)) both; }

/* parado até o cartão aparecer; depois de entrar, nada anima de novo (redesenho ao mudar o tamanho da janela) */
.dash-anim .dash-card:not(.in), .dash-anim .dash-card:not(.in) *, .dash-anim .dash-card:not(.in) .tl::before { animation-play-state: paused; }
.dash-anim .dash-card.done, .dash-anim .dash-card.done *, .dash-anim .dash-card.done .tl::before { animation: none; }

/* ---------- entrar / criar conta: cartão de vidro sobre um brilho no azul do site (--accent), que inclina com o mouse ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 16px;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 75% at 50% 0%, #2f8a9e 0%, #1b5869 28%, #0c2a34 52%, #050505 78%); }
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 45%, rgba(143, 224, 238, .2), transparent 70%); }
.auth-blob { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; background: rgba(255, 255, 255, .05);
  filter: blur(60px); animation: auth-pulse 4s ease-in-out infinite; }
.auth-blob-a { left: 18%; top: 14%; }
.auth-blob-b { right: 18%; bottom: 14%; animation-delay: 2s; }
@keyframes auth-pulse { 50% { opacity: .45; transform: scale(1.08); } }

.auth-stage { width: 100%; max-width: 384px; perspective: 1500px; }
.auth-tilt { --mx: 50%; --my: 0%; transition: transform .25s ease-out; transform-style: preserve-3d;
  animation: auth-in .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes auth-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.auth-card { position: relative; overflow: hidden; padding: 24px; border-radius: 16px;
  background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
/* brilho que segue o mouse por dentro do cartão */
.auth-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%); }
.auth-stage:hover .auth-shine { opacity: 1; }

.auth-head { text-align: center; margin-bottom: 20px; }
.auth-logo { display: inline-block; width: 44px; height: 44px; margin-bottom: 8px; filter: drop-shadow(0 0 8px rgba(143, 224, 238, .35)); }
.auth-head h1 { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: #f2f2f2; letter-spacing: -.01em; }
.auth-head p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.auth-error { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; font-size: .84rem; color: #ffd9e2;
  background: rgba(255, 80, 120, .1); border: 1px solid rgba(255, 120, 150, .25); }

.auth-form { display: grid; gap: 12px; }
.auth-field { position: relative; display: block; }
.auth-field .auth-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .45);
  pointer-events: none; transition: color .2s; }
.auth-field input { width: 100%; height: 42px; padding: 0 40px 0 38px; border-radius: 9px; font: inherit; font-size: .9rem;
  color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid transparent; outline: none;
  transition: background .2s, border-color .2s; }
.auth-field input::placeholder { color: rgba(255, 255, 255, .4); }
.auth-field input:hover { background: rgba(255, 255, 255, .07); }
.auth-field input:focus { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.auth-field:focus-within .auth-ico { color: rgba(255, 255, 255, .85); }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: rgba(255, 255, 255, .45); cursor: pointer; }
.auth-eye:hover { color: #fff; }
.auth-eye:focus-visible { outline: 2px solid rgba(255, 255, 255, .4); }
.auth-eye .eye-off, .auth-eye[aria-pressed="true"] .eye-on { display: none; }
.auth-eye[aria-pressed="true"] .eye-off { display: block; }

.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; margin-top: 6px;
  border: 0; border-radius: 9px; font: 650 .92rem var(--font); color: #0a0a0b; background: #fff; cursor: pointer;
  transition: transform .12s ease, background .15s; }
.auth-submit:hover { background: #ececec; }
.auth-submit:hover svg { transform: translateX(2px); }
.auth-submit svg { transition: transform .15s; }
.auth-submit:active { transform: scale(.98); }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: .75rem; color: rgba(255, 255, 255, .4); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border-radius: 9px;
  font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .9); text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s; }
.auth-google:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); text-decoration: none; color: #fff; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: .84rem; color: rgba(255, 255, 255, .6); }
.auth-switch a { color: #fff; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .auth-blob, .auth-tilt { animation: none; }
  .auth-tilt { transition: none; }
}

/* ---------- projetos salvos: grade de pastas (referências: HorizonX e "3D Folder" do 21st.dev) ---------- */
.projects { position: relative; isolation: isolate; }
.projects-glow { position: absolute; z-index: -1; top: -140px; right: 0; width: min(560px, 90vw); height: 440px;
  pointer-events: none; background: radial-gradient(closest-side, rgba(143, 224, 238, .13), transparent);
  filter: blur(10px); }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; }
.projects-eyebrow { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.projects-head h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -.025em; }
.tokens-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .025); color: var(--text); font-size: .85rem;
  transition: border-color .2s, background .2s; }
.tokens-pill:hover { text-decoration: none; border-color: rgba(143, 224, 238, .35); background: rgba(143, 224, 238, .05); }
.tokens-pill .ico { color: var(--accent); }
.tokens-bar { width: 58px; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tokens-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* novo projeto: uma linha só, opções embaixo */
.new-project { display: grid; gap: 10px; margin-bottom: 30px; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); }
.np-main { display: flex; gap: 8px; }
.np-url { position: relative; display: block; flex: 1; min-width: 0; }
.np-url .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.np-url input { height: 48px; padding: 0 14px 0 42px; border-radius: 11px; font-size: 1rem; }
.np-url:focus-within .ico { color: var(--accent); }
.np-go { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 20px; white-space: nowrap; }
.np-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 0 4px 2px; font-size: .85rem; }
.np-opts > label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.np-opts select { width: auto; height: 34px; padding: 0 10px; font-size: .85rem; border-radius: 9px; }
.np-more { margin-left: auto; }
.np-more[open] { flex-basis: 100%; margin-left: 0; }
.np-more summary { font-size: .85rem; }
.np-range { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.np-range label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.np-range input { width: 130px; height: 34px; padding: 0 10px; font-size: .85rem; border-radius: 9px; }

/* filtros */
.pf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pf[hidden], .pf-pill[hidden], .proj[hidden], .pf-none[hidden] { display: none; }
.pf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 .85rem var(--font);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.pf-pill:hover { color: var(--text); border-color: #34343a; }
.pf-pill[aria-pressed="true"] { color: var(--text); border-color: rgba(143, 224, 238, .6); background: rgba(143, 224, 238, .07); }
.pf-n { font-size: .75rem; color: #8593a5; font-variant-numeric: tabular-nums; }
.pf-pill[aria-pressed="true"] .pf-n { color: var(--accent); }
.pf-search { position: relative; display: block; width: min(280px, 100%); }
.pf-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pf-search input { height: 36px; padding: 0 14px 0 34px; border-radius: 99px; font-size: .85rem; background: var(--surface); }
.pf-none { margin: 8px 0 0; }

/* grade */
.proj-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.proj { animation: proj-in .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0) * 45ms); }
.projects.is-ready .proj { animation: none; }   /* a lista se atualiza sozinha: só anima na primeira vez */
@keyframes proj-in { from { opacity: 0; transform: translateY(14px); } }
.proj-link { display: block; color: inherit; }
.proj-link:hover { text-decoration: none; }
.proj-link:focus-visible { outline: none; }
.proj-link:focus-visible .proj-art { outline: 2px solid var(--accent); outline-offset: 3px; }

/* a "capa": uma pasta com os clipes dentro */
.proj-art { --fb: #2a2a30; --f1: #4a4a52; --f2: #303036; --fi: #c9ccd3; --glow: rgba(255, 255, 255, .04);
  position: relative; aspect-ratio: 4 / 3; display: grid; justify-items: center; align-items: end; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border); perspective: 900px;
  background: radial-gradient(75% 65% at 50% 100%, var(--glow), transparent 70%), #0c0c0e;
  transition: border-color .3s, background-color .3s; }
.proj-art.s-done { --fb: #2a8a9d; --f1: #b8f1f9; --f2: #62c6da; --fi: #04121a; --glow: rgba(143, 224, 238, .16); }
.proj-art.s-running, .proj-art.s-queued { --fb: #5f52b8; --f1: #d9d2fc; --f2: #9b8eec; --fi: #120c2e; --glow: rgba(180, 168, 238, .16); }
.proj-art.s-error { --fb: #9c4a62; --f1: #f8d0da; --f2: #e18ba2; --fi: #2a0812; --glow: rgba(240, 184, 200, .13); }
.folder { position: relative; width: 56%; aspect-ratio: 1.32; margin-bottom: 11%; transform-style: preserve-3d; }
.folder-back { position: absolute; inset: 0; border-radius: 6px 12px 12px 12px; background: var(--fb); }
.folder-back::before { content: ""; position: absolute; left: 0; top: -9%; width: 40%; height: 16%;
  border-radius: 8px 10px 0 0; background: var(--fb); }
.folder-sheet { position: absolute; z-index: 2; bottom: 6%; left: calc(32% + var(--o, 0) * 20%); width: 36%;
  aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: #1c1c20; border: 2px solid #f2f4f6;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .55);
  transform: translateY(-16%) rotate(calc(var(--o, 0) * 5deg)); transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.34, 1.45, .64, 1); transition-delay: calc((var(--o, 0) + 1) * 35ms); }
.folder-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.folder-sheet.is-ghost { border: 1px solid rgba(255, 255, 255, .16); box-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), #17171b; }
.folder-sheet.is-loading { background: linear-gradient(110deg, rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .06) 70%) 0 0 / 300% 100%, #1a1a20;
  animation: sheet-shimmer 1.6s linear infinite; }
@keyframes sheet-shimmer { to { background-position: -300% 0, 0 0; } }
.folder-front { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 76%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 0 9% 8%;
  border-radius: 10px; color: var(--fi); font-size: .75rem; font-weight: 700; line-height: 1.2;
  background: linear-gradient(180deg, var(--f1), var(--f2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 26px -12px rgba(0, 0, 0, .7);
  transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.folder-label { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.folder-min { opacity: .65; font-weight: 600; white-space: nowrap; }
.proj-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 99px;
  overflow: hidden; background: rgba(255, 255, 255, .08); }
.proj-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent-2); transition: width .6s ease; }
.proj-progress.is-indeterminate span { width: 30% !important; animation: indet 1.4s ease-in-out infinite; }

/* passar o mouse: a pasta abre e os clipes saem em leque */
@media (hover: hover) {
  .proj-link:hover .proj-art { border-color: rgba(143, 224, 238, .26); background-color: #0f0f12; }
  .proj-link:hover .folder-sheet, .proj-empty:hover .folder-sheet {
    transform: translate(calc(var(--o, 0) * 30%), -44%) rotate(calc(var(--o, 0) * 12deg)); }
  .proj-link:hover .folder-front, .proj-empty:hover .folder-front { transform: rotateX(-24deg); }
  .proj-link:hover .proj-title { color: #fff; }
}
.proj-link:focus-visible .folder-sheet { transform: translate(calc(var(--o, 0) * 30%), -44%) rotate(calc(var(--o, 0) * 12deg)); }
.proj-link:focus-visible .folder-front { transform: rotateX(-24deg); }

.proj-info { padding: 12px 2px 0; }
.proj-title { margin: 0 0 8px; font-size: 1rem; font-weight: 650; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  transition: color .2s; }
.proj-msg { margin: -2px 0 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-msg.is-error { color: var(--error); }
.proj-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .78rem; color: var(--muted); }
.proj-chip { flex: none; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2);
  color: #c4ced8; font-weight: 500; }
.proj-channel { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-meta time { margin-left: auto; flex: none; white-space: nowrap; }

/* sem projetos */
.proj-empty { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 28px; align-items: center;
  padding: 22px; border-radius: 18px; border: 1px dashed #2c2c32; }
.proj-empty h2 { margin: 0 0 6px; font-size: 1.2rem; }
.proj-empty p { margin: 0; max-width: 52ch; }

@media (max-width: 640px) {
  .np-main { flex-wrap: wrap; }
  .np-go { width: 100%; justify-content: center; }
  .pf-search { width: 100%; }
  .proj-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; }
  .proj-title { font-size: .92rem; }
  .folder-front { font-size: .66rem; }
  .folder-min { display: none; }
  .proj-meta { flex-wrap: wrap; row-gap: 4px; }
  .proj-channel { display: none; }
  .proj-empty { grid-template-columns: 1fr; text-align: center; }
  .proj-empty p { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .proj { animation: none; }
  .folder-sheet, .folder-front, .proj-progress span { transition: none; }
  .folder-sheet.is-loading, .proj-progress.is-indeterminate span { animation: none; }
}

/* ---------- redes conectadas (referências: Kurage Dashboard da HorizonX e cards de integração do 21st.dev) ---------- */
.nets-page { position: relative; isolation: isolate; }
.k-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 10px;
  border-radius: 99px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  font: 500 .76rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #b9c4cf; letter-spacing: .01em; }
.k-dot { width: 7px; height: 7px; border-radius: 50%; background: #4a4f58; flex: none; }
.k-dot.is-on { background: var(--accent); box-shadow: 0 0 0 0 rgba(143, 224, 238, .5); animation: k-ping 2.4s ease-out infinite; }
@keyframes k-ping { 0% { box-shadow: 0 0 0 0 rgba(143, 224, 238, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(143, 224, 238, 0); } }
.nets-sub { margin: 8px 0 0; max-width: 56ch; }

/* o hub: Clipeye no centro, ligado às redes */
.hub { position: relative; height: 190px; margin: 4px 0 22px; border-radius: 18px; border: 1px solid var(--border);
  overflow: hidden;
  background: radial-gradient(60% 90% at 50% 0%, rgba(143, 224, 238, .08), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px, #0a0a0c; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-line { fill: none; stroke: #2a2a31; stroke-width: 1.5; stroke-dasharray: 3 6; }
.hub-line.is-on { stroke: rgba(143, 224, 238, .75); stroke-dasharray: 7 9; animation: hub-flow 1.1s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -16; } }
.hub-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 14px; }
.hub-core { width: 54px; height: 54px; border-radius: 16px; background: #0b0f12; border: 1px solid rgba(143, 224, 238, .45);
  box-shadow: 0 0 0 6px rgba(143, 224, 238, .08), 0 0 40px rgba(143, 224, 238, .3); }
.hub-core img { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(143, 224, 238, .5)); }
.hub-net { width: 44px; height: 44px; color: #6b707a; background: #131316; border: 1px solid #26262c;
  transition: color .3s, border-color .3s, box-shadow .3s; }
.hub-net.is-on { color: #fff; border-color: rgba(143, 224, 238, .45); box-shadow: 0 0 22px rgba(143, 224, 238, .18); }

/* cards */
.net-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.net-card { --brand: #8fe0ee; --mx: 50%; --my: -40%; position: relative; overflow: hidden; display: flex; flex-direction: column;
  gap: 16px; padding: 18px; border-radius: 18px; background: #0d0d0f; border: 1px solid var(--border);
  transition: border-color .25s, transform .25s; }
.net-card.nk-tiktok { --brand: #25f4ee; }
.net-card.nk-instagram { --brand: #e1306c; }
.net-card.nk-youtube { --brand: #ff3355; }
.net-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); transition: opacity .3s; }
.net-card.is-on::before { opacity: .8; }
.net-card-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.net-card:hover { border-color: #303037; }
.net-card:hover .net-card-shine { opacity: 1; }
.net-card > * { position: relative; }

.net-card-head { display: flex; align-items: center; gap: 12px; }
.net-logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; }
.nk-tiktok .net-logo { background: #000; color: #fff; border: 1px solid #2a2a2e; }
.nk-tiktok .net-logo .brand { filter: drop-shadow(-1.4px -1px 0 #25f4ee) drop-shadow(1.4px 1px 0 #fe2c55); }
.nk-instagram .net-logo { color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.nk-youtube .net-logo { color: #ff0033; background: #fff; }
.net-card-id { min-width: 0; flex: 1; }
.net-card-id h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 1.05rem; font-weight: 700; }
.net-handle { margin: 1px 0 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-state { flex: none; display: inline-flex; font-weight: 500; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px;
  border: 1px solid var(--border); font: 500 .75rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.net-state.is-on { color: var(--accent); border-color: rgba(143, 224, 238, .3); background: rgba(143, 224, 238, .06); }
.net-state.is-sim { color: var(--accent-2); border-color: rgba(180, 168, 238, .3); background: rgba(180, 168, 238, .06); }
.net-state.is-sim .k-dot { background: var(--accent-2); }

.net-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border); }
.net-stats div { min-width: 0; padding: 10px 12px; background: #111114; }
.net-stats dt { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-stats dd { margin: 2px 0 0; white-space: nowrap; font: 650 1rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text);
  font-variant-numeric: tabular-nums; }
.net-pitch { margin: 0; font-size: .88rem; color: #aab5c1; line-height: 1.5; }

.net-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.net-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: .75rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #6f7b89; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-connect { display: inline-flex; align-items: center; gap: 6px; }
.net-connect svg { transition: transform .15s; }
.net-connect:hover svg { transform: translateX(2px); }

.net-tech { margin: -2px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.net-tech summary { font-size: .8rem; }
.net-tech p { margin: 0 0 8px; }
.net-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 9px; background: #08080a;
  border: 1px solid var(--border); }
.net-copy code { flex: 1; min-width: 0; font-size: .75rem; overflow-wrap: anywhere; color: #b9c4cf; }
.net-copy-btn { flex: none; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: 500 .75rem var(--font); cursor: pointer; }
.net-copy-btn:hover { border-color: #34343a; }
.net-tech-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.nets-foot { margin: 20px 0 0; }

@media (max-width: 640px) {
  .hub { height: 150px; }
  .hub-core { width: 46px; height: 46px; }
  .hub-core img { width: 28px; height: 28px; }
  .hub-net { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-line.is-on, .k-dot.is-on { animation: none; }
}
.dash-legend li.is-unused { color: var(--muted); }
.dash-legend li.is-unused .sty-dot { opacity: .45; }
.dash-legend li.is-unused b { font-weight: 500; }

/* ---------- caixa de pergunta: modo de resposta e anexos ---------- */
.cmp-mode { position: relative; }
.cmp-pill[aria-expanded="true"] { background: rgba(255, 255, 255, .08); color: #e3edf5; }
.cmp-mode-ico { display: inline-flex; color: var(--accent); }
.cmp-menu { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: 264px; padding: 6px;
  border-radius: 14px; background: rgba(16, 16, 19, .96); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); transform-origin: 20% 100%; animation: cmp-pop .16s ease-out; }
@keyframes cmp-pop { from { opacity: 0; transform: translateY(4px) scale(.97); } }
.cmp-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px;
  background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cmp-menu-item:hover, .cmp-menu-item:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.cmp-menu-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); color: #9fb0c0; }
.cmp-menu-item[aria-checked="true"] .cmp-menu-ico { background: rgba(143, 224, 238, .12); color: var(--accent); }
.cmp-menu-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cmp-menu-txt strong { font-size: .86rem; font-weight: 650; }
.cmp-menu-txt small { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.cmp-menu-check { flex: none; display: inline-flex; color: var(--accent); opacity: 0; }
.cmp-menu-item[aria-checked="true"] .cmp-menu-check { opacity: 1; }

.cmp-attach.on { color: var(--accent); }
.composer.is-drop { border-color: rgba(143, 224, 238, .55); background: rgba(143, 224, 238, .05); }
.cmp-files { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-files[hidden], .cmp-err[hidden] { display: none; }
.cmp-file { position: relative; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 5px 30px 5px 5px;
  border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.cmp-file img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; display: block; }
.cmp-file-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px;
  font: 700 .75rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em;
  color: var(--accent); background: rgba(143, 224, 238, .1); }
.cmp-file-pdf .cmp-file-ico { color: #f0b8c8; background: rgba(240, 184, 200, .1); }
.cmp-file-txt { min-width: 0; display: grid; line-height: 1.25; }
.cmp-file-name { font-size: .8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-file-txt small { font-size: .75rem; color: var(--muted); }
.cmp-file-x { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 22px; height: 22px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none;
  color: #8e9cad; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.cmp-file-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cmp-err { margin: 0 0 10px; padding: 7px 10px; border-radius: 9px; font-size: .8rem; color: #ffd9e2;
  background: rgba(255, 80, 120, .1); border: 1px solid rgba(255, 120, 150, .22); }

/* anexos no balão da pergunta */
.msg-files { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.msg-file { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 9px;
  background: rgba(0, 0, 0, .25); font-size: .78rem; max-width: 220px; }
.msg-file span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-file .cmp-file-ico { width: 30px; height: 30px; }
.msg-file-img { padding: 0; background: none; }
.msg-file-img img { display: block; max-width: 180px; max-height: 140px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .cmp-menu { animation: none; } }

/* ===== Página do pedido: andamento (capa, porcentagem, etapas) ===== */
.run { position: relative; max-width: 780px; margin-top: 8px; padding: 22px; border-radius: 22px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(143,224,238,.07), transparent 55%),
              linear-gradient(180deg, #0e0f12, #09090b);
  border: 1px solid #1d1f24; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8);
  overflow: hidden; isolation: isolate; }
.run::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 85% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 70% at 85% 0%, #000, transparent 70%); }
.run-top { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: center; }

.run-media { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: radial-gradient(90% 90% at 30% 20%, rgba(143,224,238,.18), transparent 60%),
              radial-gradient(80% 80% at 90% 100%, rgba(180,168,238,.16), transparent 60%), #101116;
  border: 1px solid #23252b; }
.run-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); }
.run-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.65)); }
.run-media-logo { position: absolute; inset: 0; display: none; place-items: center; color: rgba(230,238,245,.55); }
.run-media.no-thumb .run-media-logo { display: grid; }
.run-scan { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(143,224,238,.22) 48%, rgba(255,255,255,.28) 50%, rgba(143,224,238,.22) 52%, transparent 70%);
  transform: translateX(-100%); animation: run-scan 2.6s cubic-bezier(.45,0,.25,1) infinite; }
.s-queued .run-scan { animation-duration: 4.5s; opacity: .5; }
@keyframes run-scan { to { transform: translateX(100%); } }
.run-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px;
  font: 600 .75rem/1.3 var(--font); color: #eef3f8; background: rgba(5,5,7,.6); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.run-src { left: 8px; bottom: 8px; }
.run-len { right: 8px; bottom: 8px; font-variant-numeric: tabular-nums; }

.run-main { min-width: 0; }
.run-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 .75rem/1 var(--font);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.run-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: run-ping 1.8s ease-out infinite; }
.s-queued .run-dot { background: var(--accent-2); animation: none; box-shadow: 0 0 10px rgba(180,168,238,.6); }
@keyframes run-ping { 0% { box-shadow: 0 0 0 0 rgba(143,224,238,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(143,224,238,0); } }
.run-title { font-size: 1.3rem; font-weight: 750; margin: 0; }
.run-pct { display: flex; align-items: baseline; gap: 2px; margin: 8px 0 10px; line-height: .9; }
.run-pct strong { font: 800 clamp(2.6rem, 6vw, 3.4rem)/.9 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: #effcff; text-shadow: 0 0 10px rgba(143,224,238,.45), 0 0 28px rgba(143,224,238,.2); }
.run-pct span { font: 700 1.2rem/1 var(--font); color: var(--accent); }
.s-queued .run-pct strong { color: #c9c9d6; text-shadow: none; }

.run-bar { position: relative; height: 10px; border-radius: 99px; background: #17181d; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); overflow: hidden; }
.run-bar span { position: relative; display: block; height: 100%; min-width: 10px; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, #5fb9cc, var(--accent) 70%, #d6f8ff); box-shadow: 0 0 14px rgba(143,224,238,.55);
  transition: width .8s cubic-bezier(.22,1,.36,1); }
.run-bar span::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px); background-size: 22.6px 100%;
  animation: run-stripes 1s linear infinite; }
@keyframes run-stripes { to { background-position: 22.6px 0; } }
.s-queued .run-bar span { background: linear-gradient(90deg, #5c5875, var(--accent-2)); box-shadow: none; }
.run-eta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.run-eta .ico { color: var(--accent); }
.run-eta-sep::before { content: "·"; margin-right: 6px; }

/* as 5 etapas, ligadas por uma linha que vai se enchendo */
.run-steps { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #1a1c21;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.run-step { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.run-step:not(:last-child)::before, .run-step:not(:last-child)::after { content: ""; position: absolute; top: 21px;
  left: calc(50% + 28px); right: calc(-50% + 28px); height: 2px; border-radius: 2px; background: #1f2127; }
.run-step:not(:last-child)::after { background: linear-gradient(90deg, var(--accent), #c9f4fb); box-shadow: 0 0 8px rgba(143,224,238,.5);
  transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.run-step.is-done:not(:last-child)::after { transform: scaleX(1); }
.run-step-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #5d6675; background: #111216; border: 1px solid #23252b; transition: color .3s, background .3s, border-color .3s, box-shadow .3s; }
.run-step-i, .run-step-ok { grid-area: 1 / 1; display: grid; transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.run-step-ok { opacity: 0; transform: scale(.5); }
.run-step.is-done .run-step-i { opacity: 0; transform: scale(.5); }
.run-step.is-done .run-step-ok { opacity: 1; transform: none; }
.run-step.is-done .run-step-ico { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(143,224,238,.35); }
.run-step.is-active .run-step-ico { color: var(--accent); background: #0c1a1e; border-color: transparent; box-shadow: 0 0 22px rgba(143,224,238,.25); }
/* anel que enche conforme a etapa anda */
.run-step.is-active .run-step-ico::before { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--sp, 0%), rgba(143,224,238,.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.run-step.is-active .run-step-ico::after { content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(143,224,238,.35); animation: run-halo 2s ease-out infinite; }
@keyframes run-halo { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.run-step-name { margin-top: 6px; font-size: .86rem; font-weight: 650; color: #6f7888; }
.run-step.is-active .run-step-name, .run-step.is-done .run-step-name { color: var(--text); }
.run-step-sub { font-size: .75rem; color: #535b68; font-variant-numeric: tabular-nums; }
.run-step.is-active .run-step-sub { color: var(--accent); }

.run-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.run-foot form { margin: 0; }
.run-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.run-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: .8rem;
  color: #c3ccd6; background: #121317; border: 1px solid #202228; }
.run-chips .ico { color: var(--accent); }
.run-cancel { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; cursor: pointer;
  font: 600 .84rem/1 var(--font); color: #b9c1cc; background: transparent; border: 1px solid #2a2c33;
  transition: color .2s, border-color .2s, background .2s; }
.run-cancel:hover { color: var(--error); border-color: rgba(240,184,200,.45); background: rgba(240,184,200,.06); }
.run-cancel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-note { margin: 14px 0 0; font-size: .8rem; color: #5f6876; }
.s-done .run-dot { animation: none; }
.s-done .run-scan { display: none; }

@media (max-width: 640px) {
  .run { padding: 16px; border-radius: 18px; }
  .run-top { grid-template-columns: 1fr; gap: 16px; }
  .run-media { aspect-ratio: 16 / 8; }
  .run-step-ico { width: 38px; height: 38px; }
  .run-step:not(:last-child)::before, .run-step:not(:last-child)::after { top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px); }
  .run-step-name { font-size: .75rem; letter-spacing: -.01em; }
  .run-steps { gap: 4px; }
  .run-step-sub { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .run-bar span::after, .run-dot, .run-step.is-active .run-step-ico::after { animation: none; }
  .run-scan { display: none; }
}

/* ---------- Publicação direta: animação de entrada (igual às outras abas) ----------
   Título sobe, o diagrama aparece, o Clipeye surge no centro, as linhas descem até as redes,
   os logos acendem e os cartões entram em cascata (--i = posição da rede). */
@keyframes nets-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes nets-lines { from { clip-path: inset(0 0 100% 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes nets-node { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } to { transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: no-preference) {
  .nets-page { --ease-out: cubic-bezier(.22, 1, .36, 1); }
  .nets-page .projects-head > div > * { animation: nets-up .55s var(--ease-out) both; }
  .nets-page .projects-head h1 { animation-delay: 60ms; }
  .nets-page .projects-head .nets-sub { animation-delay: 120ms; }
  .nets-page .hub { animation: dash-in .64s var(--ease-out) 140ms both; }
  .nets-page .hub-core { animation: nets-node .55s var(--ease-out) 320ms both; }
  .nets-page .hub-lines { animation: nets-lines .8s cubic-bezier(.65, 0, .35, 1) 480ms both; }
  .nets-page .hub-net { animation: nets-node .5s var(--ease-out) calc(1000ms + var(--i, 0) * 90ms) both; }
  .nets-page .net-card { animation: dash-in .64s var(--ease-out) calc(260ms + var(--i, 0) * 90ms) both; }
}

/* ---------- termos e privacidade ---------- */
.footer-links { float: right; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.legal { max-width: 760px; line-height: 1.65; }
.legal-nav { font-size: .9rem; color: var(--muted); }
.legal-nav a { color: var(--muted); }
.legal-nav a[aria-current] { color: var(--accent); }
.legal-date { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
@media (max-width: 640px) { .footer-links { float: none; display: block; margin-top: 8px; } }
.aq-legal { position: absolute; right: 16px; bottom: 10px; z-index: 3; font-size: .75rem; color: var(--muted); }
.aq-legal a { color: var(--muted); }
.aq-legal a:hover { color: var(--text); }

/* desempenho: números da conta inteira em cada rede */
.acc { margin-bottom: 8px; }
.acc-top { display: flex; align-items: center; gap: 10px; }
.acc-top .sec-h { margin-right: auto; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.acc-card { padding: 16px 18px; gap: 14px; }
.acc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #18181b; }
.acc-avatar-empty { display: grid; place-items: center; }
.acc-avatar-empty .net-dot { margin: 0; width: 12px; height: 12px; }
.acc-id { display: flex; flex-direction: column; min-width: 0; }
.acc-net { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; }
.acc-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
a.acc-name:hover { text-decoration: underline; }
.acc-kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
.acc-kpis div { border: 1px solid #1f1f22; border-radius: 10px; padding: 8px 9px; min-width: 0; }
.acc-kpis dt { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-kpis dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.acc-delta { font-size: .75rem; font-weight: 600; }
.acc-delta.up { color: var(--ok); }
.acc-delta.down { color: var(--error); }
.acc-msg { margin: 0; }
.acc-err { color: var(--error); }
.acc-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: #18181b; }
.acc-videos .post-title { max-width: 360px; }

/* ---------- Conta (referências: HorizonX e cartões do 21st.dev, no mesmo jeito de Redes conectadas) ---------- */
.ct { position: relative; isolation: isolate; max-width: 1000px; }
.ct-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.ct-avatar { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), #5cc3d7, var(--accent));
  box-shadow: 0 0 0 6px rgba(143, 224, 238, .06), 0 0 36px rgba(143, 224, 238, .22); }
.ct-avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #0b0d10;
  font: 800 1.7rem/1 var(--font); color: #eefcff; text-shadow: 0 0 10px rgba(143, 224, 238, .5); }
.ct-id { min-width: 0; }
.ct-id .k-pill { margin-bottom: 8px; }
.ct-id h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.ct-email { margin: 4px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  overflow-wrap: anywhere; }
.ct-chip { padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); font-size: .75rem; color: #b9c4cf; }

.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ct-card { --mx: 50%; --my: -40%; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-width: 0; padding: 20px; border-radius: 18px; background: #0d0d0f; border: 1px solid var(--border);
  color: inherit; transition: border-color .25s, transform .25s; }
.ct-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; opacity: .55;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.ct-card:hover { border-color: #303037; }
.ct-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(143, 224, 238, .1), transparent 70%); }
.ct-card:hover .ct-shine { opacity: 1; }
.ct-card > :not(.ct-shine) { position: relative; }
.ct-label { margin: 0; font: 500 .75rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; }
.ct-note { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.ct-note svg { flex: none; }

/* plano e tokens */
.ct-plan { grid-column: span 2;
  background: radial-gradient(120% 140% at 100% 0%, rgba(143, 224, 238, .07), transparent 55%), #0d0d0f; }
.ct-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ct-plan-name { margin: 4px 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; display: flex;
  align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ct-plan-name span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ct-plan .btn svg { margin-left: 2px; }
.ct-upgrade { box-shadow: 0 0 22px rgba(143, 224, 238, .25); }
.ct-tokens { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.ct-tok { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ct-tok-n { font: 700 clamp(2rem, 5vw, 2.8rem)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.03em;
  color: #eefcff; text-shadow: 0 0 8px rgba(143, 224, 238, .5), 0 0 22px rgba(143, 224, 238, .22);
  font-variant-numeric: tabular-nums; }
.ct-tok-u { color: var(--muted); font-size: .9rem; }
.ct-bar { height: 8px; border-radius: 99px; background: #18181c; overflow: hidden; }
.ct-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #5cc3d7, var(--accent)); box-shadow: 0 0 12px rgba(143, 224, 238, .45); }

/* resumo */
.ct-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 12px;
  overflow: hidden; background: var(--border); border: 1px solid var(--border); flex: 1; }
.ct-stats div { min-width: 0; padding: 12px; background: #111114; display: flex; flex-direction: column; justify-content: center; }
.ct-stats dt { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-stats dd { margin: 3px 0 0; font: 650 1.25rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; color: var(--text); }

/* atalhos */
.ct-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; text-decoration: none; }
.ct-link:hover { text-decoration: none; transform: translateY(-2px); }
.ct-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--accent);
  background: rgba(143, 224, 238, .07); border: 1px solid rgba(143, 224, 238, .18); }
.ct-link-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-link-t b { font-size: 1rem; }
.ct-link-t span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.ct-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted);
  border: 1px solid var(--border); transition: color .2s, border-color .2s, transform .2s; align-self: start; }
.ct-link:hover .ct-go { color: var(--accent); border-color: rgba(143, 224, 238, .4); transform: rotate(45deg); }
.ct-nets { grid-template-rows: auto auto; }
.ct-nets .ct-logos { grid-column: 2; grid-row: 2; display: flex; gap: 6px; }
.ct-nets .ct-go { grid-column: 3; grid-row: 1; }
.ct-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #5d626b;
  background: #131316; border: 1px solid #26262c; }
.ct-logo.is-on { color: #fff; border-color: rgba(143, 224, 238, .4); box-shadow: 0 0 14px rgba(143, 224, 238, .15); }
.ct-logo.nk-youtube.is-on { color: #ff3355; }
.ct-logo.nk-instagram.is-on { color: #e1306c; }

/* marca */
.ct-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: center; }
.ct-brand-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 8px; }
.ct-form label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); min-width: 0; }
.ct-file { grid-column: 1 / -1; }
.ct-file input[type=file] { padding: 8px; }
.ct-form .btn { justify-self: start; }
.ct-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ct-phone { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  border: 1px solid #2a2a30; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 5px #111114; }
.ct-phone-bg { position: absolute; inset: 0;
  background: radial-gradient(80% 50% at 30% 30%, rgba(143, 224, 238, .35), transparent 70%),
    radial-gradient(70% 50% at 80% 75%, rgba(180, 168, 238, .35), transparent 70%), linear-gradient(160deg, #1a2228, #0c0c10); }
.ct-phone-cap { position: absolute; left: 10px; right: 10px; bottom: 26%; text-align: center; font-weight: 900; font-size: .78rem;
  line-height: 1.2; color: #fff; text-shadow: 0 0 2px #000, 0 2px 0 #000; text-transform: uppercase; }
.ct-mark { position: absolute; display: flex; align-items: center; gap: 4px; max-width: 80%; padding: 3px 6px; border-radius: 6px;
  background: rgba(0, 0, 0, .45); font: 700 .75rem var(--font); color: #fff; }
.ct-mark img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.ct-mark img[hidden] { display: none; }
.ct-mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-mark.pos-tl { top: 10px; left: 10px; }
.ct-mark.pos-tr { top: 10px; right: 10px; }
.ct-mark.pos-bl { bottom: 10px; left: 10px; }
.ct-mark.pos-br { bottom: 10px; right: 10px; }
.ct-out { margin: 22px 0 0; }

@media (max-width: 860px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-plan { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-head { gap: 14px; }
  .ct-avatar { width: 58px; height: 58px; }
  .ct-brand { grid-template-columns: minmax(0, 1fr); }
  .ct-form { grid-template-columns: minmax(0, 1fr); }
}

/* entrada: o mesmo movimento das outras abas (o título sobe, os cartões entram em cascata, a barra enche) */
@keyframes ct-bar { from { width: 0; } }
@keyframes ct-avatar { from { opacity: 0; transform: scale(.6) rotate(-40deg); } 60% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .ct { --ease-out: cubic-bezier(.22, 1, .36, 1); }
  .ct .ct-avatar { animation: ct-avatar .6s var(--ease-out) both; }
  .ct .ct-id > * { animation: nets-up .55s var(--ease-out) both; }
  .ct .ct-id h1 { animation-delay: 60ms; }
  .ct .ct-id .ct-email { animation-delay: 120ms; }
  .ct .ct-card { animation: dash-in .64s var(--ease-out) calc(180ms + var(--i, 0) * 80ms) backwards; }
  .ct .ct-bar span { animation: ct-bar 1.1s cubic-bezier(.65, 0, .35, 1) 450ms both; }
  .ct .ct-logo { animation: nets-up .45s var(--ease-out) calc(600ms + var(--k, 0) * 70ms) both; }
  .ct .ct-out { animation: nets-up .5s var(--ease-out) 700ms both; }
}

/* página de erro */
.err-page { position: relative; isolation: isolate; text-align: center; padding-top: 12vh; }
.err-eye { width: 72px; height: 72px; filter: drop-shadow(0 0 12px rgba(143, 224, 238, .4)); }
.err-page h1 { margin: 14px 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.02em; }
.err-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .err-page > *:not(.projects-glow) { animation: nets-up .55s cubic-bezier(.22, 1, .36, 1) both; }
  .err-page h1 { animation-delay: 60ms; } .err-page .muted { animation-delay: 120ms; } .err-actions { animation-delay: 180ms; }
}

/* clipes prontos dentro do cartão do chat (a conversa não troca de página) */
.jc-clips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.jc-clip { min-width: 0; display: flex; flex-direction: column; gap: 6px; animation: aparece .45s ease-out both; }
.jc-clip:nth-child(2) { animation-delay: 70ms; } .jc-clip:nth-child(3) { animation-delay: 140ms; }
.jc-clip:nth-child(n+4) { animation-delay: 210ms; }
.jc-clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000;
  border: 1px solid rgba(255, 255, 255, .1); }
.jc-clip video.fmt-16-9 { aspect-ratio: 16 / 9; }
.jc-clip video.fmt-1-1 { aspect-ratio: 1; }
.jc-clip-t { font-weight: 600; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-clip-m { color: var(--muted); font-size: .78rem; }
.jc-clip-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.jc-clip-a .btn { padding-inline: 10px; }
.aquario.zoom .aq-legal { opacity: 0; pointer-events: none; transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .jc-clip { animation: none; } }

/* ---------- uso e acessibilidade no site todo (regras da ui-ux-pro-max) ---------- */
/* teclado: atalho para pular o menu e ir direto ao conteúdo */
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 1000; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: top .15s ease-out; }
.skip-link:focus { top: 12px; text-decoration: none; }
main:focus { outline: none; }
/* toque: sem o atraso de 300 ms nem o flash azul do navegador */
a, button, summary, label, select, input, textarea, [role="button"] { touch-action: manipulation; }
html { -webkit-tap-highlight-color: transparent; }
/* alvos pequenos ganham área (mínimo de 24px no mouse) */
.back, .dash-link, a.small { padding-block: 3px; }
details > summary { padding-block: 3px; }
.footer-links a, .aq-legal a { display: inline-block; padding-block: 3px; }
/* botão enviando: some o clique duplo e aparece o giro */
.btn.is-busy, button.is-busy { position: relative; cursor: progress; opacity: .75; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: ux-spin .7s linear infinite; }
@keyframes ux-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation-duration: 2s; } }
/* aparelhos de toque: tudo que se toca com pelo menos 44px */
@media (pointer: coarse) {
  .btn, .btn-sm, .chip, .pf-pill, .tokens-pill,
  select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { min-height: 44px; }
  .cmp-icon, .aq-send, .cmp-pill, .cmp-saldo, .link-btn { position: relative; }
  .cmp-icon::after, .aq-send::after, .cmp-pill::after, .cmp-saldo::after, .link-btn::after,
  .auth-eye::after { content: ""; position: absolute; inset: -7px; }
  .rail-item, .rail-logo { min-width: 44px; min-height: 44px; }
  details > summary { padding-block: 12px; }
  .back, .dash-link, .link-btn { padding-block: 10px; }
  .footer-links a, .aq-legal a { padding-block: 12px; }
}

/* ---------- aba selecionada na barra: o ícone se desenha, dá um pulo e de tempos em tempos faz o gesto dele ---------- */
@keyframes rail-bar { from { transform: scaleY(0); opacity: 0; } }
@keyframes rail-bar-x { from { transform: scaleX(0); opacity: 0; } }
@keyframes rail-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.15); } 80% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes rail-draw { to { stroke-dashoffset: 0; } }
@keyframes rail-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px #26262a, 0 0 0 0 rgba(143, 224, 238, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(143, 224, 238, .32), 0 0 18px -2px rgba(143, 224, 238, .22); }
}
/* gestos (só no começo de cada ciclo; o resto do tempo o ícone fica parado) */
@keyframes ri-chat { 0%, 14%, 100% { transform: none; } 4% { transform: rotate(-10deg) scale(1.06); } 8% { transform: rotate(7deg); } 11% { transform: rotate(-3deg); } }
@keyframes ri-bookmark { 0%, 14%, 100% { transform: none; } 5% { transform: translateY(-3px); } 9% { transform: translateY(1px) scaleY(.94); } }
@keyframes ri-chart { 0%, 16%, 100% { transform: none; } 6% { transform: scaleY(.7); } 11% { transform: scaleY(1.08); } }
@keyframes ri-share { 0%, 16%, 100% { transform: none; } 8% { transform: rotate(120deg) scale(.92); } }
@keyframes ri-gem { 0%, 16%, 100% { transform: none; filter: none; } 6% { transform: rotate(-12deg) scale(1.1); filter: drop-shadow(0 0 4px rgba(143, 224, 238, .8)); } 11% { transform: rotate(6deg); } }
@keyframes ri-avatar { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 224, 238, .5); } 18% { box-shadow: 0 0 0 6px rgba(143, 224, 238, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .rail-item.active { animation: rail-glow 3.6s ease-in-out 1.2s infinite; }
  .rail-item.active::before { animation: rail-bar .5s cubic-bezier(.22, 1, .36, 1) .05s both; }
  .rail-item.active svg { transform-origin: 50% 55%;
    animation: rail-pop .6s cubic-bezier(.34, 1.4, .64, 1) both, var(--ri-gesture, none) 5s ease-in-out 1.6s infinite; }
  .rail-item.active svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: rail-draw .8s cubic-bezier(.65, 0, .35, 1) .12s forwards; }
  .ri-chat { --ri-gesture: ri-chat; }
  .ri-bookmark { --ri-gesture: ri-bookmark; }
  .ri-chart { --ri-gesture: ri-chart; }
  .ri-chart.active svg { transform-origin: 50% 85%; }
  .ri-share { --ri-gesture: ri-share; }
  .ri-gem { --ri-gesture: ri-gem; }
  .rail-conta.active .rail-avatar { animation: rail-pop .6s cubic-bezier(.34, 1.4, .64, 1) both, ri-avatar 3.6s ease-out 1.2s infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
  .rail-item.active::before { animation-name: rail-bar-x; }
}

/* página inicial: os links de Termos/Privacidade ficam embaixo da caixa do chat, sem encostar nela.
   Em tela estreita (ou de toque, com links mais altos) a caixa sobe um pouco para abrir espaço. */
@media (max-width: 1100px), (pointer: coarse) {
  .aquario[data-olho] .aq-bottom { bottom: 40px; }
  .aq-legal { bottom: 8px; }
  .aq-legal a { padding-block: 4px; }
}

/* Planos: assinatura cancelada que ainda vale até o fim do mês pago */
.sub-ended { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* prazo dos vídeos (limpeza automática) */
.keep-note { margin: 0 0 16px; }
.keep-note a { color: inherit; text-decoration: underline; }
.clip-gone { display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 16; border-radius: 12px;
  border: 1px dashed var(--border); background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.clip-gone.fmt-1-1 { aspect-ratio: 1; }
.clip-gone.fmt-4-5 { aspect-ratio: 4 / 5; }
.clip-gone.fmt-16-9 { aspect-ratio: 16 / 9; }
.proj-left { flex: none; font-size: .74rem; color: #f5c77a; }
.proj-left.is-gone { color: var(--muted); }
.keep-note.is-soon { border-color: rgba(245, 199, 122, .5); background: rgba(245, 199, 122, .08); }
