/* ---------- Tokens ---------- */
:root {
  --bg: #161B33;
  --bg-elevated: #1F2650;
  --bg-elevated-2: #262E63;
  --text: #EDEAFB;
  --muted: #9296C4;
  --accent-record: #FF4D6D;
  --accent-record-dim: #C93A54;
  --accent-glow: #FFD166;
  --accent-teal: #59C9A5;
  --border: rgba(237, 234, 251, 0.1);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.2), 0 12px 32px -16px rgba(0,0,0,0.5);
  --shadow-card-hover: 0 1px 2px rgba(0,0,0,0.25), 0 20px 44px -16px rgba(0,0,0,0.65);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; }

/* Sem isso, classes que setam "display" (ex.: .sidebar-nav-item, .galeria-secoes)
   vencem o [hidden] nativo do navegador quando têm a mesma especificidade,
   e o elemento continua ocupando espaço/largura mesmo "escondido". */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 1000px 560px at 88% -8%, rgba(255, 209, 102, 0.11), transparent),
    radial-gradient(ellipse 760px 560px at -4% 18%, rgba(255, 77, 109, 0.09), transparent),
    radial-gradient(ellipse 640px 500px at 60% 85%, rgba(89, 201, 165, 0.06), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 27, 51, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* ---------- Dashboard shell (sidebar layout) ---------- */
.dashboard-shell {
  display: grid;
  /* minmax(0, 1fr) em vez de 1fr puro: mesmo bug do .studio-grid, um nível
     acima — sem o "0" a coluna herda o min-content do item mais largo (aside
     ou main) e força o grid (logo a página inteira) além da tela no mobile. */
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

/* Studio dashboard only: stretch the content column to match the sidebar's full height
   instead of leaving a gap under the (shorter) card, so the two columns line up.
   Scoped to painel.html (galeria/planos keep their own natural, non-stretched flow). */
.dashboard-shell--studio {
  align-items: stretch;
}
.dashboard-main--studio {
  display: flex;
  flex-direction: column;
}
.dashboard-main--studio > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-sidebar .logo {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(31, 38, 80, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  z-index: 30;
  box-sizing: border-box;
}

.sidebar-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-credits-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 209, 102, 0.14);
  color: var(--accent-glow);
  padding: 7px 12px;
  line-height: 1.2;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-credits-validade-titulo {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.sidebar-credits-validade-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-credits-validade-lista li {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.btn.btn-sidebar-buy {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 6px 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Shared chrome for the sidebar "stack of blocks": nav cards, upload boxes, narration box.
   Sizing (min-height) is set per group below, not here — nav cards and the new
   upload/narration boxes intentionally have different heights. */
.sidebar-box {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 7px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sidebar-nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.sidebar-nav-item.is-active {
  color: var(--text);
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.35);
}

.sidebar-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-field { display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 100%; }

/* Antes essa caixa crescia (flex:1) pra preencher o espaço vertical sobrando,
   competindo por altura com a caixa de narração ao lado — quando a narração
   cresce (áudio da própria voz: nome do arquivo + player), a caixa de foto
   encolhia até sobrepor/esconder o botão "escolher da galeria". Agora tem
   altura própria e estável, sem competir com a narração. */
.sidebar-field--stretch { flex: 0 0 auto; }
.sidebar-field--stretch .sidebar-upload-box { min-height: 150px; }

.sidebar-field-label {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}

/* Footprint for the sidebar upload box; narration box sizes to its own content */
.sidebar-upload-box {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  overflow: hidden;
}

.sidebar-upload-box .dropzone {
  flex: 1;
  min-height: 90px;
  border: none;
  background: transparent;
}
.sidebar-upload-box .dropzone-empty { padding: 6px; font-size: 0.78rem; line-height: 1.25; gap: 6px; }
.sidebar-upload-box .dropzone-preview { height: 100%; min-height: 60px; border-radius: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* No outer card here on purpose — only the individual voice pills below should look like buttons */
.sidebar-narration-box {
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.voice-options--stacked .voice-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  width: 100%;
}
.voice-options--stacked .voice-name { font-size: 0.8rem; line-height: 1.2; }
.voice-options--stacked .voice-tag { font-size: 0.64rem; line-height: 1.2; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sidebar-logout {
  background: none;
  border: none;
  color: var(--accent-record);
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.sidebar-logout:hover { opacity: 0.85; }

.sidebar-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 10px;
}
.sidebar-back-link:hover { color: var(--text); }

.dashboard-main { min-width: 0; }
.dashboard-main .wrap { max-width: 1040px; margin: 0; padding-left: 32px; }

@media (max-width: 960px) {
  .dashboard-main .wrap { margin: 0 auto; padding-left: 24px; }
}
.dashboard-main .eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@media (max-width: 960px) {
  .dashboard-shell { grid-template-columns: minmax(0, 1fr); }
  .dashboard-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-credits { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-credits-validade { flex-basis: 100%; }
  .btn-sidebar-buy { width: auto; padding: 10px 16px; }
  .sidebar-nav { flex-direction: row; margin-left: auto; }
  .sidebar-bottom { margin-top: 0; margin-left: auto; padding-top: 0; border-top: none; }

  .sidebar-controls {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
  .sidebar-field { flex: 1 1 200px; }
}

@media (max-width: 560px) {
  .dashboard-sidebar { justify-content: flex-start; }
  .sidebar-nav { margin-left: 0; }
  .sidebar-bottom { margin-left: 0; }
  .sidebar-controls { flex-direction: column; }
  .sidebar-field { flex: 1 1 auto; }
}

/* ---------- Studio (two-column generator layout) ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.studio-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.studio-preview { min-width: 0; }

/* minmax(0, 1fr) em vez de 1fr puro: sem o "0" o item de grid herda um
   min-width automático do tamanho do próprio conteúdo, então qualquer coisa
   larga lá dentro (imagem, vídeo, texto sem quebra) força a coluna a crescer
   além da tela em vez de encolher — a real causa do "corte" no mobile. */
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-record);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}

.wrap-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.conta-standalone {
  padding: 64px 0 100px;
}

/* ---------- Checkbox de aceite dos Termos (cadastro / conclusão via Google) ---------- */
.field-block--checkbox { margin-bottom: 18px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 0;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-record);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.checkbox-label a {
  color: var(--accent-glow);
  text-decoration: underline;
}

.termos-checkbox-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 0 27px;
}

.field-block--turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Página de Termos de Uso ---------- */
.termos-wrap { max-width: 760px; }

.termos-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 30px 0 10px;
  letter-spacing: -0.01em;
}
.termos-content h3:first-of-type { margin-top: 0; }

.termos-content p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.termos-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.termos-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.termos-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.termos-aviso {
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
}

.termos-fim-marcador {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 32px;
  margin-bottom: 0;
}

.termos-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 20px 0 0;
}
.termos-status--ok { color: var(--accent-teal); }

/* ---------- Como funciona / Passos ---------- */
/* ---------- Tira de números (prova social) ---------- */
.stats-strip {
  padding: 8px 0 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent-glow);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Landing — layout de tela cheia, sem rolagem (desktop)
   ============================================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.landing-body { overflow: hidden; }

.landing-viewport {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  flex-shrink: 0;
}

.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-topbar-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select-wrap { display: flex; flex-shrink: 0; }

.lang-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .landing-topbar { padding: 14px 16px; }
  .lang-select { font-size: 0.75rem; padding: 8px; }
  .btn-ghost { padding: 8px 10px; font-size: 0.85rem; }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); }

.landing-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: stretch;
}

.landing-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 0 40px 0 56px;
  border-right: 1px solid var(--border);
}

.landing-sidebar h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.landing-sidebar h1 .accent { color: var(--accent-glow); }

.landing-sub {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  max-width: 42ch;
}

.mini-steps {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.landing-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.stage-cluster {
  position: relative;
  width: min(780px, 100%);
  height: min(720px, 82vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-cluster .phone-frame {
  animation: stage-in 0.7s ease both;
  z-index: 2;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: 190px;
  z-index: 1;
  scale: 1;
  animation: stage-in 0.6s ease both, float-bob 5s ease-in-out infinite;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), scale 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.float-card-icon { font-size: 1rem; }

.float-card-l1 { top: 6%;    left: 0%;   animation-delay: 0.1s, 0.1s; }
.float-card-l2 { top: 42%;   left: 0%;   animation-delay: 0.3s, 0.9s; }
.float-card-l3 { bottom: 6%; left: 0%;   animation-delay: 0.5s, 1.6s; }
.float-card-r1 { top: 6%;    right: 0%;  animation-delay: 0.2s, 0.5s; }
.float-card-r2 { top: 42%;   right: 0%;  animation-delay: 0.4s, 1.2s; }
.float-card-r3 { bottom: 6%; right: 0%;  animation-delay: 0.6s, 1.9s; }
.float-card-c  {
  top: 0%; left: 50%;
  translate: -50% 0;
  z-index: 3;
  animation-delay: 0.15s, 0.7s;
}

.float-card.is-swap-out {
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.25s ease, scale 0.25s ease;
}

.float-card.is-swap-in {
  animation: stage-in 0.6s ease both, float-bob 5s ease-in-out infinite, card-glow 0.6s ease;
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes card-glow {
  0% { box-shadow: var(--shadow-card), 0 0 0 0 rgba(255, 209, 102, 0.5); border-color: rgba(255, 209, 102, 0.6); }
  100% { box-shadow: var(--shadow-card), 0 0 0 9px rgba(255, 209, 102, 0); border-color: var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: stage-in 0.6s ease both; }
  .float-card.is-swap-out { transition: opacity 0.25s ease; scale: 1; }
  .float-card.is-swap-in { animation: none; }
}

@media (max-width: 960px) {
  .landing-body { overflow: visible; }
  .landing-viewport { height: auto; min-height: 100dvh; }
  .landing-topbar {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 20px;
  }
  .landing-topbar-actions {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .landing-topbar-mini {
    justify-content: space-between;
    gap: 10px;
  }
  .btn-nav-cta {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .landing-main { grid-template-columns: 1fr; }
  .landing-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    align-items: center;
  }
  .mini-steps li { justify-content: flex-start; }
  .landing-stage { min-height: 0; padding: 40px 20px 60px; flex-direction: column; gap: 12px; }
  .stage-cluster { flex-direction: column; width: 100%; height: auto; gap: 12px; }
  .float-card { display: none; }
  .float-card-l1, .float-card-c, .float-card-r1 {
    display: flex;
    position: static;
    translate: none;
    margin: 8px 0;
    max-width: none;
    text-align: left;
    animation: stage-in 0.6s ease both;
    transition: opacity 0.2s ease, scale 0.2s ease, box-shadow 0.2s ease;
  }
  .float-card-l1.is-swap-out, .float-card-c.is-swap-out, .float-card-r1.is-swap-out {
    transition: opacity 0.1s ease, scale 0.1s ease;
  }
  .float-card-l1.is-swap-in, .float-card-c.is-swap-in, .float-card-r1.is-swap-in {
    animation: stage-in 0.22s ease both, card-glow 0.22s ease;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.step-card .field-num {
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Benefícios ---------- */
.beneficios { padding: 32px 0 60px; }

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.beneficio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.beneficio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.beneficio-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--accent-glow);
}

.beneficio-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

.btn-precos-cta {
  display: inline-flex;
  margin-top: 28px;
}

/* ---------- CTA final ---------- */
.cta-final {
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.cta-final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 0;
  max-width: 20ch;
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
  .beneficios-grid { grid-template-columns: 1fr; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav > a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.header-nav > a:hover { color: var(--text); }

.account-widget { display: flex; align-items: center; }

.account-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.account-link:hover { color: var(--text); }

.account-logged-in {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-credits {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 209, 102, 0.12);
  color: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.account-logout {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.account-logout:hover { color: var(--text); }

/* ---------- Conta (login/registro) ---------- */
.conta { padding: 32px 0; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: #1F1F1F;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn-google:hover { opacity: 0.9; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.auth-tab.is-active {
  background: var(--accent-record);
  border-color: var(--accent-record);
  color: #1B0F14;
}

.auth-form {
  max-width: 420px;
}

.auth-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.auth-form input:focus { border-color: var(--accent-glow); outline: none; }

.auth-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Créditos / Pacotes ---------- */
.creditos { padding: 32px 0 60px; }
.creditos .wrap { max-width: none; }

.pacotes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.pacote-card {
  background: rgba(31, 38, 80, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pacote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 209, 102, 0.35);
}

.pacote-top {
  min-height: 128px;
}

.pacote-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pacote-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}

.pacote-preco {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--accent-glow);
  margin: 8px 0 4px;
}

.pacote-detalhe {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.pacote-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.qty-btn {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.qty-btn:hover { border-color: var(--accent-glow); background: rgba(255, 209, 102, 0.06); }
.qty-input {
  width: 42px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 5px 2px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; }

.btn-pagamento-toggle {
  width: 100%;
  justify-content: center;
}

.is-hidden { display: none; }

.pacote-checklist {
  list-style: disc;
  margin: 4px 0 0;
  padding-left: 18px;
}

.pacote-checklist li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 6px;
}
.pacote-checklist li:last-child { margin-bottom: 0; }

.btn-payment-voltar {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 0 4px;
}
.btn-payment-voltar:hover { color: var(--text); }

.btn-comprar {
  width: 100%;
}

@media (max-width: 1100px) {
  .pacotes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pacotes-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-record {
  background: var(--accent-record);
  color: #1B0F14;
  box-shadow: 0 8px 24px -8px rgba(255, 77, 109, 0.55), 0 1px 2px rgba(0,0,0,0.15);
}
.btn-record:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 77, 109, 0.65), 0 1px 2px rgba(0,0,0,0.15); }
.btn-record:active { transform: translateY(0); }

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1B0F14;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 26px;
  margin-top: 8px;
}
.studio-form .btn-submit { font-size: 0.94rem; padding: 10px 20px; margin-top: 2px; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 .accent { color: var(--accent-glow); }

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

/* ---------- Phone mockup (signature element) ---------- */
.hero-visual { display: flex; justify-content: center; }

.phone-frame {
  position: relative;
  aspect-ratio: 232 / 472;
  height: min(640px, 72vh);
  width: auto;
  max-width: 100%;
  border-radius: 42px;
  background: linear-gradient(160deg, #0F1226, #1B2049);
  border: 1px solid rgba(237, 234, 251, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 8px rgba(255,255,255,0.02);
  padding: 18px 18px 34px;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0C0E20;
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: stagecycle 8s infinite;
}

.stage-photo { animation-delay: 0s; }
.stage-caption { animation-delay: 2s; }
.stage-wave { animation-delay: 4s; }
.stage-done { animation-delay: 6s; }

@keyframes stagecycle {
  0%, 2% { opacity: 0; }
  4%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.demo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.demo-slide.is-active { opacity: 1; }

.demo-thumb-wrap {
  position: absolute;
  inset: 0;
}

.demo-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 20, 0.85) 0%, rgba(6, 8, 20, 0) 46%);
  pointer-events: none;
}

.demo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0C0E20;
}

.demo-product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--bg-elevated-2);
  border: 2px solid var(--bg);
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.6);
  color: var(--text);
  z-index: 2;
}

.demo-slide .waveform {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  height: 28px;
  z-index: 2;
}

.caption-chip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: calc(100% - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--accent-record);
  color: #1B0F14;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
}
.waveform span {
  width: 4px;
  border-radius: 2px;
  background: var(--accent-teal);
  animation: bar 1s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 20%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 80%; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 30%; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 65%; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 25%; animation-delay: 0.7s; }

@keyframes bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.done-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border: 1px solid var(--accent-teal);
  padding: 10px 20px;
  border-radius: 999px;
}

.phone-timecode {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Generator ---------- */
.generator { padding: 14px 0 16px; }
.dashboard-main--studio .generator {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-main--studio .generator .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sheet-header { margin-bottom: 28px; }
.sheet-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Compact header just for the dashboard/Studio generator (login/galeria/planos keep the roomier default above) */
.generator .sheet-header { margin-bottom: 8px; }
.generator .sheet-header h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.galeria-title {
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  color: var(--accent-record);
  text-decoration: underline;
}
.dashboard-main .eyebrow { margin-bottom: 4px; }

.sheet {
  background: rgba(31, 38, 80, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.field-block { margin-bottom: 28px; }

label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.field-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bg);
  background: var(--accent-glow);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Compact form chrome scoped to the dashboard's studio form only (shared .sheet/.field-block/label/textarea
   stay at the roomier default above for login/galeria/planos) */
.studio-form .sheet {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  box-sizing: border-box;
}
.studio-form .field-block { margin-bottom: 8px; }
.studio-form label { margin-bottom: 4px; gap: 8px; font-size: 0.92rem; }
.studio-form .field-num { width: 20px; height: 20px; font-size: 0.64rem; }

textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
textarea:focus { border-color: var(--accent-glow); }
.studio-form textarea { padding: 8px 10px; font-size: 0.88rem; }

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.studio-form .field-hint { font-size: 0.74rem; margin-top: 4px; line-height: 1.3; }

.field-hint-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-hint-row .field-hint { margin-top: 8px; }
.studio-form .field-hint-row .field-hint { margin-top: 4px; }

.field-char-counter {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.studio-form .field-char-counter { font-size: 0.74rem; margin-top: 4px; }
.field-char-counter.is-over-limit { color: var(--accent-record); font-weight: 600; }

.dropzone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent-glow); background: rgba(255,209,102,0.04); }

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 24px;
}

.dropzone-preview {
  display: none;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.dropzone.has-image .dropzone-empty { display: none; }
.dropzone.has-image .dropzone-preview { display: block; }

.dropzone-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dropzone-remove:hover { background: rgba(0,0,0,0.75); }
.dropzone-pair .dropzone-remove { width: 22px; height: 22px; font-size: 0.95rem; top: 6px; right: 6px; }

/* Two optional, side-by-side upload slots (imagem.html) — smaller footprint
   than the full-size single .dropzone since these are an optional add-on, not the main field */
.dropzone-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.dropzone-pair .dropzone { min-height: 100px; }
.dropzone-pair .dropzone-empty { padding: 12px; font-size: 0.8rem; gap: 6px; }
.dropzone-pair .dropzone-preview { height: 100px; }

@media (max-width: 560px) {
  .dropzone-pair { grid-template-columns: minmax(0, 1fr); }
}

.dropzone-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropzone-galeria-btn {
  border: none;
  background: none;
  color: var(--accent-glow);
  font-size: 0.74rem;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.dropzone-galeria-btn:hover { color: var(--text); }

/* Modal: escolher uma imagem já gerada na galeria como referência,
   sem precisar baixar e subir de novo (public/galeria-picker.js) */
.galeria-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 28, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.galeria-picker-modal {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.galeria-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.galeria-picker-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.galeria-picker-close {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.galeria-picker-close:hover { color: var(--text); }

.galeria-picker-body {
  padding: 18px;
  overflow-y: auto;
}

.galeria-picker-status {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 12px 0;
}

.galeria-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.galeria-picker-item {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.galeria-picker-item:hover { border-color: var(--accent-glow); }
.galeria-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galeria-picker-item.is-loading { opacity: 0.5; cursor: wait; }

.voice-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.voice-option { margin: 0; display: flex; align-items: center; gap: 8px; }
.voice-option input { position: absolute; opacity: 0; }

.voice-card {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.voice-preview-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.voice-preview-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
.voice-preview-btn.is-playing { border-color: var(--accent-teal); background: rgba(89, 201, 165, 0.12); color: var(--accent-teal); }

.voice-option input:checked + .voice-card {
  border-color: var(--accent-record);
  background: rgba(255, 77, 109, 0.08);
}
.voice-option input:focus-visible + .voice-card {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}

.voice-name { font-weight: 600; font-size: 0.9rem; }
.voice-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

.own-voice-upload { margin-top: 8px; max-width: 100%; }
.own-voice-upload-row { display: flex; align-items: center; gap: 8px; }
.own-voice-upload-row input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 0.82rem;
}
.voice-preview-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.voice-preview-btn:disabled:hover { border-color: var(--border); color: var(--text); }

.voice-preview-bar { margin-top: 8px; max-width: 100%; }
.voice-preview-name {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
}
.voice-preview-player { width: 100%; max-width: 100%; height: 32px; }

.own-voice-selected { margin-top: 8px; max-width: 100%; }
.own-voice-filename {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
  word-break: break-all;
}
.own-voice-player {
  width: 100%;
  max-width: 100%;
  height: 32px;
}

/* ---------- Dashboard preview windows (produto / influencer) ---------- */
.preview-window {
  position: relative;
  min-height: 74px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  color: var(--muted);
  overflow: hidden;
  box-sizing: border-box;
}
.preview-window svg { width: 24px; height: 24px; }

.preview-window-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-window.has-image .preview-window-image { display: block; }
.preview-window.has-image svg { display: none; }

/* ---------- Narration bar (dashboard) ---------- */
.narration-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.narration-bar-name { font-weight: 600; font-size: 0.88rem; }

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.14);
  color: var(--accent-glow);
  border: 1px solid rgba(255, 209, 102, 0.35);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Payment panel ---------- */
.payment-panel {
  max-width: 640px;
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
}

.payment-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.payment-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent-glow);
  margin: 0 0 24px;
}
.payment-price span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-payment {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-payment:hover {
  border-color: var(--accent-glow);
  background: rgba(255, 209, 102, 0.06);
}

.payment-hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1em;
}

/* ---------- Status panel ---------- */
.status-panel {
  background: rgba(31, 38, 80, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
}

.status-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 24px;
}
.status-spinner[hidden] { display: none; }

.status-spinner-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent-record);
  border-right-color: var(--accent-glow);
  border-bottom-color: var(--accent-teal);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-spinner-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: inline-flex;
}

.status-spinner-dots span {
  animation: status-dot-blink 1.2s infinite;
  opacity: 0.2;
}
.status-spinner-dots span:nth-child(2) { animation-delay: 0.2s; }
.status-spinner-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes status-dot-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.status-message {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.status-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.result-image {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 20px auto 0;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.result-audio {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 16px auto 0;
}

.result-video {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  margin: 20px auto 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #000;
}

.result-download-link {
  display: block;
  text-align: center;
  margin: 16px auto 0;
  color: var(--accent-glow);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.result-download-link:hover { text-decoration: underline; }
.result-download-link[hidden] { display: none; }

/* ---------- Imagem avulsa (aba "Imagem") ---------- */
.imagem-resultado {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagem-resultado.is-loading {
  background: linear-gradient(120deg, var(--accent-record), var(--accent-glow), var(--accent-teal), var(--accent-record));
  background-size: 300% 300%;
  animation: imagem-gerando-gradiente 4s ease infinite;
  filter: blur(20px) saturate(1.4);
}

@keyframes imagem-gerando-gradiente {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.imagem-resultado-hint {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.imagem-resultado.is-loading .imagem-resultado-hint { color: #fff; }

.imagem-resultado img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.imagem-resultado.has-image img { display: block; }
.imagem-resultado.has-image .imagem-resultado-hint { display: none; }

.is-zoomable { cursor: zoom-in; transition: opacity 0.15s ease; }
.is-zoomable:hover { opacity: 0.85; }

/* Lightbox genérico pra ampliar imagens de resultado (public/lightbox.js) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-card-hover);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.image-card-player {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* ---------- Galeria (vídeos salvos) ---------- */
.galeria { padding: 32px 0 120px; }

.galeria-status {
  color: var(--muted);
  font-size: 0.95rem;
}

.galeria-secoes {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.galeria-secao-titulo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.galeria-secao-vazio {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.videos-grid:empty { display: none; }

.video-card {
  background: rgba(31, 38, 80, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 209, 102, 0.35);
}

.video-card-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}

.video-card-desc {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.video-card-download {
  color: var(--accent-glow);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}
.video-card-download:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.site-footer--compact { padding: 8px 0; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-dim { opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-frame { width: 190px; height: 386px; }
  .sheet { padding: 26px; }
  .voice-options { grid-template-columns: 1fr; }
}

/* ---------- Chatbot assistente (abas Imagem/Vídeo) ---------- */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent-glow);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(255, 209, 102, 0.55), 0 1px 2px rgba(0,0,0,0.2);
  z-index: 40;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(255, 209, 102, 0.65), 0 1px 2px rgba(0,0,0,0.2); }
.chat-launcher-icon-close { display: none; }
.chat-launcher.is-active .chat-launcher-icon-open { display: none; }
.chat-launcher.is-active .chat-launcher-icon-close { display: block; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 368px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 560px);
  background: rgba(31, 38, 80, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 39;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.chat-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}
.chat-panel--arrastando {
  transition: none !important;
}
.chat-panel--arrastando .chat-panel-header {
  cursor: grabbing;
}
.chat-panel-title {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}
.chat-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.chat-panel-close:hover { color: var(--text); }

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble--assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent-glow);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.chat-bubble--typing { opacity: 0.7; animation: pulse 1.2s ease-in-out infinite; }
.chat-bubble--digitando-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: currentColor;
  animation: chat-cursor-blink 0.8s steps(1) infinite;
}
@keyframes chat-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.chat-aviso {
  align-self: center;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  padding: 2px 8px;
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chat-quick-replies[hidden] { display: none; }
.chat-quick-reply {
  text-align: left;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chat-quick-reply:hover { border-color: var(--accent-glow); transform: translateY(-1px); }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.chat-input:focus { border-color: var(--accent-glow); }
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-record);
  color: #1B0F14;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.chat-send-btn:hover { transform: translateY(-1px); }
.chat-send-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.chat-campo-preenchido {
  border-color: var(--accent-glow) !important;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 600px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 84px;
    max-height: 62vh;
  }
}
