/* WeYouAds — design system. Identidade institucional: azul Facebook + navy. */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #1c1e21;
  --ink-soft: #3a3b3c;
  --muted: #65676b;
  --line: #dadde1;
  --line-strong: #ccd0d5;

  --blue: #1877f2;
  --blue-600: #166fe5;
  --blue-700: #1456b8;
  --blue-400: #4293fb;
  --blue-tint: #e7f0ff;

  --mint: #15924b;
  --mint-tint: #e3f5ea;
  --amber: #b7791f;
  --amber-tint: #fbf0d6;
  --rose: #d23b3b;
  --rose-tint: #fbe3e3;

  --side: #0f2c5c;
  --side-soft: #173d77;
  --side-ink: #b7c6e0;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 28, 46, 0.06), 0 6px 22px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 28, 46, 0.18);
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__brandside {
  position: relative; overflow: hidden; color: #fff; padding: 56px 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 0% 0%, #133b78 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, #1763c4 0%, transparent 60%),
    linear-gradient(160deg, #0c2550, #133b78);
}
.auth__brandside::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(66,147,251,.5), transparent 65%); filter: blur(8px);
}
.auth__brandside h1 { font-family: var(--display); font-size: 40px; line-height: 1.08; letter-spacing: -.02em; max-width: 13ch; margin: 0; }
.auth__brandside p { color: #c3d3ee; max-width: 38ch; line-height: 1.55; font-size: 15.5px; }
.auth__panel { display: grid; place-items: center; padding: 32px; }
.auth__card { width: 100%; max-width: 392px; animation: fadeUp .5s ease both; }
.auth__card h2 { font-family: var(--display); font-size: 27px; letter-spacing: -.01em; margin: 0 0 4px; }
.auth__card .sub { color: var(--muted); margin: 0 0 22px; }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: .18em; font-size: 11.5px; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Brand wordmark ---------- */
.wm { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 1px; }
.wm .dot { color: var(--blue-400); }
.wm--lg { font-size: 26px; }

/* ---------- App layout ---------- */
.layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: var(--side); color: var(--side-ink); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.side__brand { color: #fff; font-size: 21px; padding: 6px 10px 18px; display: flex; align-items: center; justify-content: space-between; }
.side__brand .dot { color: var(--blue-400); }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
/* rola a nav internamente sem barra chamativa no fundo escuro */
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--side-soft); border-radius: 3px; }
.nav { scrollbar-width: thin; scrollbar-color: var(--side-soft) transparent; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: var(--side-ink); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s;
}
.nav a i { width: 20px; font-size: 16px; text-align: center; opacity: .85; }
.nav a:hover { background: var(--side-soft); color: #fff; }
.nav a.active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(24,119,242,.4); }
.nav a.active i { opacity: 1; }

/* ---- grupos colapsáveis ---- */
.nav__grpbtn {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left;
  color: var(--side-ink); font-weight: 600; font-size: 14.5px; font-family: inherit;
  transition: background .15s, color .15s;
}
.nav__grpbtn:hover { background: var(--side-soft); color: #fff; }
.nav__grpbtn > i:first-child { width: 20px; font-size: 16px; text-align: center; opacity: .85; }
.nav__chev {
  margin-left: auto; font-size: 11px; opacity: .65;
  transform: rotate(-90deg); transition: transform .32s cubic-bezier(.33, 1, .68, 1);
}
.nav__grp.open > .nav__grpbtn .nav__chev { transform: rotate(0deg); }
/* animação de altura sem JS: 0fr -> 1fr */
.nav__sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.33, 1, .68, 1);
}
.nav__grp.open > .nav__sub { grid-template-rows: 1fr; }
.nav__subin {
  overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 3px;
  margin-left: 21px; padding-left: 9px; border-left: 1px solid var(--side-soft);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .26s ease .05s, transform .32s cubic-bezier(.33, 1, .68, 1);
}
.nav__grp.open > .nav__sub .nav__subin { opacity: 1; transform: none; }
.nav a.nav__child { font-weight: 500; font-size: 14px; padding: 9px 12px; }
.nav a.nav__child > i { display: none; } /* expandido: filho é texto puro (ícone só no trilho) */
.nav__div { height: 1px; background: var(--side-soft); margin: 10px 10px; flex: none; }
.nav__badge {
  margin-left: auto; background: var(--blue); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 2px 7px; min-width: 21px; text-align: center; line-height: 1.4;
}
.nav a.active .nav__badge { background: rgba(255, 255, 255, .25); }
@media (prefers-reduced-motion: reduce) {
  .nav__sub, .nav__subin, .nav__chev { transition: none; }
}
.side__foot { margin-top: auto; border-top: 1px solid var(--side-soft); padding-top: 12px; font-size: 12.5px; }
.side__foot a { color: var(--side-ink); display: block; padding: 4px 10px; }
.side__logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; margin: 4px 0 6px; border-radius: 9px; background: transparent; border: 0; color: var(--side-ink); font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.side__logout:hover { background: var(--side-soft); color: #fff; }
.side__logout i { width: 20px; font-size: 16px; text-align: center; }
.side__user { padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--blue-400)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 34px 8px; }
.topbar h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 0; }
.topbar .ws { color: var(--muted); font-size: 13.5px; }
.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* hamburger + drawer (mobile) — ocultos no desktop */
.hamburger, .backdrop, .side__close { display: none; }
.hamburger {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; flex: none;
}
.side__close { background: transparent; border: 0; color: var(--side-ink); font-size: 22px; cursor: pointer; padding: 0 2px; line-height: 1; }
.side__collapse { display: none; background: transparent; border: 0; color: var(--side-ink); font-size: 15px; cursor: pointer; padding: 5px; border-radius: 8px; line-height: 1; }
.side__collapse:hover { background: var(--side-soft); color: #fff; }

/* Sidebar retrátil (só-ícones) — apenas no desktop; no mobile vale o drawer. */
@media (min-width: 921px) {
  .side__collapse { display: inline-grid; place-items: center; }
  .layout.side-collapsed { grid-template-columns: 76px 1fr; }
  .layout.side-collapsed .side { padding: 22px 12px; }
  .layout.side-collapsed .side__brand { justify-content: center; padding: 6px 0 18px; }
  .layout.side-collapsed .side__brandtext { display: none; }
  .layout.side-collapsed .side__collapse i { transform: rotate(180deg); }
  .layout.side-collapsed .nav a { justify-content: center; padding: 11px 0; gap: 0; }
  .layout.side-collapsed .nav__label { display: none; }
  /* trilho: grupos achatam — cabeçalho some, filhos viram ícones (tooltip = title) */
  .layout.side-collapsed .nav__grpbtn { display: none; }
  .layout.side-collapsed .nav__sub { grid-template-rows: 1fr; }
  .layout.side-collapsed .nav__subin { margin: 0; padding: 0; border: 0; opacity: 1; transform: none; }
  .layout.side-collapsed .nav a.nav__child > i { display: block; }
  .layout.side-collapsed .nav__badge { display: none; }
  .layout.side-collapsed .side__user { justify-content: center; padding: 8px 0; }
  .layout.side-collapsed .side__user > div:not(.avatar) { display: none; }
  .layout.side-collapsed .side__foot a { display: none; }
  .layout.side-collapsed .side__logout span { display: none; }
  .layout.side-collapsed .side__logout { justify-content: center; }
}
/* selo "ao vivo" (número atual, sem defasagem) */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-left: 3px; vertical-align: middle; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(21, 146, 75, .5); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(21, 146, 75, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- gráficos (SVG puro) ---------- */
.cht { width: 100%; height: auto; display: block; outline: none; }
.cht:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.cht__grid { stroke: var(--line); stroke-width: 1; }
.cht__tick { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.cht__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cht__cross { stroke: var(--line-strong); stroke-width: 1; }
.cht-tip {
  position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 8px 11px; font-size: 12.5px;
  pointer-events: none; min-width: 116px;
}
.cht-tip__t { font-weight: 700; margin-bottom: 5px; }
.cht-tip__r { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.cht-tip__r b { font-variant-numeric: tabular-nums; }
.cht-tip__k { width: 12px; height: 2.5px; border-radius: 2px; flex: none; }
.cht-tip__n { color: var(--muted); }
.ckey {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px;
  font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit;
  transition: background .15s, opacity .15s;
}
.ckey:hover { background: var(--surface-2); }
.ckey.off { opacity: .55; }
.ckey.off span:not(.ckey__s), .ckey.off b { text-decoration: line-through; }
.ckey--static { cursor: default; }
.ckey--static:hover { background: var(--surface); }
.ckey__s { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.ckey b { font-variant-numeric: tabular-nums; }
.hm { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 3px; align-items: center; }
.hm__lab { font-size: 11.5px; color: var(--muted); }
.hm__c { aspect-ratio: 1.6; border-radius: 4px; }
.hm__c.on, .hm__c:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.hm__hours { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 3px; margin-top: 4px; }
.hm__hours span { font-size: 10.5px; color: var(--muted); text-align: center; }
.hm__hours span:first-child { text-align: left; }
.hm__legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; font-size: 11px; }
.hm__legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.hm__legend .muted { margin: 0 3px; }

/* análises de engajamento */
.mchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-right: 10px; white-space: nowrap; }
.mchip i { opacity: .7; }
.rank { display: inline-block; background: var(--blue); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.ti { text-align: right; flex: none; padding-left: 8px; }
.ti__n { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.ti__l { font-size: 11px; color: var(--muted); }
.content { padding: 14px 34px 56px; animation: fadeUp .4s ease both; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: 1.4fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.card h3 { font-family: var(--display); font-size: 16px; margin: 0 0 14px; letter-spacing: -.01em; }
.kpi { animation: pop .35s ease both; }
.kpi .n { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 7px; }
.kpi .accent { color: var(--blue); }
/* KPI com ícone tonalizado (Painel) — modificador p/ não afetar os KPIs antigos */
.kpi--ic { display: flex; align-items: center; gap: 14px; }
.kpi__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; flex: none; }
.kpi--blue .kpi__ic { background: #E7F0FF; color: var(--blue); }
.kpi--mint .kpi__ic { background: #E4F4EA; color: #0F7A3D; }
.kpi--amber .kpi__ic { background: #FBF1DC; color: #9A6700; }
.kpi--ink .kpi__ic { background: #EEF1F5; color: #5B6470; }
.kpi--blue .n { color: var(--blue); }
/* Conta de destino do post (@handle) */
.acct { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 2.5px 9px; white-space: nowrap; }
.acct i { font-size: 11px; opacity: .75; }
/* selo de influenciador digital (IA) */
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--violet); background: var(--violet-tint, #efeaff); border-radius: 999px; padding: 1.5px 8px; vertical-align: middle; margin-left: 4px; }
.vbadge i { font-size: 9.5px; }

/* ---- Vitrine: hero do influenciador digital (vídeos de exemplo) ---- */
.heroia { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(118deg, #221a49 0%, #45278a 52%, #6c3fd1 100%); color: #fff; border: 0; }
.heroia__txt { flex: 1 1 340px; min-width: 260px; }
.heroia__kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; display: flex; align-items: center; gap: 6px; }
.heroia h2 { font-family: var(--display); font-size: 25px; line-height: 1.15; margin: 8px 0; color: #fff; }
.heroia p { font-size: 13.5px; line-height: 1.5; opacity: .92; max-width: 560px; margin: 0; }
.heroia p b { color: #fff; }
.heroia__steps { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; font-weight: 600; }
.heroia__steps b { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.18); margin-right: 6px; font-size: 11px; }
.heroia__demos { display: flex; gap: 10px; }
.hgdemo { position: relative; width: 112px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.35); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.hgdemo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgdemo span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,.8); }

/* ---- Vitrine: cabeçalho de seção + card de avatar (mídia) ---- */
.mksec { display: flex; align-items: center; gap: 8px; margin: 20px 2px 10px; font-size: 15px; }
.mksec i { color: var(--violet); }
.mksec__n { background: var(--surface-2, #eef1f5); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mcard__media { position: relative; aspect-ratio: 4 / 5; background: #e9edf3; overflow: hidden; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s; }
.mcard.playing .mcard__media video { opacity: 1; }
.mcard__badge { position: absolute; top: 8px; left: 8px; margin: 0; }
.mcard__play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; display: grid; place-items: center; font-size: 11px; transition: opacity .18s; }
.mcard.playing .mcard__play { opacity: 0; }
.mcard__body { padding: 10px 12px 12px; }
.mcard__name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .chip { font-size: 11px; padding: 2px 8px; }

/* ---- Modal do avatar: vídeo de amostra como banner ---- */
.hgbanner { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 12px; background: #000; }

/* ---- Meus influenciadores IA (persona exclusiva da marca) ---- */
.mcard--mine { border: 1.5px solid var(--violet, #7c5cff); box-shadow: 0 6px 22px rgba(124, 92, 255, .12); }
.mcard--mine .mcard__badge { background: var(--violet, #7c5cff); color: #fff; }
/* faixa de vídeos gerados no card da persona */
.pvid { position: relative; width: 46px; height: 62px; border-radius: 8px; overflow: hidden;
  background: #10131a; display: grid; place-items: center; color: #9aa3b2; cursor: pointer; }
.pvid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvid__play { position: absolute; inset: auto; font-size: 11px; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.9); pointer-events: none; }

/* ---- Estúdio de IA (grade visual de ações) ---- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px; border: 1px solid var(--line, #e6e8ee); border-radius: 14px; background: var(--surface, #fff);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.ai-tile:hover { border-color: var(--violet, #7c5cff); box-shadow: 0 8px 24px rgba(124,92,255,.14); transform: translateY(-1px); }
.ai-tile__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 4px;
  background: linear-gradient(135deg, #7c5cff, #b39bff); color: #fff; font-size: 18px; flex: none; }
.ai-tile__t { font-weight: 700; font-size: 14.5px; }
.ai-tile__h { font-size: 11.5px; color: var(--muted, #7a828e); line-height: 1.3; }
.ai-back { background: none; border: 0; color: var(--muted, #7a828e); cursor: pointer; font-size: 12.5px; padding: 2px 0; }
.ai-back:hover { color: var(--ink, #1a1d24); }
.ai-fmts { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-fmt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line, #e6e8ee); background: var(--surface, #fff); font-size: 13px; font-weight: 600; color: var(--ink-soft, #4a515c); }
.ai-fmt.on { border-color: var(--violet, #7c5cff); background: var(--violet-tint, #efeaff); color: var(--violet, #7c5cff); }
.ai-loading { display: flex; align-items: center; gap: 8px; padding: 22px; justify-content: center; color: var(--muted, #7a828e); font-size: 13px; }
.ai-out { width: 100%; border-radius: 12px; margin-top: 10px; display: block; background: #000; }

/* ---- Gerador de clipes com estilo (grade de estilos) ---- */
.ss-card { border: 1.5px solid var(--violet, #7c5cff); }
.ss-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.ss-style { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #10131a; aspect-ratio: 3/4; padding: 0; display: block; }
.ss-style img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-style__ph { display: grid; place-items: center; width: 100%; height: 100%; color: #9aa3b2; font-size: 18px; }
.ss-style__n { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 5px 4px; font-size: 10px; font-weight: 700;
  color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); line-height: 1.1; z-index: 2; }
.ss-style.on { border-color: var(--violet, #7c5cff); box-shadow: 0 0 0 2px var(--violet-tint, #efeaff); }
.ss-style.on::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; z-index: 3;
  top: 5px; right: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--violet, #7c5cff); color: #fff;
  display: grid; place-items: center; font-size: 9px; }

/* ---- Seletor de vídeo do Drive (botão + modal galeria) ---- */
.vidpick-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 1px dashed var(--line, #e6e8ee); border-radius: 12px; background: var(--surface, #fff); color: var(--ink-soft, #4a515c);
  padding: 12px 14px; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s; }
.vidpick-btn:hover { border-color: var(--violet, #7c5cff); }
.vidpick-btn--has { border-style: solid; padding: 8px; }
.vidpick-btn img, .vidpick-btn__ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #10131a; display: grid; place-items: center; color: #9aa3b2; }
.vidpick-btn__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.vidpick-btn__meta b { font-size: 13.5px; color: var(--ink, #1a1d24); }
.vidpick-btn__meta span { font-size: 11.5px; color: var(--muted, #7a828e); font-weight: 500; }
.vidpick-btn__act { margin-left: auto; font-size: 12px; color: var(--violet, #7c5cff); white-space: nowrap; }
.vidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; }
.vidcard { position: relative; aspect-ratio: 9/13; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #10131a; padding: 0; }
.vidcard:hover { border-color: var(--violet, #7c5cff); }
.vidcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vidcard__ph { display: grid; place-items: center; width: 100%; height: 100%; color: #9aa3b2; font-size: 22px; }
.vidcard__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 12px; font-weight: 700;
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.vidcard__meta span { font-size: 10px; font-weight: 500; opacity: .85; }

/* ---- Preditor de viralização ---- */
.viral-card { border: 1.5px solid #ffd0cf; }
.vr-loading { display: flex; align-items: center; gap: 14px; padding: 14px 4px; }
.vr-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.vr-ring { --p: 0; --c: #16a34a; width: 108px; height: 108px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line, #eef1f5) 0); display: grid; place-items: center; }
.vr-ring__in { width: 84px; height: 84px; border-radius: 50%; background: var(--surface, #fff); display: grid; place-items: center; text-align: center; }
.vr-ring__in b { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink, #1a1d24); }
.vr-ring__in span { font-size: 10.5px; color: var(--muted, #7a828e); }
.vr-head__t { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--muted, #7a828e); }
.vr-head__v { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.15; margin-top: 3px; }
.vr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.vr-metric__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink-soft, #4a515c); }
.vr-metric__top b { font-size: 16px; font-family: var(--display); }
.vr-bar { height: 7px; border-radius: 4px; background: var(--line, #eef1f5); overflow: hidden; margin-top: 4px; }
.vr-bar > span { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.vr-regions { margin-top: 16px; border-top: 1px solid var(--line, #eef1f5); padding-top: 12px; }
.vr-regions__t { font-size: 12.5px; font-weight: 700; color: var(--ink-soft, #4a515c); margin-bottom: 8px; }
.vr-reg { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12.5px; }
.vr-reg > i { width: 16px; text-align: center; color: var(--violet, #7c5cff); }
.vr-reg__l { width: 138px; flex: none; color: var(--ink-soft, #4a515c); }
.vr-disc { font-size: 10.5px; color: var(--muted, #9aa1ad); margin-top: 14px; line-height: 1.4; }
@media (max-width: 560px) { .vr-grid { grid-template-columns: 1fr; } .vr-reg__l { width: 96px; } }

/* ---- Google Ads: painel leigo + campanhas ---- */
.ga-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ga-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 7px; cursor: pointer; }
.ga-seg button.on { background: var(--blue); color: #fff; }
.ga-verdict { display: grid; grid-template-columns: 1.5fr 1fr; padding: 0; overflow: hidden; }
.ga-verdict__l { padding: 18px 20px; }
.ga-verdict__r { background: linear-gradient(160deg, var(--blue-tint), transparent); border-left: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.ga-verdict__t { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.2; margin: 10px 0 6px; }
.ga-verdict__k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ga-verdict__big { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ga-good { color: var(--mint); }
.ga-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.ga-pill--ok { background: var(--mint-tint); color: var(--mint); }
.ga-pill--warn { background: var(--amber-tint); color: var(--amber); }
.ga-pill--bad { background: var(--rose-tint); color: var(--rose); }
.ga-kpi { padding: 14px 15px; }
.ga-kpi__lab { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.ga-kpi__val { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 5px 0 2px; font-variant-numeric: tabular-nums; }
.ga-kpi--good .ga-kpi__val { color: var(--mint); }
.ga-kpi--blue .ga-kpi__val { color: var(--blue); }
.ga-kpi__exp { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ga-kpi__term { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); }
.ga-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; }
.ga-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.ga-ins { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.ga-ins:first-of-type { border-top: 0; }
.ga-ins__i { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 14px; background: var(--surface-2); }
.ga-ins--win .ga-ins__i { background: var(--mint-tint); }
.ga-ins--bad .ga-ins__i { background: var(--rose-tint); }
.ga-ins--warn .ga-ins__i { background: var(--amber-tint); }
.ga-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ga-table th, .ga-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ga-table th { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.ga-table .num, .ga-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ga-table tr:last-child td { border-bottom: none; }
details.ga-tech > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
details.ga-tech > summary::-webkit-details-marker { display: none; }
details.ga-tech > summary i { transition: transform .2s; color: var(--muted); }
details.ga-tech[open] > summary i { transform: rotate(180deg); }
.ga-gloss { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 11.5px; color: var(--muted); }
.ga-gloss b { color: var(--ink-soft); }
.ga-rec { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ga-rec:first-child { border-top: 0; }
.ga-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ga-step { background: var(--surface-2); border-radius: 11px; padding: 11px 12px; font-size: 12.5px; }
.ga-step b { display: block; margin: 7px 0 2px; }
.ga-step span:last-child { color: var(--muted); font-size: 11.5px; }
.ga-step__n { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.ga-tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ga-tipo { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 13px; text-align: left; cursor: pointer; font: inherit; color: var(--ink-soft); }
.ga-tipo i { color: var(--blue); font-size: 16px; }
.ga-tipo b { display: block; margin: 6px 0 3px; color: var(--ink); }
.ga-tipo span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ga-tipo.on { border-color: var(--blue); background: var(--blue-tint); }
.vidcard.on { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (max-width: 700px) { .ga-verdict { grid-template-columns: 1fr; } .ga-verdict__r { border-left: 0; border-top: 1px solid var(--line); } .ga-tipos, .ga-steps, .ga-gloss { grid-template-columns: 1fr; } }
/* Contas conectadas: cada rede é uma seção full-width; contas num grid responsivo. */
.net-sec { margin-bottom: 26px; }
.net-sec__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-items: start; }

/* Compor: contas agrupadas por rede + atalho "Todas" (escala multi-conta). */
.acct-net { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip--all { border-style: dashed; font-weight: 700; }
.chip--all.on { border-style: solid; }

/* Relatório imprimível: só o bloco do relatório sai no papel. */
.ga-print { display: none; }
@media print {
  body.ga-printing .layout, body.ga-printing #toast, body.ga-printing .modal-bg { display: none !important; }
  body.ga-printing .ga-print { display: block; padding: 8mm; font-size: 12px; color: #111; }
  .ga-print h1 { font-size: 20px; margin: 0 0 2px; }
  .ga-print h2 { font-size: 14px; margin: 14px 0 6px; }
  .ga-print table { width: 100%; border-collapse: collapse; margin: 8px 0; }
  .ga-print th, .ga-print td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; }
  .ga-print .num { text-align: right; }
}

/* ---------- Plano & cobrança ---------- */
.plan-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan-card--current { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.plan-badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.plan-price { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-price span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.plan-lim { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-lim li { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.plan-lim li i { width: 16px; color: var(--blue); opacity: .8; }
.gw-opt { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.gw-opt:hover, .gw-opt--sel { border-color: var(--blue); background: var(--blue-tint); }
.gw-opt b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.gw-opt .muted { font-size: 12.5px; }
.sub-banner { display: block; margin: 0 34px 0; padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; border-radius: 10px; }
.sub-banner--warn { background: var(--amber-tint); color: #8a5a00; border: 1px solid #eedfb0; }
.sub-banner--danger { background: var(--rose-tint); color: var(--rose); border: 1px solid #f3c9c9; }
.sub-banner i { margin-right: 6px; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-700); }
.net { display: inline-flex; align-items: center; gap: 6px; }
.net i { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(24,119,242,.3); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 8px 22px rgba(24,119,242,.4); }
.btn--ghost { background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--danger { background: var(--rose); color: #fff; }
.btn--mint { background: var(--mint); color: #fff; }
.btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink-soft); }
.input, .textarea, .select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.input--sm { padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.check input { margin-top: 2px; }

/* ---------- Uploader ---------- */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--surface-2); }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-700); }
.drop i { font-size: 18px; margin-right: 6px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* ---------- Gerador de imagem por IA (Compor) ---------- */
.aigen__seg { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.aigen__opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.aigen__opt.on { background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow); }
.aigen__preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.aigen__img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.aigen__refs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aigen__ref { position: relative; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s; }
.aigen__ref.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-tint); }
.aigen__ref img { width: 100%; height: 100%; object-fit: cover; }
.aigen__ref.on::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 3px; bottom: 2px; font-size: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.aigen__slide { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.aigen__role { flex: none; min-width: 76px; font-size: 11.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-tint); border-radius: 7px; padding: 5px 8px; text-align: center; }
.aigen__slide .input { flex: 1; }
.aigen__tpl { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface-2); }
.aigen__tpl img { width: 46px; height: 58px; object-fit: cover; border-radius: 7px; flex: none; }
.aigen__tplinfo { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aigen__tplinfo b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Galeria de modelos (picker) ---------- */
.tpl__cats { display: flex; gap: 6px; flex-wrap: wrap; max-height: 88px; overflow-y: auto; margin-bottom: 10px; }
.tpl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; }
.tpl__card { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; padding: 0; text-align: left; transition: border-color .15s, box-shadow .15s; }
.tpl__card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.tpl__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--surface-2); }
.tpl__name { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl__ref { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 6px; background: rgba(24,119,242,.92); color: #fff; font-size: 10px; display: grid; place-items: center; }

/* ---------- Impulsionar (modal de anúncio) ---------- */
.promo__sec { font-size: 13px; font-weight: 700; color: var(--ink); margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.promo__sec i { color: var(--blue); margin-right: 6px; }
.promo__money { font-size: 12.5px; color: var(--ink-soft); background: var(--blue-tint); border-radius: 10px; padding: 9px 12px; margin: 2px 0 10px; line-height: 1.45; }
.promo__money i { color: var(--blue); }
.promo__money a { font-weight: 600; }

/* Simulador de custos (alcance <-> orçamento) */
.sim { border: 1px solid var(--line); background: var(--blue-tint); border-radius: 12px; padding: 11px 12px; margin: 4px 0 10px; }
.sim__head { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.sim__head i { color: var(--blue); }
.sim__head .muted { font-weight: 400; }
.sim__out:empty { display: none; }
.sim__grid { display: flex; gap: 10px; flex-wrap: wrap; }
.sim__big { flex: 1; min-width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; display: flex; flex-direction: column; line-height: 1.25; }
.sim__big b { font-size: 20px; color: var(--ink); }
.sim__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.sim__big .muted { font-size: 11.5px; }
.sim__line { font-size: 12px; margin-top: 7px; }
.sim__warn { font-size: 12px; color: #9A6700; background: var(--amber-tint); border-radius: 8px; padding: 7px 10px; margin-top: 7px; }
.sim__warn i { margin-right: 4px; }
.sim__note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.sim__note i { margin-right: 3px; }
.promo__guide summary { cursor: pointer; font-size: 13.5px; list-style-position: inside; }
.promo__guide summary::-webkit-details-marker { color: var(--blue); }
.promo__steps { margin: 12px 0 8px; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.promo__steps li { margin-bottom: 3px; }
.promo__steps code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }

/* ---------- Lists / posts ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: box-shadow .18s, transform .18s; }
.item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.list .item { animation: riseIn .35s cubic-bezier(.33, 1, .68, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.item__media { width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--muted); }
.item__media img, .item__media video { width: 100%; height: 100%; object-fit: cover; }
.item__body { min-width: 0; flex: 1; }
.item__title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item__actions { display: flex; gap: 6px; flex: none; }
.review-note { margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: var(--amber); background: var(--amber-tint); border-left: 3px solid var(--amber); border-radius: 6px; padding: 7px 10px; white-space: pre-wrap; }
.review-note i { margin-right: 4px; }
.review-note .muted { color: var(--amber); opacity: .75; }

/* Calendário da Agenda */
.cal__head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal__wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__cell { min-height: 94px; border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal__cell--off { border-style: dashed; opacity: .4; background: transparent; }
.cal__cell--today { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.cal__num { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal__cell--today .cal__num { color: var(--blue); }
.cal__ev { font-size: 11px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.cal__ev:hover { background: var(--blue-tint); }
.cal__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
@media (max-width: 760px) {
  .cal__cell { min-height: 62px; }
  .cal__ev { font-size: 10px; padding: 2px 4px; }
  .cal__head { gap: 3px; } .cal { gap: 3px; }
}

/* Estúdio / Drive */
.drv__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.drv { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.drv__thumb { position: relative; aspect-ratio: 9/16; background: #000; display: grid; place-items: center; }
.drv__thumb img, .drv__thumb video { width: 100%; height: 100%; object-fit: cover; }
.drv__dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.drv__acts { display: flex; gap: 4px; padding: 6px; justify-content: center; }
.drv__acts .btn { padding: 6px 9px; }
.drv--sm { max-width: 90px; }
.drv__thumb[data-act], .drv__thumb[data-play] { cursor: pointer; }
.drv__play, .thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0,0,0,.15); opacity: 0; transition: opacity .15s; pointer-events: none; }
.drv__thumb:hover .drv__play, .thumb:hover .thumb__play { opacity: 1; }
.drv__audio { display: grid; place-items: center; width: 100%; height: 100%; color: #7fd4b8; font-size: 26px; background: linear-gradient(160deg, #12305e, #0b1d3a); }
.thumb { position: relative; cursor: pointer; }

/* "?" de ajuda dos cards do Estúdio (explicação leiga em modal) */
.qhelp {
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink-mut, #6b7a90); font: 700 11px/1 var(--body, inherit); cursor: pointer;
  vertical-align: 2px; transition: all .15s; padding: 0;
}
.qhelp:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint, #e7f0ff); }

/* Compor: blocos do Testar ganchos (A/B/C) */
.hookblk { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface-2); }
.hookblk .thumb { border-radius: 8px; overflow: hidden; flex: none; }
.hookblk .thumb img, .hookblk .thumb video { width: 100%; height: 100%; object-fit: cover; }

/* Editor Pro: modo tela cheia (shell) — o resto vive em editor.css */
.layout.editor-mode .topbar { display: none; }
.layout.editor-mode .sub-banner { display: none; }
.layout.editor-mode .content { padding: 0; max-width: none; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* Editor — timeline */
.edtl { position: relative; height: 40px; margin: 10px 0 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; overflow: hidden; }
.edtl__sel { position: absolute; top: 0; bottom: 0; background: rgba(24,119,242,.18); border-left: 2px solid var(--blue); border-right: 2px solid var(--blue); }
.edtl__head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); left: 0; }
.edtl__bands { position: absolute; inset: 0; }
.edband { position: absolute; height: 12px; border-radius: 3px; }
.edband--mute { top: 4px; background: var(--rose); }
.edband--txt { bottom: 4px; background: var(--blue); }
.edlist { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.edrow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 4px 8px; }
.edrow button { border: none; background: none; color: var(--rose); cursor: pointer; font-weight: 700; }

/* ---------- Editor visual (preview ao vivo, estilo Adobe Express) ---------- */
.ed { display: flex; flex-direction: column; gap: 12px; }
.ed__top { display: flex; justify-content: space-between; align-items: center; }
.ed__main { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.ed__stagewrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ed__stage { position: relative; margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; max-height: 56vh; box-shadow: var(--shadow-lg); touch-action: none; }
.ed__stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ed__stage.is-original video { object-fit: contain; }
.ed__overlay { position: absolute; inset: 0; pointer-events: none; }
.ed__txt { position: absolute; pointer-events: auto; cursor: grab; user-select: none; font-family: "Anton", var(--display), sans-serif; line-height: 1.05; letter-spacing: .3px; text-align: center; padding: 2px 8px; max-width: 92%; word-break: break-word; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.ed__txt.is-box { background: rgba(0, 0, 0, .58); border-radius: 6px; }
.ed__txt.ed__ghost { opacity: .6; outline: 1px dashed rgba(255, 255, 255, .6); cursor: default; pointer-events: none; }
.ed__txt.dragging { cursor: grabbing; outline: 2px dashed rgba(255, 255, 255, .75); }
.ed__transport { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.ed__badge { font-weight: 700; color: var(--blue); }
.ed__tools { display: flex; flex-direction: column; gap: 12px; max-height: 64vh; overflow-y: auto; padding-right: 2px; }
.ed__tools .field { margin: 0; }
.ed__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.edtl__trim { position: absolute; top: 0; bottom: 0; background: rgba(24, 119, 242, .16); border-left: 2px solid var(--blue); border-right: 2px solid var(--blue); display: none; }
@media (max-width: 760px) {
  .ed__main { grid-template-columns: 1fr; }
  .ed__stage { max-height: 46vh; }
  .ed__tools { max-height: none; }
}
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-400)); animation: growBar .7s cubic-bezier(.33, 1, .68, 1) .1s both; }
@keyframes growBar { from { width: 0; } }

/* Entrada suave das telas: blocos do conteúdo sobem em cascata. */
@keyframes riseIn { from { opacity: 0; transform: translateY(9px); } }
.content > * { animation: riseIn .4s cubic-bezier(.33, 1, .68, 1) both; }
.content > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; }
.content > *:nth-child(n+5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .content > *, .list .item, .bar > span, .kpi { animation: none; }
  .item:hover { transform: none; }
}
.feed { display: flex; flex-direction: column; gap: 11px; }
.feed .ev { font-size: 13px; display: flex; gap: 9px; }
.feed .ev .who { font-weight: 700; color: var(--blue-700); }
.feed .ev .t { color: var(--muted); font-size: 11.5px; }

.empty { text-align: center; color: var(--muted); padding: 38px 10px; }
.empty .big { font-family: var(--display); font-size: 18px; color: var(--ink-soft); margin-bottom: 4px; }
.empty .big i { color: var(--mint); margin-right: 6px; }

/* ---------- Toast ---------- */
#toast { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: pop .25s ease both; max-width: 340px; }
.toast.err { background: var(--rose); }
.toast.ok { background: var(--mint); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,28,46,.5); display: grid; place-items: center; z-index: 50; animation: pop .15s ease; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 22px; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease both; }
.modal h3 { font-family: var(--display); margin: 0 0 12px; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  /* sidebar vira um drawer deslizante (off-canvas) */
  .side {
    position: fixed; top: 0; left: 0; height: 100vh; width: 268px; max-width: 82vw;
    z-index: 60; transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto; box-shadow: 0 0 40px rgba(8, 20, 42, .4);
  }
  .layout.drawer-open .side { transform: translateX(0); }
  .side__close { display: block; }
  /* fundo escurecido que fecha o menu ao tocar */
  .backdrop {
    display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8, 20, 42, .5);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .layout.drawer-open .backdrop { opacity: 1; pointer-events: auto; }
  .hamburger { display: inline-grid; place-items: center; }
  .auth { grid-template-columns: 1fr; }
  .auth__brandside { display: none; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 14px 18px 8px; }
  .content { padding-left: 18px; padding-right: 18px; }
  .topbar h1 { font-size: 21px; }
}
@media (max-width: 560px) {
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  /* "Novo post" vira só o + pra economizar espaço */
  .topbar .btn--primary .btn-label { display: none; }
  .topbar .btn--primary { padding-left: 12px; padding-right: 12px; }
}
