/* ============================================================
   SpartAds — Apresentação Comercial (motor reutilizável)
   Design tokens + glass/gradient system
   ============================================================ */

:root {
  --page-bg: #000000;
  --bg-deep: #020510;
  --bg-deep-2: #06101f;
  --surface: #10141f;
  --surface-2: #1a1f2e;
  --border: #2a3145;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-dimmer: rgba(255, 255, 255, 0.42);
  --brand: #007afe;
  --brand-soft: rgba(0, 122, 254, 0.16);
  --accent: #dcea20;
  --accent-soft: rgba(220, 234, 32, 0.14);
  --danger: #ff4d4d;

  --stage-w: 1280px;
  --stage-h: 720px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--page-bg);
  overflow: hidden;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ── Contentor de topo — é este que entra em ecrã inteiro.
   A cor de fundo (uma das 3 abaixo) é trocada em JS para
   acompanhar o tema do slide activo, para nunca aparecer uma
   "moldura" fora do palco. Cor sólida (sem gradiente) de propósito:
   um gradiente percentual desalinha na fronteira porque o palco
   e este contentor têm alturas diferentes. ─────────────────── */
#app-root {
  position: fixed;
  inset: 0;
}

#app-root.backdrop-dark { background: var(--bg-deep); }
#app-root.backdrop-light { background: #f2f4f8; }
#app-root.backdrop-blue { background: #0068d6; }

/* ── Palco (stage) — canvas fixo 1280x720, escalado por JS.
   Mostra sempre o slide inteiro, sem cortar conteúdo ──────── */
#stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  flex: none;
  overflow: hidden;
}

/* ── Slides ─────────────────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 64px 88px;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-deep);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-dark {
  background-image:
    radial-gradient(1200px 650px at 85% -15%, rgba(0, 122, 254, 0.46), transparent 56%),
    radial-gradient(800px 550px at -10% 115%, rgba(0, 122, 254, 0.24), transparent 60%),
    linear-gradient(165deg, rgba(6, 16, 31, 0.45) 0%, rgba(2, 5, 16, 0.55) 60%),
    url("../assets/bg-slides.png");
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  color: var(--text);
}

.slide-light {
  background: linear-gradient(180deg, #fbfbfd 0%, #f2f4f8 100%);
  color: #0b0e14;
}

/* Texto de corpo — mais leve que os títulos de propósito, para contraste */
.text-dim { color: var(--text-dim); font-weight: 300; }

.slide-light .text-dim { color: rgba(11, 14, 20, 0.62); }
.slide-light .brand-line { background: rgba(11, 14, 20, 0.08); }

/* ── Terceira cor: azul sólido (impacto/divisores) ────────── */
.slide-blue {
  background-image:
    radial-gradient(1000px 600px at 12% -15%, rgba(255, 255, 255, 0.16), transparent 50%),
    radial-gradient(900px 700px at 100% 115%, rgba(0, 20, 60, 0.35), transparent 60%),
    linear-gradient(150deg, rgba(0, 144, 255, 0.5) 0%, rgba(0, 104, 214, 0.55) 50%, rgba(0, 62, 148, 0.6) 100%),
    url("../assets/bg-capa.png");
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  color: #fff;
}

.slide-blue .text-dim { color: rgba(255, 255, 255, 0.78); }
.slide-blue .text-dimmer { color: rgba(255, 255, 255, 0.55) !important; }
.slide-blue .brand-line { background: rgba(255, 255, 255, 0.28); }

.slide-blue .slide-kicker {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.slide-blue .glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.slide-blue .text-brand { color: #fff; }

/* ── Rodapé do slide (protótipo) — logo + "Proposta Comercial · Cliente" +
   número de página, sempre em baixo. Fica de fora na capa, que já tem
   identidade visual própria (kicker + hero + nome do cliente). ────────── */
.slide-footerbar {
  position: absolute;
  left: 88px; right: 88px; bottom: 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  z-index: 5;
  pointer-events: none;
}
/* Texto todo à esquerda e logo+página agrupados à direita — nenhum dos
   dois grupos cai no centro, onde no modo apresentação vive a pill de
   navegação (setas/contador); um texto centrado ficaria escondido por trás dela. */
.slide-footerbar-mid { font-size: 13px; font-weight: 300; letter-spacing: 0.02em; color: var(--text-dimmer); white-space: nowrap; }
.slide-footerbar-page { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 300; letter-spacing: 0.02em; color: var(--text-dimmer); font-variant-numeric: tabular-nums; }
.slide-footerbar-page img { height: 17px; width: auto; opacity: 0.7; display: block; margin-top: -2px; }

.slide-blue .slide-footerbar-mid,
.slide-blue .slide-footerbar-page { color: rgba(255, 255, 255, 0.6); }

.slide-light .slide-footerbar-mid,
.slide-light .slide-footerbar-page { color: rgba(11, 14, 20, 0.45); }
.slide-light .slide-footerbar-page img { filter: invert(1) brightness(0.3); }

/* ── Chrome persistente do palco (logo + rodapé) ───────────
   Vive fora de cada .slide — não se repete no markup, o JS
   apenas troca a classe consoante o tema do slide activo.    */
.stage-chrome-logo {
  position: absolute;
  top: 40px;
  right: 88px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.stage-chrome-logo img {
  height: 18px;
  width: auto;
  transition: filter 0.35s ease;
}

.stage-chrome-logo.is-light img { filter: invert(1) brightness(0.25); }
.stage-chrome-logo.is-light { opacity: 0.85; }
.stage-chrome-logo.is-hidden { opacity: 0; }

.stage-chrome-footer {
  position: absolute;
  bottom: 32px;
  left: 88px;
  right: 88px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dimmer);
  letter-spacing: 0.02em;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.stage-chrome-footer.is-light { color: rgba(11, 14, 20, 0.4); }
.stage-chrome-footer.is-hidden { opacity: 0; }

/* ── Kicker como chip com moldura ───────────────────────── */
.slide-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.slide-light .slide-kicker {
  color: var(--brand);
  border-color: rgba(11, 14, 20, 0.12);
  background: rgba(11, 14, 20, 0.025);
}

/* ── Marcador/highlighter atrás de palavras-chave ──────────
   Usar com <mark class="mark mark-accent|mark-brand">texto</mark> */
mark.mark {
  position: relative;
  background: none;
  color: inherit;
  padding: 0 0.1em;
  white-space: nowrap;
}

mark.mark::before {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 0.4em;
  bottom: 0;
  z-index: -1;
  border-radius: 3px 9px 5px 10px;
}

mark.mark-accent::before { background: var(--accent); opacity: 0.92; }
mark.mark-brand::before { background: var(--brand); opacity: 0.85; }
mark.mark-brand { color: #fff; }

/* ── Tipografia — títulos/secções em Space Grotesk, corpo fica em Outfit
   (herdado do body); Boska existe como alternativa por opção do campo. ── */
.h-hero, .h-display, .h-title { font-family: "Space Grotesk", sans-serif; }

.h-hero {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.h-display {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.h-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.text-accent { color: var(--accent); }
.text-brand { color: var(--brand); }

.metric-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #8a93a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glass / Apple-style surfaces ───────────────────────── */
.glass {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 70px -40px rgba(0, 0, 0, 0.7);
}

/* Palavra gigante da secção (kicker) a sangrar por trás do slide inteiro —
   canto superior esquerdo, sempre na mesma posição em todos os slides que a
   usam, independente do conteúdo. Puramente decorativa; o que sair fora do
   palco (#stage tem overflow:hidden) fica cortado sem problema. Tem de ser
   filho directo do elemento .slide (nunca dentro de um wrapper com
   position:relative próprio) para a posição não variar entre slides. */
.slide-giant-vertical {
  position: absolute; left: -30px; top: -45px;
  z-index: 0; pointer-events: none;
}
.slide-giant-vertical span {
  display: block;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 120px; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.025); white-space: nowrap;
}
.slide-light .slide-giant-vertical span { color: rgba(11, 14, 20, 0.025); }

.slide-light .glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 14, 20, 0.08);
  box-shadow: 0 30px 70px -45px rgba(20, 30, 60, 0.25);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-accent {
  background:
    radial-gradient(340px 220px at 85% 0%, rgba(220, 234, 32, 0.16), transparent 65%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(220, 234, 32, 0.4);
}

.glass-brand {
  background:
    radial-gradient(340px 220px at 85% 0%, rgba(0, 122, 254, 0.25), transparent 65%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 122, 254, 0.4);
}

.card-hover {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 122, 254, 0.4);
}

/* ── Card em destaque (quebra a monotonia de uma grelha) ──── */
.card-highlight {
  background: linear-gradient(160deg, #0090ff 0%, #0058c2 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 30px 70px -22px rgba(0, 122, 254, 0.55) !important;
}

.card-highlight .text-dim { color: rgba(255, 255, 255, 0.85) !important; }
.card-highlight svg { stroke: #fff !important; }
.card-highlight:hover { transform: translateY(-5px); }

/* ── Card vermelho — tom seco/tijolo, mesma gramática do azul ── */
.card-red {
  background: linear-gradient(160deg, #a63d2c 0%, #641d12 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 30px 70px -22px rgba(166, 61, 44, 0.5) !important;
}
.card-red .text-dim { color: rgba(255, 255, 255, 0.85) !important; }
.card-red svg { stroke: #fff !important; }
.card-red:hover { transform: translateY(-5px); }

/* Números decorativos dos cards coloridos passam a branco */
.card-highlight .vertical-card-num, .card-red .vertical-card-num,
.card-highlight .horizontal-card-num, .card-red .horizontal-card-num { color: #fff; opacity: 0.85; }

/* ── Selector de cor do card — 3 dots no hover, ao lado do × ── */
.card-color-dots {
  position: absolute; top: 12px; right: 40px; display: flex; gap: 6px; align-items: center;
  z-index: 2; opacity: 0; transition: opacity 0.15s ease;
}
.adaptive-card:hover .card-color-dots,
.vertical-card:hover .card-color-dots,
.horizontal-card:hover .card-color-dots { opacity: 1; }
.card-color-dot {
  width: 14px; height: 14px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.4); transition: transform 0.15s ease;
}
.card-color-dot:hover { transform: scale(1.2); }
.card-color-dot.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); }
.dot-dark { background: #12141c; }
.dot-blue { background: linear-gradient(160deg, #0090ff, #0058c2); }
.dot-red { background: linear-gradient(160deg, #a63d2c, #641d12); }
/* Os dots são ferramenta de edição — fora da apresentação e do PDF */
#screen-present .card-color-dots { display: none; }
@media print { .card-color-dots { display: none; } }

/* ── Badge/ícone pequeno acima de números-chave ────────────── */
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Botão CTA (lima/accent) ────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #10140a;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 45px -18px rgba(220, 234, 32, 0.55);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px -16px rgba(220, 234, 32, 0.65);
}

/* ── Fecho/Contactos — link do CTA + redes sociais ── */
.cta-block { display: flex; flex-direction: column; align-items: flex-start; }
.cta-url-text {
  display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); margin-top: 10px; outline: none;
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cta-url-text:focus { overflow: visible; white-space: normal; color: rgba(255, 255, 255, 0.7); }
.social-row { display: flex; gap: 16px; margin-top: 28px; }
.social-icon-link {
  width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease; cursor: pointer;
}
.social-icon-link:hover { background: rgba(0, 122, 254, 0.18); border-color: rgba(0, 122, 254, 0.4); }
.social-icon-link svg { width: 26px; height: 26px; }

/* ── Divisor suave ──────────────────────────────────────── */
.brand-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, transparent);
}

/* ============================================================
   Componentes extra — deck Malpevent (painel com grão, asterisco,
   agenda numerada, citação em destaque)
   ============================================================ */

/* Painel com textura tipo "grão de foto" — substitui fotografia
   real quando não existe, mantendo a mesma linguagem das referências */
.texture-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 25% 0%, rgba(0, 122, 254, 0.4), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, rgba(0, 60, 160, 0.5), transparent 65%),
    linear-gradient(150deg, #0d1f42 0%, #030617 100%);
}

.texture-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.texture-panel--accent {
  background:
    radial-gradient(38% 30% at 13% 92%, rgba(220, 234, 32, 0.5), transparent 100%),
    radial-gradient(120% 100% at 100% 0%, rgba(0, 122, 254, 0.4), transparent 60%),
    linear-gradient(150deg, #0d1f42 0%, #030617 100%);
}

.texture-panel--accent::after { mix-blend-mode: soft-light; opacity: 0.35; }

/* ── Capa — imagem de fundo (upload do utilizador) por trás do texto,
   com máscara de gradiente: funde para transparente do lado do texto,
   sólida do lado direito. Não é caixa fechada — ocupa o slide todo. ── */
.cover-bg { position: absolute; inset: 0; overflow: hidden; }

.cover-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
  pointer-events: none;
}

/* Zona de clique para trocar/enviar a imagem — só a metade direita (onde a
   foto fica de facto visível); a metade esquerda é do texto por cima, e a
   imagem em si (pointer-events:none) não pode competir por cliques com ele. */
.cover-bg-empty, .cover-bg-hit {
  position: absolute; top: 64px; bottom: 64px; right: 0; width: 46%;
  cursor: pointer;
}
.cover-bg-empty {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px; font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cover-bg-empty:hover { border-color: var(--brand); color: var(--brand); }

.cover-bg-remove {
  position: absolute; top: 24px; right: 24px; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5);
  color: #ff8080; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer;
}
.cover-bg:hover .cover-bg-remove { opacity: 1; }

/* ── Lockup logo Spartads + logo do cliente, no topo da capa ── */
.cover-logos { display: flex; align-items: center; gap: 16px; }
.cover-logo-spartads { height: 50px; width: auto; display: block; }
.cover-logo-divider { width: 1px; height: 50px; background: rgba(255, 255, 255, 0.25); flex: none; }
.cover-logo-client { height: 50px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.cover-logo-client-name { font-size: 26px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }

/* ── Slide "Imagem" — só a imagem, centrada, sem cortar (contain) ── */
.image-only-wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.image-only-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.image-only-hit { position: absolute; inset: 0; cursor: pointer; }
.image-only-empty {
  width: 55%; height: 65%; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); border-radius: 20px;
  color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.image-only-empty:hover { border-color: var(--brand); color: var(--brand); }
.image-only-remove {
  position: absolute; top: 24px; right: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer;
}
.image-only-wrap:hover .image-only-remove { opacity: 1; }

/* ── Slide "Imagem de fundo total" — foto full-bleed, sem gradiente/máscara,
   sem texto nenhum (só o rodapé por cima, como qualquer outro slide). ── */
.imagebg-wrap { position: absolute; inset: 0; overflow: hidden; }
.imagebg-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.imagebg-hit { position: absolute; inset: 0; cursor: pointer; }
.imagebg-empty {
  position: absolute; inset: 64px 88px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); border-radius: 20px;
  color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.imagebg-empty:hover { border-color: var(--brand); color: var(--brand); }
.imagebg-remove {
  position: absolute; top: 24px; right: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer;
}
.imagebg-wrap:hover .imagebg-remove { opacity: 1; }

/* ── Slide "Equipa" — linha de selos/certificados + foto grande a preencher
   o resto do slide (mesma moldura visual do "Imagem", mas dentro do fluxo). ── */
.team-photo-wrap {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}
.team-photo-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.team-photo-hit { position: absolute; inset: 0; cursor: pointer; }
.team-photo-empty {
  position: absolute; inset: 16px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); border-radius: 12px;
  color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.team-photo-empty:hover { border-color: var(--brand); color: var(--brand); }
.team-photo-remove {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer;
}
.team-photo-wrap:hover .team-photo-remove { opacity: 1; }

/* Selos/certificados sobrepostos no canto inferior direito da foto da equipa */
.team-certs-overlay {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 75%;
}
.logo-tile.team-cert-tile { height: 90px; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.logo-tile.team-cert-tile img { max-width: 130px; max-height: 100%; }

/* Asterisco decorativo — assinatura gráfica recorrente */
.asterisk-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Cartão de agenda numerado */
.agenda-card {
  border-radius: 18px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}

.agenda-card:hover { transform: translateY(-3px); }

.agenda-card.is-current {
  background: var(--accent);
  border-color: transparent;
}

.agenda-card.is-current .agenda-card-num,
.agenda-card.is-current .agenda-card-label { color: #10140a; }

.agenda-card-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.agenda-card-label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Citação/afirmação grande com aspas decorativas */
.big-quote {
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--brand);
}

/* ── Botão de remover card — reutilizado nos 4 layouts adaptáveis
   (cardGrid, cardsVertical, cardsHorizontal, barChart) ─────────── */
.adaptive-card-del {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.55); border: 1px solid rgba(255, 70, 70, 0.45); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer; z-index: 2;
}
.adaptive-card:hover .adaptive-card-del,
.vertical-card:hover .adaptive-card-del,
.horizontal-card:hover .adaptive-card-del,
.bigbar-col:hover .adaptive-card-del,
.testimonial-card:hover .adaptive-card-del { opacity: 1; }

.adaptive-card { position: relative; }

/* ── Cards verticais de altura total (grelha "cardsVertical") ── */
.vertical-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 24px;
}
.vertical-card-num {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 56px; line-height: 1;
  color: var(--brand); opacity: 0.9;
}

/* ── Painel de imagem do layout "imagem + texto" (imageText) ──
   Mesma lógica de upload/remover da capa, mas contido (não full-bleed). */
.imagetext-panel {
  position: relative; height: 420px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #0d1f42 0%, #030617 100%);
}
.imagetext-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.imagetext-hit { position: absolute; inset: 0; cursor: pointer; }
.imagetext-empty {
  position: absolute; inset: 16px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); border-radius: 14px;
  color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.imagetext-empty:hover { border-color: var(--brand); color: var(--brand); }
.imagetext-remove {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer;
}
.imagetext-panel:hover .imagetext-remove { opacity: 1; }

/* ── Processo em passos (layout "processSteps") — 6 cards fixos com
   número em cima, ícone, título, texto e chip de duração ── */
/* 6 colunas numa linha só, com a linha de continuidade a passar pelos
   círculos numerados — dá a leitura de sequência 1 → 6 */
.process-row {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  align-items: stretch; padding-top: 14px;
}
.process-line {
  position: absolute; top: 50%; left: 3%; right: 3%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 254, 0.55) 12%, rgba(0, 122, 254, 0.55) 88%, transparent 100%);
}
.process-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 12px 12px; border-radius: 16px;
  overflow: visible; /* o .glass corta por omissão — o círculo do número vive fora do card */
}
.process-num {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 27px; height: 27px; border-radius: 50%; z-index: 2;
  background: linear-gradient(160deg, #0090ff 0%, #0058c2 100%);
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(0, 122, 254, 0.55);
}
.process-card .card-icon-wrap.process-icon { width: 54px; height: 54px; margin: 2px 0 10px; }
.process-chip {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0, 122, 254, 0.15); border: 1px solid rgba(0, 122, 254, 0.35);
  color: #6db9ff; font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}

/* ── Processo em fluxo (layout "processFlow") — número gigante por trás ── */
.process-flow-card {
  position: relative; overflow: hidden; padding: 20px 18px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center;
}
.process-ghost {
  position: absolute; top: -22px; right: -8px; z-index: 0; pointer-events: none;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 96px; line-height: 1;
  color: rgba(0, 122, 254, 0.1); user-select: none;
}

/* ── Ícone opcional nos cards (cardsVertical: por cima do texto;
   cardsHorizontal: ao lado, antes do texto). Imagem carregada pelo
   utilizador; sem ícone o texto ocupa o lugar — nada fica reservado. ── */
.card-icon-wrap { position: relative; width: 72px; height: 72px; margin-bottom: 14px; flex: none; }
.horizontal-card .card-icon-wrap { width: 44px; height: 44px; margin-bottom: 0; align-self: center; }
.card-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Ícone pintado — a silhueta (transparência) do ficheiro vira máscara e
   pinta-se de cor única; "original" usa o <img> normal */
.icon-tinted {
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}
.icon-color-dots {
  position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 3; opacity: 0; transition: opacity 0.15s ease;
  padding: 2px 5px; border-radius: 999px; background: rgba(8, 9, 13, 0.75);
}
.card-icon-wrap:hover .icon-color-dots { opacity: 1; }
.icon-dot {
  width: 11px; height: 11px; border-radius: 50%; cursor: pointer; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4); transition: transform 0.15s ease;
}
.icon-dot:hover { transform: scale(1.25); }
.icon-dot.is-active { border-color: #fff; }
.idot-auto { background: linear-gradient(90deg, #12141c 50%, #fff 50%); }
.idot-original { background: conic-gradient(#f66, #fc6, #6f6, #6cf, #96f, #f66); }
.idot-white { background: #fff; }
.idot-blue { background: linear-gradient(160deg, #0090ff, #0058c2); }
.idot-green { background: linear-gradient(160deg, #dcea20, #a8b400); }
.idot-red { background: linear-gradient(160deg, #a63d2c, #641d12); }
#screen-present .icon-color-dots { display: none; }
@media print { .icon-color-dots { display: none; } }
.card-icon-remove {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 70, 70, 0.5); color: #ff8080;
  display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
  opacity: 0; transition: opacity 0.15s ease; cursor: pointer; z-index: 2;
}
.card-icon-wrap:hover .card-icon-remove { opacity: 1; }
.card-icon-add {
  display: inline-flex; align-items: center; align-self: flex-start; flex: none;
  padding: 4px 10px; margin-bottom: 12px; border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.35);
  font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.horizontal-card .card-icon-add { margin-bottom: 0; align-self: center; }
.card-icon-add:hover { border-color: var(--brand); color: var(--brand); }
/* O chip "+ ícone" é ferramenta de edição — nunca aparece ao apresentar nem no PDF */
#screen-present .card-icon-add { display: none; }
@media print { .card-icon-add { display: none; } }

/* ── Texto em modo lista (bullets) — marcadores DENTRO da caixa do texto,
   nunca a sair para fora do contorno ── */
.free-el-bullets { list-style: disc inside; padding-left: 2px; margin: 0; }
.free-el-bullets li { margin-bottom: 4px; }

/* ── Cards horizontais empilhados (layout "cardsHorizontal") ── */
.horizontal-card { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.horizontal-card-num {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; color: var(--brand);
  opacity: 0.6; flex: none;
}

/* ── Gráfico de barras de impacto (layout "barChart") — barras com
   gradiente e brilho, altura reage ao valor (0-100%) ─────────────── */
.bigbar-chart { display: grid; gap: 22px; align-items: end; flex: 1; padding-bottom: 4px; }
.bigbar-col { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bigbar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.bigbar-fill {
  width: 100%; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #3fa7ff 0%, var(--brand) 60%, #0052b3 100%);
  box-shadow: 0 0 24px -6px rgba(0, 122, 254, 0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14px; transition: height 0.3s ease;
}
.bigbar-value { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.bigbar-pct { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-left: 2px; align-self: flex-start; margin-top: 4px; }
.bigbar-label { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--text-dim); text-align: center; }

/* ── Planeamento estratégico (roadmap/Gantt) — layout "planStrategic" ──── */
.gantt-box { padding: 30px 28px 22px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.gantt-header { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.gantt-weeks { display: grid; }
.gantt-week-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); text-align: center; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.gantt-rows { display: flex; flex-direction: column; gap: 9px; }
.gantt-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.gantt-row-label { font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.gantt-track { position: relative; display: grid; height: 24px; }
.gantt-track-cell { border-right: 1px dashed rgba(255, 255, 255, 0.08); }
.gantt-track-cell:last-child { border-right: none; }
.gantt-bar {
  position: absolute; top: 0; height: 100%; min-width: 10px; border-radius: 7px; cursor: move;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}
.gantt-legend { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.gantt-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.gantt-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.slide-light .gantt-week-label { color: rgba(11, 14, 20, 0.55); border-bottom-color: rgba(11, 14, 20, 0.12); }
.slide-light .gantt-row-label { color: rgba(11, 14, 20, 0.8); }
.slide-light .gantt-track-cell { border-right-color: rgba(11, 14, 20, 0.12); }
.slide-light .gantt-legend { border-top-color: rgba(11, 14, 20, 0.12); }
.slide-light .gantt-legend-item { color: rgba(11, 14, 20, 0.75); }

/* ── Simulação de dashboard dentro da janela de browser (layout
   "dashboardReport") — página clara com scroll real (overflow-y:auto),
   para parecer mesmo uma página viva, mas 100% nossa (sem login/CORS). ── */
.dash-sim-viewport.dash-sim-viewport { overflow-y: auto; overflow-x: hidden; background: #f5f6f8; }
.dsim-page { padding: 20px 22px 30px; font-family: 'Outfit', system-ui, sans-serif; color: #1a1d24; }
.dsim-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #e4e6ea; }
.dsim-nav-dot { width: 22px; height: 22px; border-radius: 6px; background: #007afe; flex: none; }
.dsim-nav-title { font-size: 16px; font-weight: 700; }
.dsim-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dsim-kpi { background: #fff; border: 1px solid #e4e6ea; border-radius: 10px; padding: 14px 16px; }
.dsim-kpi-value { font-size: 22px; font-weight: 800; color: #1a1d24; margin-bottom: 2px; }
.dsim-kpi-label { font-size: 11px; color: #8a8f9a; margin-bottom: 6px; }
.dsim-kpi-delta { display: inline-flex; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.dsim-kpi-delta.is-positive { color: #1a9c5e; background: #e5f7ee; }
.dsim-kpi-delta.is-negative { color: #d43f3f; background: #fbe9e9; }
.dsim-card { background: #fff; border: 1px solid #e4e6ea; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.dsim-card-title { font-size: 11.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.dsim-trend-svg { width: 100%; height: 150px; display: block; }
.dsim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dsim-bar-row { display: grid; grid-template-columns: 76px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 10px; }
.dsim-bar-label { font-size: 11.5px; color: #374151; }
.dsim-bar-track { height: 8px; border-radius: 5px; background: #eef0f3; overflow: hidden; }
.dsim-bar-fill { height: 100%; border-radius: 5px; }
.dsim-bar-value { font-size: 11.5px; font-weight: 700; color: #1a1d24; text-align: right; }
.dsim-weekbars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.dsim-weekbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dsim-weekbar { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #3fa7ff, #007afe); }
.dsim-weekbar-label { font-size: 10px; color: #8a8f9a; }

/* ── Testemunhos em vídeo (layout "testimonials") — só o link, sem texto ── */
.testimonial-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.testimonial-video-wrap {
  flex: 1; border-radius: 12px; overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center; min-height: 0;
}
.testimonial-video { width: 100%; height: 100%; border: 0; display: block; }
.testimonial-video-empty { color: rgba(255, 255, 255, 0.22); font-size: 34px; }
.testimonial-url-text {
  display: block; flex: none; font-size: 12px; color: rgba(255, 255, 255, 0.55);
  padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.testimonial-url-text:empty::before { content: "Cola aqui o link do vídeo (YouTube, Vimeo...)"; color: rgba(255, 255, 255, 0.3); }

/* ── Mancha de luz suave — acento de profundidade atrás de conteúdo ── */
.blob-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 144, 255, 0.9), rgba(0, 60, 160, 0.35) 60%, transparent 78%);
  pointer-events: none;
}

/* ── Numeral gigante e translúcido — assinatura dos slides
   divisores de secção, sempre atrás do conteúdo (z-index 0) ── */
.divider-ghost-num {
  position: absolute;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Card fotográfico — foto de banco com overlay de marca,
   para grelhas em mosaico (alturas diferentes, mais dinâmico) ── */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  min-height: 120px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(0, 90, 200, 0.35) 0%, transparent 45%),
    linear-gradient(0deg, rgba(2, 5, 16, 0.85) 0%, rgba(2, 5, 16, 0.05) 60%);
}

.photo-card:hover { transform: translateY(-3px); }

.photo-card-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ── Selo pequeno "Recomendado" — destaca sem ir a azul sólido ── */
.badge-recommend {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 254, 0.16);
  border: 1px solid rgba(0, 122, 254, 0.45);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Mini-gráfico de barras — números reais em forma visual ── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 52px;
  margin-top: 14px;
}

.mini-chart-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px 6px 2px 2px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.mini-chart-bar:last-child { background: rgba(255, 255, 255, 0.55); }

.mini-chart-value {
  font-size: 11px;
  font-weight: 800;
  color: #0058c2;
}

.mini-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Navegação — pill inferior + setas laterais (glass)
   ============================================================ */

#deck-nav {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
  flex: none;
}

.nav-btn:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.06);
}

.nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.nav-btn svg { width: 18px; height: 18px; }

#slide-counter {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-dim);
  min-width: 56px;
  text-align: center;
  letter-spacing: 0.02em;
}

#progress-track {
  width: 130px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
  flex: none;
}

#fullscreen-btn.is-active svg { color: var(--brand); }
#overview-btn.is-active svg { color: var(--brand); }

/* ============================================================
   Vista geral — slide sorter (miniaturas clicáveis)
   ============================================================ */
#overview {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 12, 0.9);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 70px 64px;
}

#overview.open { display: flex; }

#overview-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 31;
}

#overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  max-height: 100%;
  overflow-y: auto;
  padding: 4px;
}

.overview-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.overview-thumb:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(0, 122, 254, 0.6);
  box-shadow: 0 20px 45px -20px rgba(0, 122, 254, 0.45);
}

.overview-thumb.is-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.overview-thumb-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.overview-thumb-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  #overview-grid { grid-template-columns: repeat(3, 1fr); }
  #overview { padding: 70px 24px; }
}

/* ── Aviso de rotação (telemóvel em retrato) ───────────── */
#rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-deep);
  color: #fff;
  text-align: center;
  padding: 32px;
}

@media (max-width: 640px) and (orientation: portrait) {
  #rotate-hint { display: flex; }
}

/* ── Utilitário: esconder scrollbar / seleção de texto em nav ─ */
.no-select { user-select: none; }
