/* ==========================================================================
   PÚLPITO: ESBOÇOS & SERMÕES
   Design Moderno, Responsivo e Modo Púlpito de Alta Legibilidade
   ========================================================================== */

:root {
  --bg-app: #0b0f19;
  --bg-card: #151d2e;
  --bg-card-hover: #1c263b;
  --bg-input: #0e1422;
  --border-color: #233048;
  --border-subtle: #192338;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-gold-bg: rgba(245, 158, 11, 0.12);
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Cabeçalho Superior */
.top-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  gap: 8px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 24px;
  background: var(--accent-gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-title span {
  color: var(--accent-gold);
}

.logo-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .top-header {
    padding: 8px 10px;
  }
  .logo-area {
    gap: 6px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .logo-title {
    font-size: 15px;
  }
  .logo-subtitle {
    font-size: 9px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .header-actions .btn-pro-badge {
    padding: 4px 7px;
    font-size: 10.5px;
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #1a1306;
}
.btn-gold:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-ia {
  background: linear-gradient(135deg, #7c3aed 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}
.btn-ia:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-success {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-danger {
  background: var(--accent-red);
  color: #ffffff;
}

.btn-icon-only {
  padding: 8px 12px;
  font-size: 16px;
}

/* ==========================================================================
   TELA: DASHBOARD / LISTA DE SERMÕES
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Barra de Busca e Filtros */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.search-input-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-select {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
}

/* Grade de Sermões */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.sermon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.sermon-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sermon-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.sermon-badge-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--border-color);
  color: var(--text-muted);
}

.sermon-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.status-pronto {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-rascunho {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.status-pregado {
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sermon-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.sermon-passage {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sermon-preview-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sermon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-chip {
  font-size: 11.5px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 12px;
}

.sermon-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sermon-meta-info {
  font-size: 12px;
  color: var(--text-faint);
}

.sermon-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   TELA: EDITOR DE SERMÃO
   ========================================================================== */

.editor-container {
  max-width: 960px;
  margin: 0 auto;
}

.editor-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-input-lg {
  font-size: 20px;
  font-weight: 700;
  padding: 14px 16px;
}

.editor-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 650px) {
  .editor-grid-2 {
    grid-template-columns: 1fr;
  }
  #view-editor.main-content {
    padding: 10px 8px 90px 8px !important;
  }
  .editor-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .editor-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }
  .topic-item {
    padding: 14px 10px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
  }
  .editor-top-bar {
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .editor-top-bar .btn {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }
}

/* Tópicos do Sermão */
.topics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.topics-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 650px) {
  .topics-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .topics-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .topics-header-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* ==========================================================================
   CARDS DE TÓPICOS NO EDITOR (LAYOUT ESPAÇOSO, ABERTO E MODERNO)
   ========================================================================== */

.topic-item {
  background: #141720;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.topic-item:focus-within {
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.15);
}

.topic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.topic-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  padding: 5px 12px;
}

.topic-badge-icon {
  font-size: 14px;
}

.topic-badge-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.topic-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.topic-actions .btn {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  min-width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.topic-actions .btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.topic-actions .btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.topic-field-group {
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.topic-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.topic-title-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16.5px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topic-title-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.topic-content-textarea {
  width: 100%;
  min-height: 190px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 15.5px;
  line-height: 1.65;
  padding: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topic-content-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Área de Anexar Versículo */
.topic-verse-attach-area {
  margin-top: 10px;
  width: 100%;
}

.btn-anexar-biblia-destaque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1.5px dashed rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-anexar-biblia-destaque:hover,
.btn-anexar-biblia-destaque:active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--accent-gold);
  border-style: solid;
  transform: translateY(-1px);
}

/* Card de Versículo Anexado */
.topic-verse-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--accent-gold);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.topic-verse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-verse-text {
  font-family: "Georgia", "Merriweather", serif;
  font-size: 15px;
  line-height: 1.65;
  color: #f1f5f9;
  font-style: italic;
  white-space: pre-wrap;
}

.topic-verse-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.topic-verse-remove:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

.editor-bottom-bar {
  margin-top: 14px;
  margin-bottom: 40px;
  width: 100%;
}

/* ==========================================================================
   TELA: MODO PÚLPITO (O MODO DE MINISTRAÇÃO)
   ========================================================================== */

#pulpit-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: text;
}

/* Barra Superior do Modo Púlpito */
.pulpit-bar {
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pulpit-clock-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pulpit-clock {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.pulpit-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
}

.timer-normal {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}
.timer-alerta {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  animation: pulse-alerta 1.5s infinite;
}
.timer-esgotado {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

@keyframes pulse-alerta {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulpit-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gold);
  width: 0%;
  transition: width 1s linear;
}

.pulpit-controls-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.font-size-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.font-size-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
}

/* Área de Rolagem do Sermão no Púlpito */
.pulpit-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 140px;
  scroll-behavior: smooth;
}

.pulpit-container {
  max-width: 860px;
  margin: 0 auto;
}

.pulpit-sermon-title {
  font-size: 1.8em;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.pulpit-sermon-passage {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pulpit-topic-block {
  margin-bottom: 34px;
}

.pulpit-topic-title {
  font-size: 1.35em;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--accent-gold);
}

.pulpit-topic-text {
  font-family: "Georgia", "Merriweather", serif;
  font-size: 1em;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 18px;
}

.pulpit-verse-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.pulpit-verse-ref {
  font-size: 0.9em;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.pulpit-verse-content {
  font-family: "Georgia", "Merriweather", serif;
  font-size: 1.05em;
  line-height: 1.65;
  font-style: italic;
}

/* TEMAS DO MODO PÚLPITO */
/* 1. Tema Noturno Profundo (Ideal para púlpito com iluminação cênica) */
.tema-noturno {
  background-color: #07090e;
  color: #f8fafc;
}
.tema-noturno .pulpit-topic-title {
  color: #fbbf24;
}
.tema-noturno .pulpit-verse-box {
  background: rgba(251, 191, 36, 0.12);
  border-left-color: #fbbf24;
}
.tema-noturno .pulpit-verse-ref {
  color: #fde68a;
}

/* 2. Tema Sépia Confortável (Não cansa a visão em leitura contínua) */
.tema-sepia {
  background-color: #fbf0d9;
  color: #2b1f14;
}
.tema-sepia .pulpit-bar {
  background: rgba(244, 230, 201, 0.9);
  border-bottom-color: rgba(60, 40, 20, 0.15);
  color: #2b1f14;
}
.tema-sepia .pulpit-sermon-passage {
  color: #92400e;
  border-bottom-color: rgba(60, 40, 20, 0.15);
}
.tema-sepia .pulpit-topic-title {
  color: #92400e;
}
.tema-sepia .pulpit-verse-box {
  background: #f1dfbe;
  border-left-color: #b45309;
}
.tema-sepia .pulpit-verse-ref {
  color: #78350f;
}
.tema-sepia .font-size-btn,
.tema-sepia .theme-pill-btn,
.tema-sepia .pulpit-timer-badge {
  background: rgba(60, 40, 20, 0.08);
  border-color: rgba(60, 40, 20, 0.2);
  color: #2b1f14;
}

/* 3. Tema Claro Alto Contraste */
.tema-claro {
  background-color: #ffffff;
  color: #0f172a;
}
.tema-claro .pulpit-bar {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}
.tema-claro .pulpit-sermon-passage {
  color: #b45309;
  border-bottom-color: #e2e8f0;
}
.tema-claro .pulpit-topic-title {
  color: #1e3a8a;
}
.tema-claro .pulpit-verse-box {
  background: #fef3c7;
  border-left-color: #d97706;
}
.tema-claro .pulpit-verse-ref {
  color: #92400e;
}
.tema-claro .font-size-btn,
.tema-claro .theme-pill-btn,
.tema-claro .pulpit-timer-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   MODAIS (INSERIR VERSÍCULO, TEMPLATES, HISTÓRICO)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Templates no Modal */
.template-option-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}
.template-option-card:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.template-icon {
  font-size: 24px;
}
.template-name {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.template-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   ESTILOS DO GERADOR COM IA
   ========================================================================== */

.ia-quota-box {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.badge-cota {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.badge-cota.esgotada {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.ia-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(245, 158, 11, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin-ia 0.8s linear infinite;
  margin: 0 auto;
}

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

/* ==========================================================================
   ESTILOS DO GUIA PASSO A PASSO
   ========================================================================== */

.guide-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}

.guide-tab-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guide-tab-btn:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.guide-tab-btn.active {
  background: var(--accent-gold-bg);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.guide-content-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.guide-content-panel.active {
  display: block;
}

.guide-step-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.guide-step-num {
  background: var(--accent-gold);
  color: #1a1306;
  font-weight: 800;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-body h4 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.guide-step-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-tip-box {
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--accent-blue);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.5;
}

.guide-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.18);
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.guide-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .guide-diff-grid {
    grid-template-columns: 1fr;
  }
}

.guide-diff-box {
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.45;
}

.guide-diff-box.free {
  border-left: 3px solid #94a3b8;
}

.guide-diff-box.pro {
  border-left: 3px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.guide-diff-box strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.guide-diff-box.free strong {
  color: #94a3b8;
}

.guide-diff-box.pro strong {
  color: var(--accent-gold);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   IMPRESSÃO FORMATADA (PRINT / PDF)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
  }

  .top-header,
  .search-filter-bar,
  .editor-top-bar,
  .pulpit-bar,
  .modal-backdrop,
  .no-print {
    display: none !important;
  }

  .main-content,
  .editor-container,
  .pulpit-scroll-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .pulpit-verse-box {
    border-left: 3px solid #333 !important;
    background: #f7f7f7 !important;
    padding: 10px !important;
  }

  .pulpit-topic-title {
    color: #000000 !important;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
  }

  .pulpit-sermon-passage {
    color: #444 !important;
    border-bottom: 1px solid #999;
  }

  .print-watermark-free {
    display: block !important;
    text-align: center;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px dashed #777;
    font-size: 9pt;
    color: #555;
  }
}

/* ==========================================================================
   ESTILOS DO PLANO PRO, TRAVAS DE CONVERSÃO & AMOSTRA IA
   ========================================================================== */

/* Botão PRO na Topbar */
.btn-pro-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000 !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-pro-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

.btn-pro-badge.ativo-pro {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* Barra de Status do Acervo / Plano */
.plan-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 20px;
}

/* Banner de Amostra Demonstrativa no Editor */
.banner-amostra-ia {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Banner de Teaser no Modal de IA */
.ia-teaser-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

/* Tópico Bloqueado no Editor (Amostra PRO) */
.topic-locked-card {
  position: relative;
  background: var(--bg-input);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.topic-locked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.topic-locked-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-locked-blur-preview {
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.55;
  margin-bottom: 14px;
}

.topic-locked-action-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Bloqueio no Modo Púlpito */
.pulpit-topic-locked {
  background: rgba(245, 158, 11, 0.06);
  border: 2px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: center;
}

/* Modal PRO - Grade de Benefícios e Preços */
.pro-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pro-benefit-item {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pro-benefit-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.pro-benefit-item strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}

.pro-benefit-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.pro-comparativo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pro-comparativo-table th,
.pro-comparativo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.pro-comparativo-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-size: 12px;
}

.pro-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.pro-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pro-price-card.featured {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.pro-badge-destaque {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pro-price-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.pro-price-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 8px 0 2px 0;
}

.pro-price-installment {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 8px;
}

.pro-price-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.print-watermark-free {
  display: none;
}

/* ==========================================================================
   TELA INICIAL: MENU PRINCIPAL DE 4 PORTAS DE ENTRADA
   ========================================================================== */

.home-main-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.home-menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  width: 100%;
}

.home-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.home-menu-icon {
  font-size: 32px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.home-menu-content {
  flex: 1;
}

.home-menu-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.home-menu-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.home-menu-arrow {
  font-size: 18px;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-menu-card:hover .home-menu-arrow {
  transform: translateX(4px);
  color: #fff;
}

.home-menu-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Cores específicas de cada botão */
.card-modo-livre {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 100%);
}
.card-modo-livre:hover {
  border-color: var(--accent-gold);
}
.card-modo-livre .home-menu-icon {
  background: rgba(212, 175, 55, 0.15);
}
.card-modo-livre .home-menu-title {
  color: var(--accent-gold);
}

.card-modo-ia {
  border-color: rgba(147, 51, 234, 0.4);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
}
.card-modo-ia:hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.25);
}
.card-modo-ia .home-menu-icon {
  background: rgba(147, 51, 234, 0.2);
}
.card-modo-ia .home-menu-badge {
  background: rgba(147, 51, 234, 0.25);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.4);
}
.card-modo-ia .home-menu-title {
  color: #e9d5ff;
}

.card-modo-busca {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-card) 100%);
}
.card-modo-busca:hover {
  border-color: #60a5fa;
}
.card-modo-busca .home-menu-icon {
  background: rgba(59, 130, 246, 0.15);
}
.card-modo-busca .home-menu-title {
  color: #93c5fd;
}

.card-modo-exemplos {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}
.card-modo-exemplos:hover {
  border-color: #34d399;
}
.card-modo-exemplos .home-menu-icon {
  background: rgba(16, 185, 129, 0.15);
}
.card-modo-exemplos .home-menu-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.card-modo-exemplos .home-menu-title {
  color: #a7f3d0;
}

/* ==========================================================================
   MODAIS: GALERIA DE SERMÕES PRONTOS & BUSCA DE MINISTRADOS
   ========================================================================== */

.prontos-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.prontos-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prontos-tab-btn:hover {
  color: #fff;
  border-color: var(--accent-gold);
}

.prontos-tab-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
}

.prontos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}

.pronto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.pronto-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.pronto-badge-tema {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.pronto-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.pronto-passage {
  font-size: 13px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.pronto-preview-topics {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.pronto-preview-topics li {
  margin-bottom: 3px;
  list-style: none;
}

.pronto-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Modal de Busca de Ministrados */
.busca-filtros-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .busca-filtros-bar {
    grid-template-columns: 1fr;
  }
}

.busca-resultados-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.item-sermao-ministrado {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.item-sermao-ministrado-info {
  flex: 1;
}

.ministrado-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ministrado-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PAREAMENTO WEB / COMPUTADOR (GATE DE 6 DÍGITOS)
   ========================================================================== */
.gate-web-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483646;
  background: #090b10;
  color: #fff;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gate-web-card {
  width: 100%;
  max-width: 540px;
  margin: auto;
  background: #12151e;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(59, 130, 246, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.gate-web-icon-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.gate-web-icon {
  font-size: 34px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 2px solid rgba(96, 165, 250, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gate-web-icon-separator {
  font-size: 22px;
  color: #93c5fd;
  font-weight: 800;
}

.gate-web-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}

.gate-web-title {
  font-size: 19px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.gate-web-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 22px;
}

.gate-web-passos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.gate-web-passo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passo-numero {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.passo-texto {
  font-size: 13px;
  color: #e2e8f0;
}

.passo-texto strong {
  color: #93c5fd;
}

.web-codigo-container {
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(96, 165, 250, 0.55);
  border-radius: 14px;
  padding: 22px 16px;
  margin: 0 0 16px 0;
  text-align: center;
}

.web-codigo-display {
  font-family: "Courier New", Courier, monospace, sans-serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 12px;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.45);
  margin-bottom: 8px;
  padding-left: 12px;
}

.web-codigo-timer {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
}

.web-codigo-feedback {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.gate-web-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
}

.input-codigo-pareamento {
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 8px;
  font-family: monospace;
  background: #090b10;
  color: #93c5fd;
  border: 2px solid rgba(96, 165, 250, 0.6);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0 auto;
  display: block;
}

.input-codigo-pareamento:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   MODO PÚLPITO: SELETOR DE VERSÃO (PONTOS PRINCIPAIS vs SERMÃO COMPLETO)
   ========================================================================== */
.pulpit-version-bar {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 56px;
  z-index: 90;
  backdrop-filter: blur(8px);
}

.pulpit-version-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 4px;
}

.btn-pulpit-versao {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-pulpit-versao:hover {
  color: #fff;
}

.btn-pulpit-versao.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0c0d11;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Temas para o seletor de versão do púlpito */
.tema-sepia .pulpit-version-bar {
  background: rgba(244, 230, 201, 0.85);
  border-bottom-color: rgba(60, 40, 20, 0.15);
}
.tema-sepia .pulpit-version-toggle {
  background: rgba(60, 40, 20, 0.08);
  border-color: rgba(60, 40, 20, 0.2);
}
.tema-sepia .btn-pulpit-versao {
  color: #78350f;
}
.tema-sepia .btn-pulpit-versao.active {
  background: #92400e;
  color: #fff;
}

.tema-claro .pulpit-version-bar {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: #e2e8f0;
}
.tema-claro .pulpit-version-toggle {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.tema-claro .btn-pulpit-versao {
  color: #475569;
}
.tema-claro .btn-pulpit-versao.active {
  background: #0f172a;
  color: #fff;
}

/* ==========================================================================
   CARDS DE PONTOS PRINCIPAIS / VISÃO RÁPIDA (MODO PÚLPITO)
   ========================================================================== */
.pulpit-quick-points-card {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-left: 5px solid var(--accent-gold);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 14px 0 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.pulpit-quick-points-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulpit-quick-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pulpit-quick-point-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.18em;
  line-height: 1.5;
  font-weight: 600;
  color: #f8fafc;
}

.pulpit-quick-point-item .point-bullet {
  color: var(--accent-gold);
  font-size: 1.1em;
  flex-shrink: 0;
}

.pulpit-quick-point-item .point-text {
  flex: 1;
}

/* Temas para os Cards de Pontos Principais */
.tema-noturno .pulpit-quick-points-card {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.3);
  border-left-color: #fbbf24;
}
.tema-noturno .pulpit-quick-point-item {
  color: #f1f5f9;
}

.tema-sepia .pulpit-quick-points-card {
  background: #f4e5cb;
  border-color: rgba(146, 64, 14, 0.3);
  border-left-color: #92400e;
}
.tema-sepia .pulpit-quick-points-badge {
  color: #92400e;
}
.tema-sepia .pulpit-quick-point-item {
  color: #2b1f14;
}
.tema-sepia .pulpit-quick-point-item .point-bullet {
  color: #92400e;
}

.tema-claro .pulpit-quick-points-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-left-color: #0f172a;
}
.tema-claro .pulpit-quick-points-badge {
  color: #0f172a;
}
.tema-claro .pulpit-quick-point-item {
  color: #0f172a;
}
.tema-claro .pulpit-quick-point-item .point-bullet {
  color: #2563eb;
}

/* ==========================================================================
   OTIMIZAÇÕES RESPONSIVAS PARA COMPUTADOR / NOTEBOOK (DESKTOP / WIDESCREEN)
   ========================================================================== */
@media (min-width: 900px) {
  #app-container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .top-header {
    padding: 16px 24px;
  }

  .home-main-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .editor-content-area {
    max-width: 960px;
    margin: 0 auto;
  }

  .pulpit-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 40px;
  }

  .pulpit-bar {
    padding: 12px 32px;
  }

  .gate-web-card {
    padding: 40px 36px;
  }
}



