/* ═══════════════════════════════════════════════════════════════
   numerology-flipbook.css — FlipBook Numerológico MVP1
   ═══════════════════════════════════════════════════════════════ */

/* ── Workspace ─────────────────────────────────────────────────── */
.flipbook-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;        /* centraliza toolbar horizontalmente */
  height: calc(100vh - 80px);
  overflow: hidden;
  padding: 1rem 1rem 0;
  background: var(--bg-1, #0e0e18);
  position: relative;         /* ancora o .fb-zoom-panel absoluto */
}

.flipbook-workspace.fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 9999;
  height: 100vh;
  padding: 0.75rem 1rem 0;
  background: #0a0a12;
}

/* Modo standalone: expande sem fullscreen nativo (aberto via nova aba) */
.flipbook-workspace.standalone-mode {
  height: 100vh;
  padding: 0.5rem 1rem 0;
}

/* ── Toolbar superior ──────────────────────────────────────────── */
.fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fb-toolbar-left  { display: flex; align-items: center; gap: 0.5rem; }
.fb-toolbar-right { display: flex; align-items: center; gap: 0.5rem; }

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms;
  white-space: nowrap;
}
.fb-btn:hover  { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.4); color: #c084fc; }
.fb-btn:active { transform: scale(0.97); }
.fb-btn.active { background: rgba(168,85,247,0.25); border-color: rgba(168,85,247,0.5); color: #c084fc; }
.fb-btn-icon   { padding: 0.4rem 0.6rem; }

/* ── Stage — ocupa todo espaço restante e centraliza o livro ───── */
.fb-stage {
  flex: 1;
  align-self: stretch;        /* ocupa largura total, ignorando o align-items:center do workspace */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Wrapper que o Turn.js usa como parent: dimensionado por JS */
.fb-book-centering {
  position: relative;
  flex-shrink: 0;
}

.fb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,8,22,0.7);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms;
}
.fb-arrow:hover  { background: rgba(168,85,247,0.25); border-color: rgba(168,85,247,0.5); color: #c084fc; }
.fb-arrow:active { transform: translateY(-50%) scale(0.94); }
.fb-arrow-prev { left: 0.5rem; }
.fb-arrow-next { right: 0.5rem; }
.fb-arrow:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }

/* ── Botão "Voltar ao início" (estado disabled na p. 1) ────────── */
#fb-btn-home:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Bloqueio de navegação enquanto CTA está aberto ─────────────
   Aplicado via JS adicionando .fb-nav-locked no .flipbook-workspace.
   Setas do teclado são interceptadas em JS (capture=true). */
.flipbook-workspace.fb-nav-locked .fb-arrow,
.flipbook-workspace.fb-nav-locked #fb-btn-home,
.flipbook-workspace.fb-nav-locked #flipbook-container {
  pointer-events: none;
}
.flipbook-workspace.fb-nav-locked .fb-arrow {
  opacity: 0.25;
}

/* ── Container do flipbook (Turn.js posiciona absoluto aqui) ────── */
#flipbook-container {
  transform-origin: center center;
  transition: transform 200ms ease, opacity 160ms ease;
}

/* Anti-flash: antes do Turn.js inicializar, as páginas (background #fff)
   ficariam empilhadas verticalmente sobre o workspace escuro causando um
   "piscar branco". Mantemos o container invisível até o flipbook ficar
   pronto — `visibility:hidden` preserva layout/medidas (necessárias para
   o splitOverflowingPages e o init do Turn.js). */
.flipbook-workspace:not(.fb-ready) #flipbook-container {
  visibility: hidden;
  opacity: 0;
}
.flipbook-workspace.fb-ready #flipbook-container {
  visibility: visible;
  opacity: 1;
}

/* Sombra de encadernação — Turn.js adiciona .odd/.even nas páginas */
.flipbook-page.odd  { box-shadow: inset -8px 0 20px rgba(0,0,0,0.10); }
.flipbook-page.even { box-shadow: inset  8px 0 20px rgba(0,0,0,0.10); }

/* ── Painel de zoom — fixo no canto inferior esquerdo ──────────── */
.fb-zoom-panel {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(10, 8, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.25rem 0.45rem;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fb-zoom-panel .fb-btn {
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
}
.fb-zoom-label {
  font-size: 0.72rem;
  color: #94a3b8;
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Páginas do livro ──────────────────────────────────────────── */
.flipbook-page {
  background: #ffffff;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  line-height: 1.55;
  color: #1e293b;
}

/* Sombra da borda interna (Turn.js adiciona .odd / .even) — ver abaixo */

/* ── Layout interno da página ──────────────────────────────────── */
.fp-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 32px 20px;
  box-sizing: border-box;
}

.fp-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.fp-header-line {
  font-size: 9px;
  color: #64748b;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-header-line strong { color: #1e293b; font-weight: 700; }
.fp-header-line .fp-header-sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.fp-content {
  flex: 1; overflow: hidden; display: flex; flex-direction: column;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.fp-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.fp-footer-credit {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.4;
}
.fp-footer-credit a { color: #6366f1; text-decoration: none; }
.fp-page-number {
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
}

/* ── Página Capa (antiga — mantida para compatibilidade) ───────── */
.fp-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  padding: 40px 36px;
  text-align: center;
  color: #fff;
}
.fp-cover-sigil {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.fp-cover-type {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 10px;
}
.fp-cover-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
}
.fp-cover-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.fp-cover-meta { font-size: 10px; color: #94a3b8; line-height: 2; }
.fp-cover-meta strong { color: #e2e8f0; }
.fp-cover-generated { font-size: 8px; color: #475569; margin-top: 20px; }

/* ── Capa nova (fp-cover-page) ──────────────────────────────────── */
.fp-cover-page {
  overflow: hidden;
}
.fp-cover-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #06040f 0%, #0d0928 30%, #1a1048 55%, #100830 80%, #060410 100%);
  position: relative;
  display: flex;
  align-items: stretch;
}
/* Campo estelar */
.fp-cover-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 8%,  rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 5%,  rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 6%,  rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 22%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  65%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 88%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 82%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 70%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 48%, rgba(196,132,252,0.60) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 8%  52%, rgba(196,132,252,0.50) 0%, transparent 100%),
    radial-gradient(2px   2px   at 45% 30%, rgba(220,180,255,0.40) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Nebulosa sutil */
.fp-cover-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(120,60,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 50% 45%, rgba(80,40,160,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.fp-cover-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 28px 24px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}
/* Seção de título */
.fp-cover-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fp-cover-main-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f0d060 0%, #c8962a 40%, #f5e87a 65%, #b8791a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(210,165,40,0.45));
}
.fp-cover-subtitle {
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(196,168,252,0.85);
}
/* SVG ocupa o espaço central disponível */
.fp-cover-tree-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  opacity: 0.95;
}
/* Rodapé dinâmico */
.fp-cover-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.fp-cover-footer-sep {
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.40), transparent);
  margin-bottom: 8px;
}
.fp-cover-footer-name {
  font-size: 12px;
  font-weight: 700;
  color: #e2d9f3;
  letter-spacing: 0.04em;
}
.fp-cover-footer-meta {
  font-size: 8px;
  color: rgba(148,125,200,0.80);
  letter-spacing: 0.10em;
}

/* ── Capa com imagem personalizada ─────────────────────────────── */
.fp-cover-custom {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: stretch;
}
.fp-cover-custom-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 28px 24px 20px;
  background: rgba(0, 0, 0, 0.42);
  text-align: center;
}
.fp-cover-custom-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fp-cover-custom-titulo {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.fp-cover-custom-subtitulo {
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
/* Bloco inferior: cliente + autor agrupados no rodapé */
.fp-cover-custom-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Dados do cliente — centralizados */
.fp-cover-custom-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.fp-cover-custom-client-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.fp-cover-custom-client-date {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
/* Separador entre cliente e autor */
.fp-cover-custom-sep {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.30);
}
/* Autor — alinhado à margem esquerda (equivalente à margem A4) */
.fp-cover-custom-author {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

/* ── Página Apresentação (Carta de Apresentação) ───────────────── */

/* a) Título centralizado */
.fp-apres-doc-title {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6366f1;
  text-align: center;
}

/* Área de conteúdo */
.fp-apres-content {
  overflow: auto;
  gap: 0;
}

/* ── Página Introdução ──────────────────────────────────────────── */
.fp-intro-content {
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.fp-intro-body {
  font-size: 9px;
  color: #334155;
  line-height: 1.75;
  white-space: pre-line;
}
.fp-intro-sign {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4em;   /* ≈ 4 linhas em branco */
  font-size: 9.5px;
  color: #475569;
  font-style: italic;
}
.fp-intro-sign strong {
  font-style: normal;
  color: #0f172a;
}

/* Saudação inicial */
.fp-apres-hello {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  margin-top: 0;
}


/* c) Bio: 2 linhas em branco depois do texto de boas-vindas */
.fp-apres-bio {
  font-size: 9.5px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 2em;  /* ≈ 2 linhas em branco */
  white-space: pre-line;
}
.fp-apres-bio p { margin: 0 0 0.5em; }

/* c) Bloco de seção — 2 linhas em branco depois de cada um */
.fp-apres-section {
  margin-bottom: 2em;  /* ≈ 2 linhas em branco */
}
.fp-apres-section-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
  margin-bottom: 4px;
}
.fp-apres-section-text {
  font-size: 9px;
  color: #475569;
  line-height: 1.7;
  white-space: pre-line;
}
.fp-apres-section-text p { margin: 0 0 0.4em; }

/* d) Assinatura: sem linha separadora, 3 linhas abaixo do último bloco
      (último bloco tem 2em bottom + sign tem 1em top = 3em total ≈ 3 linhas) */
.fp-apres-sign {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 1em;
  /* sem border-top, sem padding-top */
  font-size: 9.5px;
  color: #475569;
  font-style: italic;
}
.fp-apres-sign strong {
  font-style: normal;
  color: #0f172a;
}

/* ── Índice ────────────────────────────────────────────────────── */
.fp-indice-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.fp-indice-group { margin-bottom: 8px; }
.fp-indice-group-title {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
/* Itens: alinhamento com .fp-sc-item (sumário de seções) — 9px com
   line-height default (~1.2) e padding compacto. Espaçoso o bastante
   para boa leitura, mas cabe 17 itens da Seção 3 (Combinações
   Harmônicas) na pág. 3 sem truncamento. */
.fp-indice-item {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #475569;
  padding: 1.5px 0 1.5px 10px;
  line-height: 1.25;
}
.fp-indice-item .dots {
  flex: 1;
  border-bottom: 1px dotted #cbd5e1;
  margin: 0 6px;
  height: 8px;
}
.fp-indice-soon { color: #94a3b8; font-style: italic; }

/* Sumário interativo — clicável só no modo online (não em .flipbook-print) */
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable {
  cursor: pointer;
  border-radius: 4px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable:hover {
  background-color: rgba(99, 102, 241, 0.08);
  color: #1e1b4b;
}
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable:hover .dots {
  border-bottom-color: #6366f1;
}
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable:hover :last-child {
  color: #6366f1;
  font-weight: 700;
}
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
  background-color: rgba(99, 102, 241, 0.08);
}
.flipbook-workspace:not(.flipbook-print) .fp-indice-item.is-clickable:active {
  transform: translateX(1px);
}

/* ── Banner do tópico ──────────────────────────────────────────── */
.fp-banner {
  background: #f1f5f9;
  border-left: 3px solid #6366f1;
  padding: 7px 12px;
  font-size: 9.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
}
.fp-banner-karma {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.fp-vibracao-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  margin-bottom: 2px;
}
.fp-vibracao-number {
  font-size: 36px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 10px;
}
.fp-vibracao-number.master { color: #d97706; }

.fp-keywords-label { font-size: 9px; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.fp-keywords-list  { font-size: 9px; color: #64748b; margin-bottom: 10px; }

/* ── Categoria / Tópico ────────────────────────────────────────── */
.fp-categoria-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
  margin-bottom: 3px;
}

/* ── Significado do Tópico ─────────────────────────────────────── */
.fp-significado {
  background: #f0f9ff;
  border-left: 3px solid #0ea5e9;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}
.fp-significado-label {
  font-size: 10px;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 3px;
}
.fp-significado-text {
  font-size: 9px;
  color: #334155;
  line-height: 1.6;
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* ── Rótulo de seção (Texto Interpretativo) ────────────────────── */
.fp-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 3px;
  margin-top: 6px;
}

.fp-interp-text {
  font-size: 9.5px;
  color: #334155;
  line-height: 1.65;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.fp-interp-text p { margin: 0 0 6px; }

.fp-topic-counter {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 10px;
}

/* ── Relação Intervalores & Grau de Ascensão ─────────────────── */

/* Sub-rótulo do primeiro nome, logo abaixo da vibração */
.fp-ri-primeiro-nome {
  font-size: 9px;
  color: #64748b;
  margin: -4px 0 12px;
}
.fp-ri-primeiro-nome strong { color: #1e293b; font-weight: 700; }

/* Estado "Sem Relação Intervalores" — texto sóbrio em itálico */
.fp-ri-vibracao-empty {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  font-style: italic;
  line-height: 1;
  margin-bottom: 10px;
}

/* Glass card (apenas o Grau de Ascensão, abaixo do texto interpretativo) */
.fp-glass-card {
  position: relative;
  background: rgba(168, 85, 247, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 6px;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.fp-glass-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.20);
}
.fp-glass-card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #7c3aed;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-glass-card-icon {
  font-size: 13px;
  filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.3));
}
.fp-glass-card-sub {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 6px;
}
.fp-glass-card-sub strong { color: #1e293b; font-weight: 700; }

.fp-glass-result-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  margin: 6px 0 10px;
  background: linear-gradient(135deg, #c084fc 0%, #7c3aed 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(168, 85, 247, 0.45);
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.35));
  letter-spacing: -0.02em;
}
.fp-glass-result-empty {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  margin: 10px 0 8px;
  font-style: italic;
}
.fp-glass-result-label {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.fp-glass-grau-rebaixado { color: #be123c; text-shadow: 0 0 16px rgba(190, 18, 60, 0.30); }
.fp-glass-grau-ascensao  { color: #059669; text-shadow: 0 0 16px rgba(5, 150, 105, 0.30); }
.fp-glass-grau-elevado   { color: #7c3aed; text-shadow: 0 0 16px rgba(168, 85, 247, 0.35); }

.fp-glass-keywords {
  font-size: 9px;
  color: #7c3aed;
  font-style: italic;
  text-align: center;
  margin-bottom: 6px;
}
.fp-glass-meaning {
  font-size: 9px;
  color: #334155;
  line-height: 1.6;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.fp-glass-meaning p { margin: 0 0 5px; }

.fp-glass-grau-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fp-glass-grau-pill {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.20);
  border-radius: 8px;
  padding: 3px 8px;
}
.fp-glass-grau-pill strong {
  color: #1e293b;
  font-weight: 800;
  margin-left: 4px;
}

/* ── Dias Favoráveis — calendário visual (simples, leve, elegante) ─── */
.fp-df-intro {
  font-size: 9.5px;
  color: #475569;
  line-height: 1.65;
  margin: 4px 0 14px;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.fp-df-intro strong { color: #7c3aed; font-weight: 700; }

/* Card wrapper: cabeçalho de mês/ano + grade dos dias */
.fp-df-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.fp-df-month-header {
  text-align: center;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f5f3ff;
  background: linear-gradient(180deg, #fdfcff 0%, #ffffff 100%);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.fp-df-month-name {
  font-size: 13px;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.02em;
}
.fp-df-month-sep {
  font-size: 13px;
  font-weight: 300;
  color: #d8b4fe;
  margin: 0 4px;
}
.fp-df-month-year {
  font-size: 13px;
  font-weight: 700;
  color: #6d28d9;
}

.fp-df-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 12px 16px 14px;
}
.fp-df-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 400;
  color: #cbd5e1;
  background: transparent;
  border-radius: 999px;
}
.fp-df-cell.is-fav {
  color: #6d28d9;
  font-weight: 700;
}

.fp-df-summary {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #ede9fe;
}
.fp-df-summary-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.fp-df-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fp-df-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 999px;
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* ── Desafios — card de alerta de saúde (PRD §6.3) ─────────────── */
.fp-alerta-saude {
  background: rgba(220, 53, 69, 0.10);
  border-left: 3px solid #dc3545;
  padding: 8px 12px;
  margin: 10px 0 14px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.18);
}
.fp-alerta-saude-title {
  font-size: 10px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.fp-alerta-saude-text {
  font-size: 9px;
  color: #334155;
  line-height: 1.6;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.fp-alerta-saude-text strong { color: #991b1b; font-weight: 700; }
.fp-alerta-saude-text em     { color: #7f1d1d; font-style: normal; font-weight: 600; }

/* ── Ciclos de Vida / Desafios — datas e regente exibidos como texto
   plano (mesma tipografia do corpo do texto interpretativo). Antes
   eram cards estilizados com fundo púrpura e box-shadow. */
.fp-ciclo-info {
  margin-top: 14px;
}
.fp-ciclo-info-label {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.fp-ciclo-info-row {
  font-size: 10px;
  color: #1e293b;
  line-height: 1.55;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.fp-ciclo-info-row strong { color: #1e293b; font-weight: 700; }

/* ── "Em breve" placeholder ────────────────────────────────────── */
.fp-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  text-align: center;
}
.fp-soon-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-soon-title { font-size: 12px; font-weight: 700; color: #1e293b; }
.fp-soon-sub   { font-size: 9px;  color: #94a3b8; }

/* ── Contracapa ────────────────────────────────────────────────── */
.fp-backcover-page {
  overflow: hidden;
}
.fp-backcover {
  width: 100%;
  height: 100%;
  /* Mesmo gradiente das capas de seção (.fp-section-cover) — coesão
     visual entre as "contra-capas" do livro. */
  background: linear-gradient(160deg, #0a0820 0%, #12103a 50%, #0a0820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Marca d'água: Árvore da Vida centrada, opacidade muito baixa.
   Cumpre o mesmo papel decorativo do número gigante (.fp-sc-bg-num)
   nas capas de seção. */
.fp-backcover-tree-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.22;
}
.fp-backcover-tree-watermark svg {
  width: 78%;
  height: 78%;
  max-width: 330px;
  max-height: 470px;
}
.fp-backcover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.fp-backcover-name {
  font-size: 20px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
.fp-backcover-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a78bfa;
}
.fp-backcover-author {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 4px;
}

/* ── Contracapa: mensagem de fechamento ────────────────────────── */
/* A Árvore fica mais discreta quando há texto por cima. */
.fp-backcover--closing .fp-backcover-tree-watermark { opacity: 0.10; }

.fp-closing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 42px;
  max-width: 360px;
}
.fp-closing-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #f1edff;
  margin: 0;
  width: 100%;
  text-align: left;  /* nome alinhado à esquerda, no mesmo eixo do parágrafo */
}
.fp-closing-lead {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 400;
  color: #cbd5e1;
  margin: 0;
  width: 100%;
  text-align: justify;
}
.fp-closing-divider {
  width: 54px;
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
}
.fp-closing-quote {
  position: relative;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: #e9e4ff;
  margin: 0;
  padding-top: 14px;
}
/* Aspa de abertura estilizada, grande e em violeta translúcido. */
.fp-closing-quote::before {
  content: '\201C';            /* “ */
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  font-size: 40px;
  line-height: 1;
  color: rgba(167, 139, 250, 0.55);
}
.fp-closing-latin {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8b7fb5;
  margin: 6px 0 0;
}

/* ── CTA da Degustação (página final da amostra pública) ─────────── */
/* Copy mais longa que a contracapa normal: compacta o espaçamento e o
   texto pra caber na altura fixa da página do flipbook. */
.fp-demo-cta {
  gap: 9px;
  max-width: 380px;
  padding: 0 34px;
}
.fp-demo-cta .fp-closing-title {
  text-align: center;
  font-size: 21px;
}
.fp-demo-cta .fp-closing-lead {
  font-size: 10.5px;
  line-height: 1.55;
}
.fp-demo-cta .fp-closing-divider { margin: 1px 0; }
.fp-demo-kicker {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0;
}
.fp-demo-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fp-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6);
  color: #fff;
}
.fp-demo-note {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  color: #9a92bf;
  margin: 0;
}

/* ── Capa de Seção ─────────────────────────────────────────────── */
.fp-section-cover {
  background: linear-gradient(160deg, #0a0820 0%, #12103a 50%, #0a0820 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 36px 32px;
  overflow: hidden;
  position: relative;
}
.fp-sc-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 10px;
}
.fp-sc-title {
  font-size: 21px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  margin-bottom: 18px;
}
.fp-sc-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  border-radius: 2px;
  margin-bottom: 18px;
}
.fp-sc-list { list-style: none; padding: 0; margin: 0; }
.fp-sc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9px;
  color: #94a3b8;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fp-sc-item:last-child { border-bottom: none; }
.fp-sc-item-name { color: #cbd5e1; }
.fp-sc-item-soon { color: #475569; font-style: italic; }
.fp-sc-item-pg   { color: #7c3aed; font-weight: 700; font-size: 8px; white-space: nowrap; }
/* número fantasma decorativo */
.fp-sc-bg-num {
  position: absolute;
  right: -8px;
  bottom: -28px;
  font-size: 150px;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Conteúdo Em Breve (dentro de .fp-content) ─────────────────── */
.fp-embreve {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 8px;
}
.fp-embreve-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.3);
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(99,102,241,0.05);
  margin-bottom: 4px;
}
.fp-embreve-icon  { color: rgba(99,102,241,0.18); }
.fp-embreve-title { font-size: 13px; font-weight: 800; color: #1e293b; }
.fp-embreve-desc  { font-size: 9px; color: #94a3b8; line-height: 1.65; max-width: 240px; }

/* ── Seção 5 · Arcanos & Tarô (conteúdo) ───────────────────────── */
.fp-arcanos-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.fp-arcanos-h1 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: -0.01em;
}
.fp-arcanos-h2 {
  font-size: 12.5px;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1.3;
  margin: 6px 0 2px;
  letter-spacing: -0.005em;
}
.fp-arcanos-h2--top { margin-top: 0; }
.fp-arcanos-h2-meta {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
}
.fp-arcanos-lede {
  font-size: 10px;
  color: #1e293b;
  line-height: 1.7;
  margin: 0;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(167,139,250,0.07), rgba(196,132,252,0.05));
  border-left: 3px solid rgba(167,139,250,0.6);
  border-radius: 4px;
}
.fp-arcanos-body {
  font-size: 9.5px;
  color: #334155;
  line-height: 1.75;
  margin: 0;
  text-align: justify;
}
.fp-arcanos-body strong { color: #0f172a; }

/* Meta inline (parênteses) na lista da capa de seção */
.fp-sc-item-meta {
  font-size: 0.78em;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-left: 4px;
}

/* ── Vocações Profissionais ─────────────────────────────────────── */
.fp-voc-block { margin-bottom: 14px; }
.fp-voc-num   { font-size: 40px; font-weight: 800; color: #2563eb; line-height: 1; margin-bottom: 10px; }
.fp-voc-num.master { color: #d97706; }
.fp-voc-row   { margin-bottom: 6px; }
.fp-voc-label { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 2px; }
.fp-voc-value { font-size: 9.5px; color: #334155; line-height: 1.55; }
.fp-voc-placeholder { font-size: 9px; color: #94a3b8; font-style: italic; }

/* ── Dropdown "Link do Livro" ───────────────────────────────────── */
.fb-link-wrapper {
  position: relative;
}

.fb-link-chevron {
  transition: transform 180ms ease;
}
.fb-link-wrapper.open .fb-link-chevron {
  transform: rotate(180deg);
}

.fb-link-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: rgba(10, 8, 22, 0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.65rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.fb-link-wrapper.open .fb-link-dropdown {
  display: flex;
}

/* Linha com URL + botão copiar */
.fb-link-url-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.fb-link-url-text {
  flex: 1;
  font-size: 0.72rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* exibe o final da URL (parte mais relevante) */
  direction: rtl;
  text-align: left;
  unicode-bidi: plaintext;
}

/* Feedback visual ao copiar */
#fb-copy-link.copied {
  color: #4ade80;
  border-color: rgba(74,222,128,0.35);
}

/* Botão "Abrir" — destaque primário */
.fb-link-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms;
  border: none;
  cursor: pointer;
}
.fb-link-open:hover {
  background: #6d28d9;
  color: #fff;
  text-decoration: none;
}
.fb-link-open:active {
  transform: scale(0.97);
}

/* ── Toggle "Compartilhar publicamente" no dropdown ──────────────── */
.fb-link-share-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.12);
  margin-bottom: 0.6rem;
}
.fb-link-share-label {
  display: flex; flex-direction: column; gap: 0.15rem;
  font-size: 0.78rem; color: var(--text-1, #e2e8f0);
  line-height: 1.3;
}
.fb-link-share-label strong { font-weight: 700; }
.fb-link-share-hint {
  font-size: 0.68rem; color: var(--text-3, #94a3b8);
  font-weight: 400;
}

/* Switch (estilo iOS) */
.fb-link-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.fb-link-switch input { opacity: 0; width: 0; height: 0; }
.fb-link-switch-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  transition: all 200ms ease;
}
.fb-link-switch-track::before {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: all 200ms cubic-bezier(0.4,0,0.2,1);
}
.fb-link-switch input:checked + .fb-link-switch-track {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  border-color: transparent;
}
.fb-link-switch input:checked + .fb-link-switch-track::before {
  left: 18px;
  background: #fff;
}
.fb-link-switch input:disabled + .fb-link-switch-track { opacity: 0.55; cursor: wait; }

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .fb-toolbar-right .fb-btn span { display: none; }
  .fb-arrow { width: 36px; height: 36px; }
  .fp-cover-title { font-size: 16px; }
  .fp-vibracao-number { font-size: 28px; }
  .fp-inner { padding: 18px 20px 14px; }
  .fb-link-dropdown { right: -60px; width: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   MARCA-TEXTO — FlipBook Highlights
   ═══════════════════════════════════════════════════════════════ */

/* ── Spans de highlight ──────────────────────────────────────── */
.user-highlight {
  border-radius: 3px;
  padding: 0 1px;
  cursor: pointer;
  transition: filter 100ms;
}
.user-highlight:hover { filter: brightness(0.85); }

/* Cores individuais */
.highlight-yellow { background-color: #ffff00 !important; color: #000 !important; }
.highlight-green  { background-color: #00ff00 !important; color: #000 !important; }
.highlight-blue   { background-color: #00bfff !important; color: #000 !important; }
.highlight-pink   { background-color: #ff69b4 !important; color: #000 !important; }
.highlight-orange { background-color: #ffa500 !important; color: #000 !important; }
.highlight-purple { background-color: #B94CE1 !important; color: #fff !important; }
.highlight-red    { background-color: #FF3131 !important; color: #fff !important; }

/* Pisca ao navegar pelo modal até o highlight */
@keyframes hl-pulse {
  0%, 100% { filter: none; }
  50%       { filter: brightness(0.6) saturate(1.8); }
}
.user-highlight.hl-pulse { animation: hl-pulse 0.55s ease 3; }

/* ── Paleta de cores (flutuante) ─────────────────────────────── */
.hl-color-palette {
  position: fixed;
  z-index: 10001;
  background: rgba(22, 17, 34, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.hl-color-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms;
}
.hl-color-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ── Ícone de lixeira (ao clicar em highlight existente) ─────── */
.hl-delete-icon {
  position: fixed;
  z-index: 10001;
  background: rgba(22, 17, 34, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 30px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #C084FC;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 150ms;
  user-select: none;
}
.hl-delete-icon:hover {
  background: rgba(127, 0, 255, 0.3);
  color: #fff;
}

/* ── Modal de histórico ─────────────────────────────────────── */
#hl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;             /* toggled to flex by JS */
  align-items: center;
  justify-content: center;
}
#hl-modal.open { display: flex; }

#hl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hl-modal-box {
  position: relative;
  width: min(600px, 96vw);
  max-height: 82vh;
  background: #13101f;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.hl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(59, 30, 109, 0.5);
  flex-shrink: 0;
}
.hl-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
#hl-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 150ms;
}
#hl-modal-close:hover { color: #e2e8f0; }

#hl-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem;
}

#hl-modal-pagination {
  padding: 0.7rem 1.5rem;
  border-top: 1px solid rgba(59, 30, 109, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Itens da lista de histórico ────────────────────────────── */
.hl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(59, 30, 109, 0.2);
}
.hl-item:last-child { border-bottom: none; }

.hl-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: #ffd700;
  border: 1px solid rgba(255, 255, 0, 0.4);
  box-shadow: 0 0 4px rgba(255, 255, 0, 0.3);
}

.hl-item-body   { flex: 1; min-width: 0; }
.hl-item-text   { font-size: 0.8rem;  color: #e2e8f0; font-style: italic; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-item-meta   { font-size: 0.68rem; color: #64748b; }

.hl-item-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}
.hl-btn-goto {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #C084FC;
  cursor: pointer;
  transition: all 120ms;
}
.hl-btn-goto:hover { background: rgba(168, 85, 247, 0.22); }
.hl-btn-remove {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  transition: all 120ms;
}
.hl-btn-remove:hover { background: rgba(239, 68, 68, 0.22); }

/* Paginação do modal */
.hl-pag-info  { font-size: 0.72rem; color: #64748b; }
.hl-pag-btns  { display: flex; gap: 4px; }
.hl-pag-btn {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: #C084FC;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 120ms;
}
.hl-pag-btn:hover       { background: rgba(168, 85, 247, 0.2); }
.hl-pag-btn:disabled    { opacity: 0.35; cursor: not-allowed; }
.hl-pag-btn.active      { background: rgba(168, 85, 247, 0.3); border-color: rgba(168, 85, 247, 0.7); font-weight: 700; }

/* Estado vazio no modal */
.hl-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.7;
}
.hl-empty span { display: block; font-size: 0.75rem; margin-top: 0.5rem; color: #374151; }

/* Ícone de marca-texto na toolbar do flipbook */
#fb-btn-highlights {
  position: relative;
}
#fb-hl-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  background: #ffd700;
  color: #1e1e2e;
  border-radius: 7px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   Triângulos Numerológicos — Seção 6
   ═══════════════════════════════════════════════════════════════════════ */

/* Wrapper do SVG: centraliza horizontalmente */
.fp-tri-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 8px 0 12px;
  overflow: visible;
}

/* SVG do triângulo */
.fp-tri-svg {
  max-width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Letras do nome no cabeçalho do SVG */
.fp-tri-letra {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: 700;
  fill: #475569;
  letter-spacing: 0.5px;
}

/* Dígitos do triângulo (estado padrão) */
.fp-tri-cell {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  fill: #1e293b;
}

/* Modo compacto — ativado quando o nome (sem espaços) tem > 25 letras.
   A geometria do SVG já é menor (cell 11×13); aqui ajustamos apenas a
   tipografia para manter legibilidade proporcional. */
.fp-tri-svg--compact .fp-tri-cell  { font-size: 8px; }
.fp-tri-svg--compact .fp-tri-letra { font-size: 7px; letter-spacing: 0.3px; }

/* Lista linear de Arcanos Dominantes (abaixo do triângulo). */
.fp-triv2-arcanos-block {
  margin: 6px 4px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-triv2-arcanos-title {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-bottom: 1px;
}
.fp-triv2-arcanos-block .fp-triv2-arcanos-list + .fp-triv2-arcanos-list {
  margin-top: 1px;
}
.fp-triv2-arcanos-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 4px;
  font-size: 10px;
  line-height: 1.5;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.fp-triv2-arcano-item {
  color: #475569;
  padding: 0 2px;
}
.fp-triv2-arcano-item.is-current {
  color: #b45309;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fp-triv2-arcano-sep {
  color: #cbd5e1;
}

/* Vértice = arcano regente */
.fp-tri-regente-halo {
  fill: rgba(168, 85, 247, 0.18);
  stroke: rgba(168, 85, 247, 0.6);
  stroke-width: 1;
}
.fp-tri-cell-regente {
  fill: #7c3aed;
  font-weight: 700;
}

/* Arcano dominante atual (par de dígitos da 1ª linha) */
.fp-tri-cell-dominante {
  fill: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

/* Dígitos dentro de sequências negativas */
.fp-tri-cell-seqneg {
  fill: #dc2626;
  font-weight: 700;
}

/* Dígitos dentro de sequências especiais */
.fp-tri-cell-seqesp {
  fill: #2563eb;
  font-weight: 700;
}

/* Retângulos "run" sob as sequências (fundo suave) */
.fp-tri-run {
  opacity: 0.18;
}
.fp-tri-run-negativa {
  fill: #dc2626;
}
.fp-tri-run-especial {
  fill: #2563eb;
}

/* ── Resumo (regente + dominante atual) ────────────────────────────── */
.fp-tri-resumo {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin: 10px 0 14px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(244,114,182,0.04));
  border-radius: 8px;
  border: 1px solid rgba(168,85,247,0.18);
}
.fp-tri-resumo-item {
  text-align: center;
  flex: 1;
}
.fp-tri-resumo-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 2px;
}
.fp-tri-resumo-valor {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fp-tri-resumo-regente {
  color: #7c3aed;
}
.fp-tri-resumo-dominante {
  color: #b45309;
}
.fp-tri-resumo-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 3px;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   Triângulos — Layout v2 (Vida)
   Estética sutil/elegante: tipografia compacta, hierarquia clara,
   accordions discretos. Reaproveita .fp-banner / .fp-vibracao-* etc.
   ══════════════════════════════════════════════════════════════════ */

.fp-triv2-content { gap: 0; }

/* Banner com botão de ajuda ("?") à direita */
.fp-triv2-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fp-triv2-banner-title { flex: 1; }
.fp-triv2-help {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.45);
  background: #fff;
  color: #6366f1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, color .15s, transform .15s;
}
.fp-triv2-help:hover {
  background: #6366f1;
  color: #fff;
  transform: scale(1.08);
}
.fp-triv2-help:focus-visible {
  outline: 2px solid rgba(99,102,241,0.5);
  outline-offset: 2px;
}

/* Bloco Arcano Dominante (label + número + palavras-chave) */
.fp-triv2-dom { margin-bottom: 6px; }
.fp-triv2-dom-label { margin-bottom: 0; }
.fp-triv2-dom-num {
  font-size: 34px;
  color: #6366f1;
  margin-bottom: 4px;
}
.fp-triv2-dom-kw {
  font-size: 9px;
  color: #475569;
  margin-bottom: 8px;
}
.fp-triv2-dom-kw-label {
  font-weight: 700;
  color: #1e293b;
}

/* Linha de info (idade · ciclo) */
.fp-triv2-info {
  font-size: 8.5px;
  color: #64748b;
  margin: 4px 0 2px;
  letter-spacing: 0.01em;
}
.fp-triv2-info strong { color: #1e293b; font-weight: 700; }

/* Wrapper do SVG — um pouco mais compacto que o original */
.fp-triv2-svg-wrap {
  margin: 4px 0 8px;
  text-align: center;
}

/* Blocos texto (Regente + Dominante one-liner) */
.fp-triv2-block { margin: 6px 0 4px; }
.fp-triv2-block-title {
  font-size: 9.5px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 2px;
}
.fp-triv2-block-title strong { font-weight: 800; color: #0f172a; }
.fp-triv2-block-sub {
  font-weight: 400;
  color: #475569;
}
.fp-triv2-block-body {
  font-size: 9px;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 4px;
}
.fp-triv2-empty {
  color: #94a3b8;
  font-style: italic;
}

/* ── Accordions (.fp-acc) ─────────────────────────────────────────
   Padrão unificado: card azul-claro inspirado em Harmonia Conjugal +
   variante "Significado do Triângulo". Todos os accordions seguem
   este visual. Iniciam fechados (exceto onde marcado `open`).
   ──────────────────────────────────────────────────────────────── */
.fp-acc {
  margin: 4px 0;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.fp-acc[open] {
  border-color: #0ea5e9;
  box-shadow: 0 1px 4px rgba(14,165,233,0.12);
  background: #f0f9ff;
}
.fp-acc-summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  transition: background .15s;
}
.fp-acc-summary::-webkit-details-marker { display: none; }
.fp-acc-summary:hover { background: #e0f2fe; }
.fp-acc-summary:focus-visible {
  outline: 2px solid rgba(99,102,241,0.45);
  outline-offset: -2px;
}
.fp-acc[open] > .fp-acc-summary {
  border-bottom: 1px solid rgba(14,165,233,0.18);
}
.fp-acc-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #0369a1;
  line-height: 1.3;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 1;
}
.fp-acc-title strong { font-weight: 800; color: #0c4a6e; }
.fp-acc-title-meta {
  font-size: 8.5px;
  font-weight: 400;
  color: #7dd3fc;
  font-style: italic;
}
.fp-acc-chevron {
  color: #38bdf8;
  transition: transform .22s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.fp-acc[open] > .fp-acc-summary > .fp-acc-chevron {
  transform: rotate(-180deg);
  color: #0ea5e9;
}
.fp-acc-body {
  font-size: 9px;
  color: #0f172a;
  line-height: 1.65;
  padding: 7px 10px 8px;
  text-align: justify;
  background: #f8fcff;
  animation: fp-acc-slide .2s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes fp-acc-slide {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fp-acc-badge {
  display: inline-block;
  font-size: 7.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  line-height: 1.5;
  vertical-align: middle;
}
.fp-acc-badge-neg { background: #fee2e2; color: #b91c1c; }
.fp-acc-badge-esp { background: #dbeafe; color: #1d4ed8; }

/* Variante "Large" — tipografia maior, mais respiro.
   Usada quando o conteúdo está distribuído em mais espaço (ex.: triângulos). */
.fp-acc-lg {
  margin: 6px 0;
  border-radius: 8px;
}
.fp-acc-lg > .fp-acc-summary {
  padding: 10px 14px;
}
.fp-acc-lg > .fp-acc-summary > .fp-acc-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.35;
}
.fp-acc-lg > .fp-acc-summary > .fp-acc-title strong { font-weight: 800; }
.fp-acc-lg > .fp-acc-body {
  font-size: 10px;
  line-height: 1.7;
  padding: 11px 14px 13px;
}
.fp-acc-lg .fp-acc-title-meta { font-size: 10px; }
.fp-acc-lg .fp-acc-badge { font-size: 8.5px; padding: 2px 7px; }

/* Todas as variantes (regente/dominante/deriv/neg/esp/significado) usam o
   mesmo card azul-claro definido em .fp-acc. Mantemos os hooks de classe
   por tipo caso futuramente sejam necessárias diferenciações sutis. */

.fp-triv2-seq-item { margin: 2px 0; }
.fp-triv2-seq-neg-num { color: #dc2626; }
.fp-triv2-seq-esp-num { color: #2563eb; }

/* ══════════════════════════════════════════════════════════════════
   Modal "Os Arcanos" (fp-modal)
   ══════════════════════════════════════════════════════════════════ */
.fp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.fp-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.fp-modal[hidden] { display: none; }
.fp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 36, 0.55);
  backdrop-filter: blur(3px);
}
.fp-modal-dialog {
  position: relative;
  background: #fefaff;
  border: 1px solid #ede2ff;
  border-radius: 22px;
  box-shadow: 0 30px 70px -10px rgba(46, 26, 58, 0.45),
              0 0 0 1px rgba(217, 180, 255, 0.10);
  width: min(540px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #3c2842;
}
.fp-modal-header {
  background: linear-gradient(135deg, #2e1a3a 0%, #1a0f24 100%);
  color: #f0e6ff;
  padding: 16px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(200, 162, 255, 0.18);
}
.fp-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.1;
  color: #f0e6ff;
}
.fp-modal-close {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(217,180,255,0.4);
  background: rgba(255,255,255,0.06);
  color: #e9d5ff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, transform .15s;
}
.fp-modal-close:hover {
  background: rgba(217,180,255,0.85);
  color: #2a1738;
  transform: translateY(-50%) scale(1.05);
}
.fp-modal-body {
  padding: 20px 24px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.65;
  color: #3c2842;
  background: #fefaff;
}
.fp-modal-section {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid #ede2ff;
}
.fp-modal-section:last-child { margin-bottom: 0; }
.fp-modal-section strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: #6d28d9;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.fp-modal-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #9b79c2;
  font-size: 0.85em;
  letter-spacing: 0.02em;
}
.fp-modal-footer {
  padding: 12px 22px 18px;
  display: flex;
  justify-content: center;
  background: #faf6ff;
  border-top: 1px solid #efe6ff;
}
.fp-modal-btn {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  color: #f0e6ff;
  border: 0;
  padding: 8px 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.32);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.fp-modal-btn:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.42);
}

body.fp-modal-lock { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════
   TRIÂNGULOS — LAYOUT V3 (Design Violeta / Transcendência)
   Estética baseada em paleta violeta profunda + Cormorant Garamond
   para títulos. Adaptado às proporções compactas do flipbook A5.
   ══════════════════════════════════════════════════════════════════ */

.fp-triv3-inner {
  padding: 0 !important;          /* hero é "full-bleed" lateral */
  background: #fefaff;
}

/* ── Hero (cabeçalho gradient violeta profundo) ───────────────── */
.fp-triv3-hero {
  position: relative;
  background: linear-gradient(135deg, #2e1a3a 0%, #1a0f24 100%);
  padding: 16px 22px 14px;
  color: #e9e2f0;
}
.fp-triv3-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.05;
  color: #f0e6ff;
  margin: 0 0 2px;
}
.fp-triv3-hero-meta {
  font-size: 8.5px;
  opacity: 0.86;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 0;
  color: #d9c9e8;
  line-height: 1.5;
}
.fp-triv3-hero-nome  { font-weight: 700; color: #d9b4ff; letter-spacing: 0.02em; }
.fp-triv3-hero-dot   { color: rgba(217,180,255,0.55); }
.fp-triv3-hero-dim   { color: rgba(217,180,255,0.25); margin: 0 2px; }

.fp-triv3-hero-help {
  position: absolute;
  top: 14px; right: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(217,180,255,0.5);
  background: rgba(255,255,255,0.06);
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, color .15s, transform .15s;
}
.fp-triv3-hero-help:hover {
  background: rgba(217,180,255,0.85);
  color: #2a1738;
  transform: scale(1.05);
}

/* ── Stats grid (cards lavanda) ───────────────────────────────── */
.fp-triv3-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 4px;
}

.fp-triv3-stat {
  flex: 1 1 90px;
  background: #f7f3ff;
  border: 1px solid #e4d5f5;
  border-radius: 16px;
  padding: 8px 10px 9px;
  min-width: 90px;
}
.fp-triv3-stat-label {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #8a6fa8;
}
.fp-triv3-stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #381c4a;
  line-height: 1;
  margin-top: 2px;
}
.fp-triv3-stat-detail {
  font-size: 8px;
  color: #7b5f99;
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Section wrapper (triângulo + accordions) ─────────────────── */
.fp-triv3-section {
  padding: 12px 18px 8px;
}
.fp-triv3-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: #341f44;
  border-left: 3px solid #b77eff;
  padding-left: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.fp-triv3-triangle-wrap {
  background: #fdfaff;
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: inset 0 0 0 1px rgba(160, 120, 200, 0.18),
              0 4px 10px rgba(0,0,0,0.02);
  text-align: center;
}
.fp-triv3-triangle-wrap .fp-tri-svg { margin: 0 auto; }

/* ── Lista de Arcanos Dominantes (chips) ─────────────────────── */
.fp-triv3-arcana-list {
  background: #fcf9ff;
  border: 1px solid #ede2ff;
  border-radius: 12px;
  padding: 5px 10px 6px;
  margin: 4px 18px 8px;
}
.fp-triv3-arcana-title {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #9b79c2;
  margin: 0 0 3px;
  line-height: 1.3;
}
.fp-triv3-arcana-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #b29ad6;
}
.fp-triv3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin-bottom: 3px;
}
.fp-triv3-chip {
  background: #f0e8fc;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 500;
  color: #3e2856;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.fp-triv3-chip-strong {
  background: #c7a8ff;
  color: #231a34;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(155, 93, 229, 0.32);
}

/* ── Accordions v3 ────────────────────────────────────────────── */
.fp-triv3-acc {
  background: #fdfaff;
  border: 1px solid #ede2ff;
  border-radius: 14px;
  margin: 6px 0;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.fp-triv3-acc[open] {
  border-color: #b77eff;
  box-shadow: 0 1px 6px rgba(155, 93, 229, 0.12);
}
.fp-triv3-acc-summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  transition: background .15s;
}
.fp-triv3-acc-summary::-webkit-details-marker { display: none; }
.fp-triv3-acc-summary:hover { background: #f5efff; }
.fp-triv3-acc[open] > .fp-triv3-acc-summary {
  border-bottom: 1px solid rgba(183, 126, 255, 0.25);
}
.fp-triv3-acc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: #3e2856;
  letter-spacing: 0.01em;
  flex: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.fp-triv3-acc-title strong {
  font-weight: 700;
  color: #6d28d9;
}
.fp-triv3-acc-meta {
  font-size: 9.5px;
  color: #9b79c2;
  font-style: italic;
  font-family: 'Inter', sans-serif;
}
.fp-triv3-acc-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12.5px;
  font-weight: 500;
  font-style: italic;
  color: #6d28d9;
}
.fp-triv3-acc-chevron {
  color: #9b79c2;
  transition: transform .22s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.fp-triv3-acc[open] > .fp-triv3-acc-summary > .fp-triv3-acc-chevron {
  transform: rotate(-180deg);
  color: #b77eff;
}
.fp-triv3-acc-body {
  font-size: 9px;
  color: #3c2842;
  line-height: 1.7;
  padding: 10px 14px 12px;
  text-align: justify;
  background: #fffaff;
  animation: fp-acc-slide .2s cubic-bezier(0.4,0,0.2,1) both;
}
.fp-triv3-acc-badge {
  display: inline-block;
  font-size: 7.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
  background: #341f44;
  color: #e2ccff;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}
.fp-triv3-acc-badge-neg { background: #6b1b3a; color: #ffd5e0; }
.fp-triv3-acc-badge-esp { background: #1e3a8a; color: #d1e0ff; }

.fp-triv3-seq-item { margin: 4px 0; }
.fp-triv3-seq-num { color: #b91c1c; font-weight: 800; }
.fp-triv3-seq-num--esp { color: #1d4ed8; }
.fp-triv3-empty { color: #b29ad6; font-style: italic; }

/* ── Footer v3 ────────────────────────────────────────────────── */
.fp-triv3-footer {
  padding: 10px 22px 12px;
  font-size: 7px;
  text-align: center;
  color: #b29ad6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  background: #faf6ff;
  position: relative;
}
.fp-triv3-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d8c4f0 50%, transparent 100%);
}
.fp-triv3-footer .fp-footer-credit { letter-spacing: 0.04em; }

/* ══════════════════════════════════════════════════════════════════
   FLIPBOOK — TEMA V3 GLOBAL (Design Violeta / Transcendência)
   Overrides para alinhar todas as páginas do flipbook à estética v3:
     · Tipografia: Cormorant Garamond para títulos display
     · Paleta violeta profunda (#2e1a3a → #b77eff → lavanda)
     · Cantos arredondados generosos
     · Backgrounds em lavanda muito claro
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. Capas de Seção: gradient violeta + serif elegante ─────── */
.fp-section-cover {
  background: linear-gradient(160deg, #2e1a3a 0%, #1a0f24 55%, #2e1a3a 100%);
  padding: 38px 30px;
}
.fp-sc-kicker {
  color: #d9b4ff;
  letter-spacing: 0.28em;
}
.fp-sc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #f0e6ff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.fp-sc-divider {
  background: linear-gradient(90deg, #b77eff 0%, #c7a8ff 100%);
  width: 44px;
  height: 1.5px;
}
.fp-sc-item {
  border-bottom: 1px solid rgba(217,180,255,0.10);
  color: #b29ad6;
}
.fp-sc-item-name { color: #e9e2f0; }
.fp-sc-item-pg   { color: #c7a8ff; }
.fp-sc-item-meta { color: rgba(217,180,255,0.45); }
.fp-sc-bg-num {
  color: rgba(217,180,255,0.05);
}

/* ── 2. Banner de Categoria/Tópico: estilo violeta ────────────── */
.fp-banner {
  background: #fcf9ff;
  border-left: 3px solid #b77eff;
  color: #341f44;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  border-radius: 0 10px 10px 0;
  padding: 8px 14px;
}
.fp-banner-karma {
  background: #fef3e8;
  border-left-color: #d97706;
}
.fp-categoria-label {
  color: #9b79c2;
  letter-spacing: 0.2em;
}

/* ── 3. Bloco Vibração (label + número grande + palavras-chave) ──*/
.fp-vibracao-label {
  color: #9b79c2;
  letter-spacing: 0.16em;
}
.fp-vibracao-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: #381c4a;
  font-size: 42px;
}
.fp-vibracao-number.master { color: #b45309; }
.fp-keywords-label { color: #341f44; }
.fp-keywords-list  { color: #7b5f99; }

/* Cores favoráveis: chips com estrelinha colorida */
.fp-cores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.fp-cor-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border: 1px solid rgba(123, 95, 153, 0.18);
  border-radius: 10px;
  background: #fcf9ff;
  font-size: 9.5px;
  color: #4a3464;
  line-height: 1.2;
}
.fp-cor-estrela {
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 1.5px rgba(0, 0, 0, 0.18);
}
.fp-cor-chip--sem {
  font-style: italic;
  color: #7b5f99;
}

/* ── 4. Significado do Tópico (caixa lavanda) ─────────────────── */
.fp-significado {
  background: #fcf9ff;
  border-left: 3px solid #b77eff;
  border-radius: 0 10px 10px 0;
  padding: 8px 14px;
}
.fp-significado-label {
  color: #6d28d9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 8.5px;
  font-weight: 700;
}
.fp-significado-text { color: #3c2842; }

/* ── 5. Rótulo de seção + texto interpretativo ────────────────── */
.fp-section-label {
  color: #9b79c2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 8.5px;
}
.fp-interp-text { color: #3c2842; }
.fp-interp-text strong { color: #381c4a; }

/* ── 6. Página de Apresentação ────────────────────────────────── */
.fp-apres-doc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #341f44;
}
.fp-apres-hello {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: #341f44;
}
.fp-apres-bio { color: #3c2842; }
.fp-apres-section-label {
  color: #9b79c2;
  letter-spacing: 0.14em;
}
.fp-apres-section-text { color: #3c2842; }
.fp-apres-sign strong { color: #381c4a; }

/* ── 7. Página de Introdução ──────────────────────────────────── */
.fp-intro-body { color: #3c2842; }
.fp-intro-sign { color: #7b5f99; }
.fp-intro-sign strong { color: #381c4a; }

/* ── 8. Índice (sumário) ──────────────────────────────────────── */
.fp-indice-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: #341f44;
}
.fp-indice-group-title {
  color: #9b79c2;
  letter-spacing: 0.05em;
}
.fp-indice-item { color: #3c2842; }
.fp-indice-item .dots {
  border-bottom-color: #d8c4f0;
}
.fp-indice-soon { color: #b29ad6; }

/* ── 9. Capa principal: ajuste sutil no header ────────────────── */
.fp-cover-overlay,
.fp-cover-main-title { letter-spacing: -0.5px; }

/* ── 10. Header do consulente (linha única) ───────────────────── */
.fp-header { border-bottom-color: #ede2ff; }
.fp-header-line { color: #7b5f99; }
.fp-header-line strong { color: #341f44; }
.fp-header-sep { color: #d8c4f0; }

/* ── 11. Footer ───────────────────────────────────────────────── */
.fp-footer { border-top-color: #efe6ff; }
.fp-footer-credit { color: #b29ad6; }
.fp-page-number { color: #9b79c2; font-weight: 700; }

/* ── 12. Dias Favoráveis — alinha paleta ao tema ──────────────── */
.fp-df-card { border-color: #ede2ff; }
.fp-df-month-name, .fp-df-month-year { color: #6d28d9; }
.fp-df-month-sep { color: #c7a8ff; }
.fp-df-cell.is-fav { color: #6d28d9; }
.fp-df-pill { background: #f0e8fc; color: #6d28d9; }
.fp-df-summary-label { color: #9b79c2; }

/* ── 13. Voc/Profissões/Cores: contêineres harmonizados ───────── */
.fp-voc-num { color: #6d28d9; }
.fp-voc-num.master { color: #b45309; }

/* ── 14. Arcanos & Tarô: tipografia harmonizada ───────────────── */
.fp-arcanos-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: #341f44;
  border-bottom-color: #ede2ff;
}
.fp-arcanos-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  color: #9b79c2;
}
.fp-arcanos-h2-meta {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 12px;
  color: #b29ad6;
}
.fp-arcanos-lede {
  background: linear-gradient(135deg, rgba(183,126,255,0.07), rgba(199,168,255,0.05));
  border-left-color: #b77eff;
  color: #3c2842;
}
.fp-arcanos-body { color: #3c2842; }
.fp-arcanos-body strong { color: #381c4a; }

/* ── 15. Em-Breve placeholder (caso ainda apareça) ────────────── */
.fp-embreve-badge {
  color: #6d28d9;
  border-color: rgba(183,126,255,0.4);
  background: rgba(183,126,255,0.07);
}
.fp-embreve-title { color: #341f44; }
.fp-embreve-desc  { color: #9b79c2; }

/* ════════════════════════════════════════════════════════════════════
   MODO DE IMPRESSÃO (export PDF via Playwright)
   ────────────────────────────────────────────────────────────────────
   Quando a view envia is_print_mode=True (via ?_pdf=1), o workspace
   recebe a classe .flipbook-print. Aqui desligamos todo o "chrome" do
   leitor (toolbar, setas, zoom, modais, CTAs, sidebar) e empilhamos
   as .flipbook-page como folhas independentes no tamanho exato do
   desenho (420×594px = razão A4 1:1.414). Playwright gera o PDF
   honrando @page via preferCSSPageSize.
   ═════════════════════════════════════════════════════════════════ */

@page {
  size: 111.125mm 157.163mm;
  margin: 0;
}

.flipbook-print {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.flipbook-print .fb-toolbar,
.flipbook-print .fb-arrows,
.flipbook-print .fb-arrow,
.flipbook-print .fb-zoom-panel,
.flipbook-print .fb-sidebar,
.flipbook-print #hl-modal,
.flipbook-print .fp-modal,
.flipbook-print #fb-cta-overlay,
.flipbook-print #fb-loading,
.flipbook-print .fb-loading-overlay {
  display: none !important;
}

.flipbook-print .fb-stage {
  display: block !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.flipbook-print .fb-book-centering,
.flipbook-print #flipbook-container {
  width: auto !important;
  height: auto !important;
  display: block !important;
  position: static !important;
  overflow: visible !important;
  transform: none !important;
}

.flipbook-print .flipbook-page {
  width: 420px !important;
  height: 594px !important;
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
  /* Cada página força quebra ANTES de si, exceto a primeira. Isso evita
     o "page-break pendurado" no final do documento que o Chromium
     materializa como folha em branco quando usamos page-break-after. */
  page-break-before: always;
  break-before: page;
  page-break-after: auto;
  break-after: auto;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
.flipbook-print .flipbook-page:first-child {
  page-break-before: auto;
  break-before: auto;
}

.flipbook-print .flipbook-page.odd,
.flipbook-print .flipbook-page.even {
  box-shadow: none !important;
}

.flipbook-print .flipbook-page,
.flipbook-print #flipbook-container {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Cabeçalho da página em modo print: a largura útil (420px - padding) é
   menor do que na visualização interativa em desktop, então o texto
   "Nome · idade · data · gerado em" estourava com reticências. Reduzimos
   um pouco a fonte e relaxamos o nowrap para garantir que tudo caiba. */
.flipbook-print .fp-header-line {
  font-size: 7.5px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  overflow: visible !important;
}
.flipbook-print .fp-header-line .fp-header-sep {
  margin: 0 4px !important;
}

/* As páginas dos Triângulos v3 são paginadas pelo splitter
   `splitTriangleV3Page` (no extra_js), que clona hero + footer em cada
   continuação para garantir comportamento Word-like: header e footer
   sempre presentes em todas as PDF pages do livro. */

/* ── "Dias Favoráveis" no PDF: calendário compacto + centralizado ──
   Online o calendário ocupa a largura toda do .fp-content. No PDF a
   página é menor e o calendário desproporcional. Limitamos a largura
   do card E do resumo "Seus dias favoráveis" (com seu separador) para
   ambos ficarem alinhados e centralizados. */
.flipbook-print .fp-df-card {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.flipbook-print .fp-df-month-header {
  padding: 10px 14px 8px;
}
.flipbook-print .fp-df-month-name,
.flipbook-print .fp-df-month-year,
.flipbook-print .fp-df-month-sep {
  font-size: 12px;
}
.flipbook-print .fp-df-calendar {
  gap: 4px;
  padding: 10px 12px 12px;
}
.flipbook-print .fp-df-cell {
  font-size: 9px;
}
.flipbook-print .fp-df-summary {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.flipbook-print .fp-df-summary-label {
  font-size: 8.5px;
  text-align: center;
}
.flipbook-print .fp-df-summary-list {
  justify-content: center;
}
.flipbook-print .fp-df-pill {
  min-width: 20px;
  height: 18px;
  padding: 0 7px;
  font-size: 9px;
}

/* ── Triângulos v3 (PDF): lista de arcanos ao LADO dos stats ───────
   Online o "Arcanos Dominantes" fica abaixo do SVG do triângulo. Em
   nomes longos (ex.: Edson Arantes do Nascimento) o SVG ocupa toda a
   largura, e os chips são empurrados para fora da página. Em PRINT
   transformamos o layout em grid: stats à esquerda + chips à direita,
   no topo; SVG e footer abaixo, em linhas full-width.
   Só afeta a primeira página do triângulo (a que tem .fp-triv3-stats);
   a segunda página (Leituras com accordions) segue layout default. */
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 130px;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "hero hero"
    "stats arcana"
    "triangle triangle"
    "footer footer";
  height: 100% !important;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-triv3-hero { grid-area: hero; }
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-triv3-stats {
  grid-area: stats;
  padding-right: 6px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-triv3-arcana-list {
  grid-area: arcana;
  margin: 14px 14px 4px 0;
  align-self: start;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-triv3-section { grid-area: triangle; }
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-footer,
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) > .fp-triv3-footer { grid-area: footer; }

/* Stats compactos (para caber 3 lado a lado no espaço reduzido) */
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-stat {
  flex: 1 1 70px;
  min-width: 70px;
  padding: 5px 7px 6px;
  border-radius: 12px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-stat-label {
  font-size: 6px;
  letter-spacing: 1px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-stat-value {
  font-size: 18px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-stat-detail {
  font-size: 6.5px;
  line-height: 1.3;
  margin-top: 2px;
}

/* Chips compactos (lista vertical no canto direito) */
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-arcana-list {
  padding: 5px 8px 6px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-arcana-title {
  font-size: 6px;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-arcana-sub {
  font-size: 5.5px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-chips {
  gap: 2px;
  justify-content: flex-start;
  margin-bottom: 2px;
}
.flipbook-print .fp-triv3-inner:has(.fp-triv3-stats) .fp-triv3-chip {
  font-size: 6.5px;
  padding: 0 5px;
  line-height: 1.5;
}
