/* ==========================================================
   MY.LOVEBIBLE — Design System Mobile-First (By James Dev)
   Paleta: Noite Estelar + Ouro Fino + Vidro Fosco (Glassmorphism)
   Tipografia: Fraunces (display) / Inter (corpo) / JetBrains Mono (refs)
   ========================================================== */

:root {
  /* Cores Base */
  --bg-void: #060709;
  --bg-base: #0a0c0f;
  --bg-elevated: #111419;
  --bg-elevated-2: #181d24;
  --glass-bg: rgba(17, 20, 25, 0.85);
  --glass-border: rgba(212, 175, 55, 0.2);
  
  --line: #222730;
  --line-soft: #171b22;

  /* Texto */
  --ink-100: #f5f1eb;
  --ink-70: #cfc8be;
  --ink-50: #948e84;
  --ink-30: #5e5950;

  /* Acentos Premium */
  --gold: #d4af37;
  --gold-bright: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8210 100%);

  --terracota: #c25343;
  --oliva: #708560;
  --azul: #6486a6;
  --violeta: #8e68b0;
  --esmeralda: #479e7e;

  /* Tipografia */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Geometria e Efeitos */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  height: 100%;
  height: -webkit-fill-available;
}

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

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink-100);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--gold);
  color: var(--bg-void);
}

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

/* ==========================================================
   PROGRESS BAR
   ========================================================== */
.progress-global {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  width: 0%;
  z-index: 1000;
  transition: width 0.15s ease;
  box-shadow: 0 0 10px var(--gold);
}

/* ==========================================================
   TOPBAR & LOGOTIPO OFICIAL
   ========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.topbar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-100);
}

.brand__logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand__logo-img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand__accent {
  color: var(--gold-bright);
}

.brand__author {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--ink-50);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* TABS DESKTOP */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-elevated);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--ink-50);
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.nav-tab:hover {
  color: var(--ink-100);
}

.nav-tab.active {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.nav-tab.active svg {
  stroke: var(--bg-void);
}

/* BOTÃO DE PESQUISA TOPBAR */
.topbar__actions {
  display: flex;
  align-items: center;
}

.bible-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bible-search-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
}

/* ==========================================================
   CONTEÚDO PRINCIPAL
   ========================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Em mobile, o scroll acontece dentro de cada aba */
  min-height: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

/* ============ MOBILE BOTTOM NAVIGATION ============ */
.mobile-bottom-nav {
  display: none; /* escondido no desktop */
}

@media (max-width: 767px) {
  /* App Shell: corpo tela cheia, sem scroll da página inteira */
  html, body {
    height: 100%;
    overflow: hidden;
  }

  /* Header fixo topo */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }

  /* Conteúdo principal ocupa o espaço entre topbar e bottomnav */
  .main-content {
    position: fixed;
    top: 57px;   /* altura do topbar */
    left: 0;
    right: 0;
    bottom: 65px; /* altura da bottomnav */
    overflow: hidden;
    flex: unset;
  }

  /* Cada aba ocupa 100% e rola internamente */
  .tab-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .tab-pane.active {
    display: block;
  }

  /* Nav inferior — barra fixa app-like */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 12, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 0;
    /* Safe area para iPhone com notch/home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 0;
    background: none;
    border: none;
    color: var(--ink-50);
    font-family: var(--f-body);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 50px;
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
  }

  .mobile-nav-item span {
    display: block;
    line-height: 1;
  }

  .mobile-nav-item.active {
    color: var(--gold-bright);
  }

  .mobile-nav-item.active svg {
    transform: scale(1.12);
  }

  /* Ocultar tabs de desktop no mobile */
  .desktop-only {
    display: none !important;
  }

  /* Ajustar saída do topbar para mobile (sem tabs, mais compacto) */
  .topbar__inner {
    padding: 0.6rem 1rem;
  }

  /* Esconder texto do botão de busca no mobile */
  .search-btn__text {
    display: none;
  }
}

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

/* ==========================================================
   HERO — SEÇÃO PARÁBOLAS & LOGOTIPO EMBLÉMICO
   ========================================================== */
.hero {
  position: relative;
  min-height: 500px;
  padding: 4rem 1.25rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 75%);
}

#seedCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__emblem-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hero__logo-badge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold-bright);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 70px rgba(212, 175, 55, 0.25);
  animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% { transform: translateY(0px); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); }
  100% { transform: translateY(-8px); filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__badge {
  padding: 0.2rem 0.6rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-bright);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  min-height: 48px;
}

.hero__cta.primary {
  background: var(--gold-gradient);
  color: var(--bg-void);
  border: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.hero__cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.hero__cta.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-100);
  border: 1px solid var(--glass-border);
}

.hero__cta.secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.stat__num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--ink-50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ==========================================================
   CONTROLES & FILTROS DAS PARÁBOLAS
   ========================================================== */
.controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  min-height: 48px;
  transition: all 0.25s ease;
}

.search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.search svg {
  color: var(--ink-50);
  flex-shrink: 0;
}

.search input {
  width: 100%;
  padding: 0.8rem 0.6rem;
  background: transparent;
  border: none;
  color: var(--ink-100);
  font-size: 0.95rem;
  font-family: var(--f-body);
}

.search input::placeholder {
  color: var(--ink-50);
}

.search input:focus {
  outline: none;
}

.chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.chip {
  padding: 0.5rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}

.chip:hover {
  border-color: var(--chip-color, var(--gold));
  color: var(--ink-100);
}

.chip.active {
  background: var(--chip-color, var(--gold));
  color: #060709;
  font-weight: 700;
  border-color: transparent;
}

.result-count {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-50);
  margin-top: 0.8rem;
}

/* ==========================================================
   GRID DAS PARÁBOLAS
   ========================================================== */
.grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--gold));
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px var(--card-color, var(--gold-glow));
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.card__num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--card-color, var(--gold));
  font-weight: 600;
}

.card__tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
}

.card__title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink-100);
}

.card__ref {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-50);
  margin-bottom: 0.8rem;
}

.card__resumo {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.card__bottom {
  display: flex;
  justify-content: flex-end;
}

.card__arrow {
  color: var(--card-color, var(--gold));
}

/* ==========================================================
   SEÇÃO BÍBLIA SAGRADA (DE A A Z)
   ========================================================== */
.biblia-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 75%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.biblia-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.biblia-hero__emblem {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  margin: 0 auto 1rem;
  display: block;
}

.biblia-hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.biblia-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
}

.biblia-hero__title em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.biblia-hero__sub {
  color: var(--ink-70);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.biblia-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

.book-chips {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.book-chip {
  padding: 0.5rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}

.book-chip.active {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 700;
  border-color: transparent;
}

/* GRID DOS 66 LIVROS DA BÍBLIA */
.books-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.book-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.book-card:hover, .book-card:active {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
}

.book-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.book-card__abbrev {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.book-card__testament {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.book-card__testament.VT {
  background: rgba(194, 83, 67, 0.15);
  color: #e57363;
  border: 1px solid rgba(194, 83, 67, 0.3);
}

.book-card__testament.NT {
  background: rgba(71, 158, 126, 0.15);
  color: #64c29e;
  border: 1px solid rgba(71, 158, 126, 0.3);
}

.book-card__name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-100);
  margin: 0 0 0.3rem;
}

.book-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-50);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================
   LEITOR DE CAPÍTULOS DA BÍBLIA (READER VIEW)
   ========================================================== */
.reader-view {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
  animation: fadeIn 0.3s ease;
}

.reader-view.active {
  display: block;
}

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-100);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
}

.reader-back-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.reader-title-group {
  text-align: center;
}

.reader-book-title {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-100);
}

.reader-book-meta {
  font-size: 0.82rem;
  color: var(--gold);
  font-family: var(--f-mono);
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.trad-select {
  padding: 0.5rem 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-100);
  font-size: 0.85rem;
  font-family: var(--f-body);
  cursor: pointer;
  min-height: 38px;
}

.font-controls {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.font-btn {
  padding: 0.4rem 0.7rem;
  background: transparent;
  border: none;
  color: var(--ink-70);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 38px;
}

.font-btn:hover {
  color: var(--gold-bright);
}

/* SELETOR DE CAPÍTULOS HORIZONTAL */
.chapter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.6rem 0 1rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: thin;
}

.chapter-chip {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-70);
  font-family: var(--f-mono);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chapter-chip.active {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 700;
  border-color: transparent;
}

/* CORPO DO TEXTO BÍBLICO */
.reader-content {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  line-height: 1.8;
  font-size: var(--user-font-size, 1.1rem);
}

.bible-verse-item {
  margin-bottom: 0.8rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
}

.verse-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78em;
  font-weight: 700;
  color: var(--gold);
  margin-right: 0.5rem;
  vertical-align: super;
}

.bible-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-50);
  font-style: italic;
}

/* NAVEGAÇÃO DE CAPÍTULO */
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.reader-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-100);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.reader-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
}

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

.reader-nav-info {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-50);
}

/* ==========================================================
   BARRA DE NAVEGAÇÃO MOBILE
   ========================================================== */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 900;
    background: rgba(10, 12, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--ink-50);
    font-family: var(--f-body);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .mobile-nav-item svg {
    stroke: var(--ink-50);
    transition: stroke 0.2s ease;
  }

  .mobile-nav-item.active {
    color: var(--gold-bright);
    font-weight: 600;
  }

  .mobile-nav-item.active svg {
    stroke: var(--gold-bright);
  }
}

/* ==========================================================
   OVERLAY DAS PARÁBOLAS & BOTÃO DE FECHAR
   ========================================================== */
#closeDetail {
  display: none !important;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 350;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  color: var(--ink-100);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detail.open + #closeDetail,
.detail.open ~ #closeDetail {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

#closeDetail:hover {
  background: var(--gold-gradient);
  color: var(--bg-void);
  border-color: transparent;
}

.detail {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-void);
  overflow-y: auto;
  display: none;
}

.detail.open {
  display: block;
}

.detail__hero {
  padding: 5rem 1.25rem 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.detail__tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--card-color, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.detail__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 0.8rem;
}

.detail__ref {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  color: var(--ink-50);
  margin-bottom: 1.5rem;
}

.detail__resumo {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-70);
}

.scene {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  opacity: 0.2;
  transform: translateY(20px);
  transition: all 0.5s var(--ease);
}

.scene.visible {
  opacity: 1;
  transform: translateY(0);
}

.scene__inner {
  max-width: 680px;
  text-align: center;
}

.scene__num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

.scene__text {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--ink-100);
}

.teaching {
  max-width: 800px;
  margin: 3rem auto 5rem;
  padding: 0 1.25rem;
}

.teaching__verse {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--gold-bright);
  border-left: 3px solid var(--card-color, var(--gold));
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.teaching__block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.teaching__label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--card-color, var(--gold));
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.teaching__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 42px;
}

.detail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-btn, .next-btn {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  min-height: 44px;
}

.back-btn {
  background: var(--bg-elevated);
  color: var(--ink-100);
}

.next-btn {
  background: var(--card-color, var(--gold));
  color: #060709;
  border-color: transparent;
}

/* ==========================================================
   MODAL DE PESQUISA BÍBLICA GLOBAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 7, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

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

.modal-badge {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border-radius: var(--radius-pill);
}

.modal-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  margin: 0.2rem 0 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--ink-50);
  cursor: pointer;
  padding: 0.4rem;
  min-height: 40px;
  min-width: 40px;
}

.modal-close:hover { color: var(--ink-100); }

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.search-submit-btn {
  padding: 0.5rem 1rem;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-void);
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.search-result-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.search-result-ref {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.search-result-text {
  font-size: 0.92rem;
  color: var(--ink-70);
  line-height: 1.5;
}

.search-result-text mark {
  background: rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  padding: 0 0.2rem;
  border-radius: 2px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-base);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.footer__logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.footer__by {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-50);
}

.footer__notes {
  font-size: 0.82rem;
  color: var(--ink-50);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================
   RESPONSIVIDADE CELULAR (MOBILE MEDIA QUERIES)
   ========================================================== */
@media (max-width: 768px) {
  .topbar__inner {
    padding: 0.65rem 1rem;
  }
  .brand__name {
    font-size: 1.1rem;
  }
  .search-btn__text {
    display: none;
  }
  .hero {
    min-height: 380px;
    padding: 2.5rem 1rem 2rem;
  }
  .hero__logo-badge {
    width: 90px;
    height: 90px;
  }
  .hero__stats {
    gap: 1.2rem;
  }
  .stat__num {
    font-size: 1.6rem;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .book-card {
    padding: 1rem;
  }
  .reader-content {
    padding: 1.25rem;
    font-size: 1rem;
  }
  .reader-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .reader-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================
   PAINEL DE ACESSO ELEGANTE (PORTAL HERO & ACCESS GRID)
   ========================================================== */
.portal-hero {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 75%);
  border-bottom: 1px solid var(--line);
}

.portal-hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.portal-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.portal-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.portal-emblem__img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold-bright);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 70px rgba(212, 175, 55, 0.25);
  animation: floatLogo 4s ease-in-out infinite alternate;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.portal-badge {
  padding: 0.2rem 0.6rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
}

.portal-title {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.portal-title em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* CARTÃO DE VERSÍCULO / MENSAGEM DO DIA */
.daily-verse-card {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 25px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
}

.daily-verse-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.daily-verse-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.daily-verse-card__badge {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.daily-verse-card__refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.daily-verse-card__refresh:hover {
  background: rgba(212, 175, 55, 0.25);
}

.daily-verse-card__text {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-100);
  margin: 0 0 0.5rem;
}

.daily-verse-card__ref {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.daily-verse-card__reflection {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0;
}

/* ACCESS GRID (BOTÕES DO PAINEL) */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.access-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.access-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
}

.access-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.access-card__body h3 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--ink-100);
}

.access-card__body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 1.2rem;
}

.access-card__link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--gold-bright);
  font-weight: 600;
}

/* ==========================================================
   INTERPRETADOR BÍBLICO INTELIGENTE
   ========================================================== */
.interpreter-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(142, 104, 176, 0.15) 0%, transparent 75%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.interpreter-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.interpreter-emblem {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violeta);
  box-shadow: 0 0 25px rgba(142, 104, 176, 0.4);
  margin: 0 auto 1rem;
  display: block;
}

.interpreter-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violeta);
}

.interpreter-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
}

.interpreter-title em {
  font-style: italic;
  background: linear-gradient(135deg, #c4a1eb 0%, #8e68b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.interpreter-sub {
  color: var(--ink-70);
  font-size: 1rem;
  line-height: 1.6;
}

.interpreter-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.interpreter-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-100);
}

.form-control {
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--ink-100);
  font-family: var(--f-body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--violeta);
  box-shadow: 0 0 15px rgba(142, 104, 176, 0.2);
}

.tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.tone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--ink-70);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.tone-chip:hover {
  border-color: var(--violeta);
  color: var(--ink-100);
}

.tone-chip input[type="checkbox"] {
  accent-color: var(--violeta);
}

.tone-chip-all {
  padding: 0.5rem 1rem;
  background: rgba(142, 104, 176, 0.15);
  border: 1px solid rgba(142, 104, 176, 0.4);
  color: #c4a1eb;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tone-chip-all:hover {
  background: rgba(142, 104, 176, 0.3);
}

.checkbox-group {
  margin-top: 0.5rem;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-70);
}

.custom-checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.interpreter-submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #a879d6 0%, #8e68b0 50%, #68428a 100%);
  border: none;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(142, 104, 176, 0.4);
  transition: all 0.25s var(--ease);
}

.interpreter-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(142, 104, 176, 0.6);
}

/* ÁREA DE RESULTADOS DO INTERPRETADOR */
.interpreter-result {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  animation: fadeIn 0.4s var(--ease);
}

.interp-header-box {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.interp-ref-title {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 0.5rem;
}

.interp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interp-tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
}

.interp-section {
  margin-bottom: 2.5rem;
}

.interp-section-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-100);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.interp-section-num {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.interp-box {
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-70);
}

.interp-box p {
  margin: 0 0 1rem;
}

.interp-box p:last-child {
  margin-bottom: 0;
}

.cross-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.cross-ref-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

.cross-ref-item strong {
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.2rem;
}

/* ==========================================================
   CENTRAL DE CONFIGURAÇÕES & SIMULADOR DE CELULAR
   ========================================================== */
.modal-card--lg {
  max-width: 900px !important;
}

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.settings-tab-btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-tab-btn.active {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 700;
  border-color: transparent;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* LAYOUT DO SIMULADOR DO CELULAR */
.simulator-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

/* MAQUETE DO CELULAR */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.2);
  border: 4px solid #333;
  margin: 0 auto;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #111;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 1rem;
  transition: background 0.3s ease;
}

.phone-screen.theme-dark {
  background: linear-gradient(180deg, #07080a 0%, #151921 100%);
}

.phone-screen.theme-emerald {
  background: linear-gradient(180deg, #091a13 0%, #14382a 100%);
}

.phone-screen.theme-royal {
  background: linear-gradient(180deg, #15091a 0%, #301438 100%);
}

.phone-screen.theme-sunset {
  background: linear-gradient(180deg, #241109 0%, #4a2414 100%);
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.phone-widget {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1rem;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.phone-widget__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  opacity: 0.8;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.phone-widget__text {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.phone-widget__ref {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
}

.simulator-controls h4 {
  margin: 0 0 1rem;
  font-family: var(--f-display);
}

.sim-group {
  margin-bottom: 1rem;
}

.sim-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--ink-70);
}

.sim-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.sim-btn {
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn.primary {
  background: var(--gold-gradient);
  color: var(--bg-void);
  border: none;
}

.sim-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--ink-100);
}

.saved-messages-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
}

.saved-msg-item {
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-msg-item strong {
  color: var(--gold-bright);
}

.saved-msg-del {
  background: transparent;
  border: none;
  color: #e57363;
  cursor: pointer;
  font-weight: bold;
}

/* ==========================================================
   MODAL DE LOGIN & CADASTRO (AUTH)
   ========================================================== */
.topbar-action-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--ink-100);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 0.4rem;
}

.topbar-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.auth-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.4rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-70);
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 700;
  border-color: transparent;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.profile-info-box {
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--ink-70);
}

