/* ============================================================
   USIMABE TI v2 — APRESENTAÇÃO CORPORATIVA EM SLIDES INTERATIVOS
   Design 100% Responsivo Sem Rolagem Vertical (Fit to Screen)
   ============================================================ */

:root {
  --bg-main: #0b0f19;
  --bg-card: #151d2f;
  --bg-card-hover: #1e293b;
  --bg-surface: #0f172a;
  --bg-mockup: #0d1527;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: #F26B21;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand-orange: #F26B21;
  --brand-orange-light: #ff853f;
  --brand-orange-glow: rgba(242, 107, 33, 0.25);
  --brand-navy: #0f172a;
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);
  --color-info: #0ea5e9;
  --color-info-bg: rgba(14, 165, 233, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 56px;
  --footer-height: 48px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Elimina qualquer rolagem global na apresentação */
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

/* Pseudo Fullscreen Fallback */
body.css-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background-color: var(--bg-main) !important;
}

/* ---- TOPBAR COMPACTA & FIXA ---- */
.pres-header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

.pres-title-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pres-title-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 6px var(--brand-orange);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.slide-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.slide-counter .current-num {
  color: var(--brand-orange);
  font-weight: 800;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  user-select: none;
}

.btn-ctrl:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ctrl:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-ctrl.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #d45610 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px var(--brand-orange-glow);
}

.btn-ctrl.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-orange-light) 0%, var(--brand-orange) 100%);
}

/* Barra de Progresso */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F26B21, #ff9248);
  width: 5%;
  transition: width 0.25s ease;
  box-shadow: 0 0 8px rgba(242, 107, 33, 0.6);
}

/* ---- PALCO PRINCIPAL (STAGE) — 100% FIT NO VIEWPORT ---- */
.stage-wrapper {
  flex: 1;
  min-height: 0; /* Permite que o container filho flex respeite o espaço restante */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: radial-gradient(circle at 50% 30%, #151d33 0%, var(--bg-main) 70%);
  overflow: hidden;
  position: relative;
}

.slide-deck {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  max-height: calc(100vh - var(--header-height) - var(--footer-height) - 24px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-item {
  display: none;
  height: 100%;
  max-height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 26px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.slide-item.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Marca d'água sutil */
.slide-item::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(242, 107, 33, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- CABEÇALHO DO SLIDE (COMPACTO) ---- */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.slide-title-wrap {
  min-width: 0;
}

.slide-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
  background: rgba(242, 107, 33, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.slide-title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-badge-iso {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- CORPO DO SLIDE (GRID DINÂMICA) ---- */
.slide-body {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  flex: 1;
  min-height: 0; /* Previne expansão além do container pai */
  align-items: stretch;
  overflow: hidden;
}

.slide-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.info-lead {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: auto 0;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: var(--transition);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 107, 33, 0.4);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #c44e0b 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(242, 107, 33, 0.35);
}

.step-content strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.25;
}

.step-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.key-takeaway {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #7dd3fc;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ---- MOCKUPS NATIVOS DE ALTA FIDELIDADE (100% FIT) ---- */
.mockup-window {
  background: var(--bg-mockup);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
}

.window-bar {
  background: #0a0f1d;
  border-bottom: 1px solid var(--border-color);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-url-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2px 14px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-url-bar .lock-icon {
  color: #10b981;
}

.window-content {
  padding: 14px 18px;
  flex: 1;
  min-height: 0;
  background: #0d1527;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow-y: auto;
}

/* Callout Indicator Badge */
.callout-tag {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(242, 107, 33, 0.5);
  animation: pulse-badge 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulse-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Mockup Elements */
.mockup-login-box {
  max-width: 320px;
  margin: auto;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 100%;
}

.mockup-logo-center {
  text-align: center;
  margin-bottom: 12px;
}

.mockup-logo-center img {
  height: 30px;
}

.mockup-form-group {
  margin-bottom: 8px;
}

.mockup-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mockup-input {
  width: 100%;
  background: #0b101c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.78rem;
}

.mockup-btn {
  width: 100%;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 7px;
  border-radius: 4px;
  font-size: 0.78rem;
  margin-top: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mockup-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.mockup-cat-card {
  background: #151d30;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mockup-cat-card.selected {
  background: rgba(242, 107, 33, 0.12);
  border-color: var(--brand-orange);
}

.mockup-cat-icon {
  font-size: 1.1rem;
}

.mockup-cat-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.mockup-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #151d30;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.mockup-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-open { background: var(--color-warning-bg); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-progress { background: var(--color-info-bg); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-resolved { background: var(--color-success-bg); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-critical { background: var(--color-danger-bg); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.mockup-chat-thread,
.mockup-chat-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
}

.mockup-msg {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  max-width: 85%;
  line-height: 1.35;
}

.msg-agent,
.msg-in {
  background: #1e293b;
  border: 1px solid var(--border-color);
  align-self: flex-start;
  color: #e2e8f0;
}

.msg-user,
.msg-out {
  background: rgba(242, 107, 33, 0.18);
  border: 1px solid rgba(242, 107, 33, 0.35);
  align-self: flex-end;
  color: #fff;
}

.mockup-csat-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.star-rating,
.mockup-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 4px;
  margin: 4px 0;
}

.mockup-kb-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.mockup-table th {
  background: #101726;
  color: var(--text-dim);
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.mockup-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.five-whys-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.why-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141c2e;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 5px 8px;
}

.why-badge {
  background: #334155;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.why-input-fake {
  font-size: 0.72rem;
  color: #e2e8f0;
  flex: 1;
}

.mockup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kpi-card-mockup {
  background: #151d30;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}

.kpi-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.kpi-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.kpi-target {
  font-size: 0.62rem;
  color: #34d399;
  font-weight: 600;
  margin-top: 2px;
}

.btn-acknowledge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* ---- RODAPÉ DE NAVEGAÇÃO RÁPIDA (THUMBNAILS) ---- */
.pres-footer {
  height: var(--footer-height);
  min-height: var(--footer-height);
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}

.quick-thumbnails {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  flex: 1;
  padding: 4px 0;
  scrollbar-width: thin;
}

.thumb-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.thumb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.thumb-btn.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.shortcuts-help {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: monospace;
  font-size: 0.65rem;
  color: #e2e8f0;
}

/* ============================================================
   ESTILOS GLOBAIS DO DOCK MOBILE (OCULTO EM DESKTOP)
   ============================================================ */
.mobile-nav-dock {
  display: none;
}

/* ============================================================
   RESPONSIVIDADE COMPLETA E DESIGN UX/UI PARA CELULARES & TABLETS
   ============================================================ */
@media (max-width: 1024px) {
  .slide-body {
    grid-template-columns: 1fr 1.15fr;
    gap: 14px;
  }
  .stage-wrapper {
    padding: 10px 14px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 52px;
  }

  /* 1. TOPO LIMPO E BALANCEADO */
  .pres-header {
    padding: 0 14px;
    height: var(--header-height);
    min-height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
  }

  .header-left {
    display: flex;
    align-items: center;
  }

  .brand-logo-img {
    height: 24px;
  }

  .brand-divider,
  .pres-title-badge {
    display: none !important;
  }

  /* No celular, os controles de avançar/voltar saem do topo e vão para o dock inferior */
  .header-center {
    display: none !important;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-right .btn-ctrl {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-right .btn-ctrl span {
    display: none !important;
  }

  /* Oculta o rodapé tradicional no mobile para dar espaço e ar para a apresentação */
  .pres-footer {
    display: none !important;
  }

  /* 2. PALCO E CARTÃO DO SLIDE — 100% CENTRALIZADOS NO VIEWPORT */
  .stage-wrapper {
    padding: 10px 14px 78px 14px !important; /* Espaço inferior para o dock flutuante */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: calc(100dvh - var(--header-height)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .slide-deck {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 520px !important; /* Garante alinhamento e proporção perfeitos */
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .slide-item {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #151d2f !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    overflow-y: auto !important; /* Rolagem vertical suave e sem quebra no mobile */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    display: none;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .slide-item.active {
    display: flex !important;
  }

  /* 3. CABEÇALHO DO SLIDE — CENTRALIZADO E HIERÁRQUICO */
  .slide-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
  }

  .slide-title-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .slide-category {
    margin: 0 auto 4px auto !important;
    font-size: 0.68rem !important;
    padding: 3px 10px !important;
    border-radius: 16px !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .slide-title {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-align: center !important;
    line-height: 1.25 !important;
    margin: 3px 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .slide-subtitle {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    text-align: center !important;
    line-height: 1.38 !important;
    margin: 2px auto 0 auto !important;
    max-width: 95% !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .slide-badge-iso {
    margin: 6px auto 0 auto !important;
    font-size: 0.65rem !important;
    padding: 3px 10px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 4. CORPO DO SLIDE — COLUNA ÚNICA CENTRALIZADA */
  .slide-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 14px !important;
    overflow: visible !important;
    height: auto !important;
    flex: 1 0 auto !important;
  }

  .slide-info-panel {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .info-lead {
    text-align: center !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: #cbd5e1 !important;
    width: 100% !important;
  }

  .steps-list {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .step-card {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .step-num {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
    margin-top: 1px !important;
    flex-shrink: 0 !important;
  }

  .step-content strong {
    font-size: 0.8rem !important;
    color: #fff !important;
    line-height: 1.25 !important;
  }

  .step-content p {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    line-height: 1.35 !important;
    margin-top: 2px !important;
  }

  .key-takeaway {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.74rem !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* 5. MOCKUP NATIVO — ADAPTADO EM LARGURA TOTAL COM ROLAGEM PRESERVADA */
  .mockup-window {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px auto 0 auto !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .window-bar {
    height: 30px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .window-url-bar {
    margin: 0 auto !important;
    font-size: 0.65rem !important;
    padding: 2px 10px !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .window-content {
    padding: 14px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-y: visible !important;
  }

  .window-content > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mockup-login-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 14px 12px !important;
  }

  /* 6. DOCK FLUTUANTE DE NAVEGAÇÃO MOBILE (THUMB ZONE) */
  .mobile-nav-dock {
    display: flex !important;
    position: fixed !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(242, 107, 33, 0.15) !important;
    border-radius: 999px !important;
    padding: 5px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 28px) !important;
  }

  .btn-dock {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-dock:active {
    transform: scale(0.95);
  }

  .btn-dock:disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .btn-dock-primary {
    background: linear-gradient(135deg, #F26B21 0%, #ff853f 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(242, 107, 33, 0.45);
  }

  .dock-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
  }

  .dock-current {
    color: #F26B21;
  }

  .dock-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
  }

  .dock-total {
    color: #94a3b8;
  }
}

@media (max-width: 480px) {
  .stage-wrapper {
    padding: 6px 8px 74px 8px !important;
  }

  .slide-item {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }

  .slide-title {
    font-size: 1.08rem !important;
  }

  .slide-subtitle {
    font-size: 0.74rem !important;
  }

  .step-card {
    padding: 8px 10px !important;
  }

  .btn-dock {
    padding: 6px 11px;
    font-size: 0.7rem;
  }

  .dock-counter {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ============================================================
   REGRAS ESPECIAIS DE IMPRESSÃO / EXPORTAÇÃO PARA PDF (@MEDIA PRINT)
   ============================================================ */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html, body {
    background: #0f172a !important;
    color: #f8fafc !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pres-header,
  .pres-footer,
  .progress-container,
  .btn-ctrl,
  .shortcuts-help,
  .callout-tag {
    display: none !important;
  }

  .stage-wrapper {
    padding: 0 !important;
    background: none !important;
    display: block !important;
  }

  .slide-deck {
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  .slide-item {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #334155 !important;
    margin-bottom: 20px !important;
    page-break-after: always !important;
    break-after: page !important;
    height: 190mm !important;
    max-height: 190mm !important;
    padding: 20px !important;
    background: #0f172a !important;
    overflow: hidden !important;
  }

  .slide-item:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .mockup-window {
    border-color: #334155 !important;
    box-shadow: none !important;
  }

  .mockup-btn,
  .btn-acknowledge {
    background: #F26B21 !important;
    color: #fff !important;
  }
}
