/* ════════════════════════════════════════════════════
   VIVA A PALAVRA PRO — styles.css
   Design System — Estilo Dourado & Naval Premium
════════════════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Nunito:wght@300;400;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ── DESIGN TOKENS (LIGHT) ── */
:root {
  /* Gold palette */
  --gold: #c9a84c;
  --gold-light: #e8d08a;
  --gold-pale: #f5ecd0;
  --gold-glow: rgba(201, 168, 76, 0.18);

  /* Navy palette */
  --navy: #1a2744;
  --navy-mid: #243460;
  --navy-light: #2e3f78;

  /* Brand (mantém compatibilidade) */
  --brand-1: #c9a84c;
  --brand-2: #1a2744;
  --brand-3: #243460;
  --brand-light: #f5ecd0;
  --brand-mid: #e8d08a;

  /* Backgrounds */
  --bg: #faf8f3;
  --bg-2: #ffffff;
  --bg-3: #f0ead8;
  --surface: #ffffff;
  --surface-2: #f5ecd0;
  --cream: #faf8f3;

  /* Text */
  --text-1: #1a2744;
  --text-2: #3d3d5c;
  --text-3: #8a7f6e;
  --text-inv: #ffffff;

  /* Borders */
  --border: rgba(201, 168, 76, 0.25);
  --border-focus: #c9a84c;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 39, 68, 0.12);
  --shadow-lg: 0 8px 36px rgba(26, 39, 68, 0.18);
  --shadow-card: 0 2px 14px rgba(26, 39, 68, 0.08), 0 0 0 1px rgba(201, 168, 76, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', sans-serif;
  --font-reading: 'Lora', Georgia, serif;

  /* Sizing */
  --topbar-h: 60px;
  --bottomnav-h: 68px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .15s;
  --t-med: .25s;
  --t-slow: .4s;
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  --bg: #0f1629;
  --bg-2: #1a2744;
  --bg-3: #1e2d52;
  --surface: #1a2744;
  --surface-2: #243460;
  --cream: #0f1629;
  --text-1: #f0eadb;
  --text-2: #c9bfa8;
  --text-3: #8a7f6e;
  --border: rgba(201, 168, 76, 0.18);
  --border-focus: #e8d08a;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
  --brand-light: #1e2d52;
  --brand-mid: #243460;
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background pattern sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(26, 39, 68, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ════════════════════════════════════
   SPLASH SCREEN
════════════════════════════════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, #1a2744 0%, #243460 50%, #0f1629 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  text-align: center;
}

.splash-cross {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 0 auto 24px;
}

.splash-cross .cross-v {
  position: absolute;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.splash-cross .cross-h {
  position: absolute;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 4px;
  top: 35%;
  left: 0;
}

.cross-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.35) 0, transparent 70%);
  animation: crossGlow 2s ease-in-out infinite alternate;
}

@keyframes crossGlow {
  from {
    opacity: .5;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.splash-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--gold-light);
}

.splash-sub {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 4px;
}

.splash-sub.standard {
  color: #b0c4de;
  text-shadow: 0 0 10px rgba(176, 196, 222, 0.4);
}

.splash-sub.pro {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(201, 168, 76, 0.6);
}

.splash-loader {
  width: 160px;
  height: 3px;
  background: rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  margin: 28px auto 0;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: loadBar 1.8s var(--ease) forwards;
}

@keyframes loadBar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ════════════════════════════════════
   TOP BAR
════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px 0 8px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-btn {
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--text-1);
  transition: background var(--t-fast);
}

.topbar-btn:hover {
  background: var(--bg-3);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.hamburger i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: all var(--t-med);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.brand-cross {
  width: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
}

.brand-cross i {
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
  display: block;
}

.brand-cross i:first-child {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.brand-cross i:last-child {
  width: 75%;
  height: 3px;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-1);
}

.brand-badge {
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .15em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
}

.brand-badge.standard {
  background: linear-gradient(135deg, #a0b2c6, #d1e0f0);
  color: #1a2744;
  box-shadow: 0 0 10px rgba(160, 178, 198, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-badge.pro {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
  font-size: 1.1rem;
  font-weight: 700;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--bg-3);
  color: var(--gold);
}

/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-med) var(--ease);
}

.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 201;
  width: min(280px, 85vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 48px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar svg {
  width: 24px;
  height: 24px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-1);
}

.user-sub {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 1px;
}

.sidebar-close {
  color: var(--text-3);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.sidebar-close:hover {
  background: var(--bg-3);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-item:hover {
  background: var(--bg-3);
  color: var(--gold);
}

.sidebar-item.active {
  background: var(--gold-pale);
  color: var(--navy);
  font-weight: 700;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.sidebar-version {
  font-size: .72rem;
  color: var(--text-3);
}

/* ════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content {
  flex: 1;
  padding-top: var(--topbar-h);
  padding-bottom: var(--bottomnav-h);
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.view {
  animation: viewIn .3s var(--ease) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════
   HOME VIEW
════════════════════════════════════ */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 28px 24px 32px;
  transition: background 0.8s var(--ease);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 22, 41, 0.95) 0%, rgba(15, 22, 41, 0.4) 60%, rgba(15, 22, 41, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-share-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-med);
  box-shadow: var(--shadow-sm);
}

.hero-share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}

.hero-share-btn svg {
  width: 20px;
  height: 20px;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.18), transparent 70%);
  animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -40px;
  animation-delay: -2s;
}

.orb-3 {
  width: 160px;
  height: 160px;
  top: 40px;
  left: 40%;
  animation-delay: -4s;
}

.orb-4 {
  width: 120px;
  height: 120px;
  top: 60px;
  left: 10%;
  animation-delay: -3s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-greeting {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: white;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-verse-preview {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
  max-width: 280px;
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transition: all var(--t-med);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

.hero-cta:hover {
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.6);
  transform: translateY(-2px);
}

.home-section {
  padding: 24px 20px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
}

.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--t-med);
}

.continue-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.continue-icon {
  font-size: 1.6rem;
}

.continue-info {
  flex: 1;
}

.continue-book {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-1);
}

.continue-chap {
  display: block;
  font-size: .78rem;
  color: var(--text-3);
  margin-top: 2px;
}

.continue-arrow {
  font-size: 1.4rem;
  color: var(--gold);
}

.testament-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.testament-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--t-med);
}

.testament-pill.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}

.pill-icon {
  font-size: 1.4rem;
}

.pill-count {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-3);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding-bottom: 20px;
}

/* ════════════════════════════════════
   BOOK CARDS
════════════════════════════════════ */
.book-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-med);
  text-align: center;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.book-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.book-card .book-abbr {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
}

.book-card .book-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.book-card .book-chaps {
  font-size: .65rem;
  color: var(--text-3);
}

/* ════════════════════════════════════
   BIBLE VIEW
════════════════════════════════════ */
.bible-header {
  padding: 28px 20px 16px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: .02em;
}

.page-sub {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
}

.bible-search {
  padding: 0 20px 16px;
  display: flex;
  gap: 10px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: border-color var(--t-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--gold);
}

.search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: .88rem;
  color: var(--text-1);
}

.search-input-wrap input::placeholder {
  color: var(--text-3);
}

.trans-select {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-1);
  font-weight: 700;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.trans-select:focus {
  border-color: var(--gold);
}

.testament-tabs {
  display: flex;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2.5px solid transparent;
  transition: all var(--t-fast);
  text-align: center;
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.books-list {
  padding: 12px 16px;
}

.book-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--border);
}

.book-list-item:last-child {
  border-bottom: none;
}

.book-list-item:hover {
  background: var(--bg-3);
}

.bk-num {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
  min-width: 24px;
  text-align: center;
}

.bk-info {
  flex: 1;
}

.bk-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-1);
}

.bk-meta {
  font-size: .73rem;
  color: var(--text-3);
  margin-top: 1px;
}

.bk-arrow {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ════════════════════════════════════
   CHAPTERS VIEW
════════════════════════════════════ */
.page-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

.back-btn:hover {
  background: var(--bg-3);
  color: var(--gold);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  padding: 8px 20px 24px;
}

.chap-btn {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-med);
  box-shadow: var(--shadow-card);
}

.chap-btn:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
  transform: scale(1.05);
}

.chap-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}

/* ════════════════════════════════════
   READING VIEW
════════════════════════════════════ */
.reading-topbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.reading-title-block {
  flex: 1;
}

.reading-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
}

.reading-trans {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  background: var(--gold-pale);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.reading-actions {
  display: flex;
  gap: 2px;
}

.font-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 8px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.font-menu button {
  padding: 4px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-2);
}

.font-menu button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#fontSizeLabel {
  font-size: .8rem;
  color: var(--text-3);
  min-width: 40px;
  text-align: center;
}

.reading-content {
  padding: 48px 0 20px;
}

.verses-container {
  padding: 24px 20px 16px;
}

/* Reading Skeleton */
.reading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk-line {
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--border), var(--bg-3), var(--border));
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-long {
  width: 100%;
}

.sk-med {
  width: 72%;
}

.sk-short {
  width: 45%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Verse items */
.verse-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.verse-item:last-child {
  border-bottom: none;
}

.verse-item:hover {
  background: var(--bg-3);
}

.verse-item.highlighted {
  background: var(--gold-pale);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.verse-num {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
  min-width: 20px;
  padding-top: 5px;
  flex-shrink: 0;
}

.verse-text {
  font-family: var(--font-reading);
  line-height: 1.85;
  color: var(--text-2);
  transition: font-size var(--t-fast);
}

.chapter-nav {
  display: flex;
  gap: 10px;
  padding: 16px 20px 8px;
}

.chap-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-2);
  transition: all var(--t-med);
  box-shadow: var(--shadow-card);
}

.chap-nav-btn svg {
  width: 16px;
  height: 16px;
}

.chap-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.chap-nav-btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.3);
}

.chap-nav-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(26, 39, 68, 0.5);
}

/* ════════════════════════════════════
   FAVORITES VIEW
════════════════════════════════════ */
.favorites-list {
  padding: 8px 16px 24px;
}

.fav-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: fadeUp .3s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fav-ref {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fav-text {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-2);
}

.fav-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.fav-action-btn {
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}

.fav-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.fav-action-btn.danger:hover {
  border-color: #EF4444;
  color: #EF4444;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.empty-sub {
  font-size: .85rem;
  line-height: 1.5;
}

/* ════════════════════════════════════
   DEVOTIONAL VIEW
════════════════════════════════════ */
.devotional-hero {
  background: linear-gradient(145deg, #1a2744 0%, #243460 100%);
  padding: 36px 24px 28px;
  position: relative;
  overflow: hidden;
}

.devotional-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201, 168, 76, 0.12), transparent);
}

.dev-date {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}

.dev-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: white;
  letter-spacing: .02em;
  position: relative;
}

.devotional-content {
  padding: 24px 20px;
}

.dev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.dev-verse-ref {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dev-verse-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-1);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dev-commentary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dev-commentary-text {
  font-family: var(--font-reading);
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-2);
}

.dev-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.dev-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: .82rem;
  text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--t-med);
}

.dev-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dev-btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border-color: transparent;
}

.dev-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-3);
  font-style: italic;
}

/* ════════════════════════════════════
   HISTORY VIEW
════════════════════════════════════ */
.history-list {
  padding: 8px 16px 24px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-card);
}

.history-item:hover {
  border-color: var(--gold);
}

.history-icon {
  font-size: 1.4rem;
}

.history-info {
  flex: 1;
}

.history-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-1);
}

.history-meta {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 2px;
}

.history-time {
  font-size: .7rem;
  color: var(--gold);
}

/* ════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  overflow-y: auto;
  animation: slideDown .25s var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.search-container {
  padding: 60px 20px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 2px solid var(--gold);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-1);
}

.search-bar input::placeholder {
  color: var(--text-3);
}

.search-bar button {
  font-size: 1rem;
  color: var(--text-3);
  padding: 4px 8px;
  border-radius: 6px;
}

.search-bar button:hover {
  color: var(--gold);
  background: var(--bg-3);
}

.search-hint {
  text-align: center;
  padding: 40px;
  color: var(--text-3);
  font-size: .9rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-card);
}

.search-result-item:hover {
  border-color: var(--gold);
}

.search-result-icon {
  font-size: 1.2rem;
}

.search-result-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-1);
}

.search-result-meta {
  font-size: .72rem;
  color: var(--text-3);
}

/* ════════════════════════════════════
   VERSE BOTTOM SHEET
════════════════════════════════════ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-med);
}

.sheet-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.verse-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 401;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 12px 20px 36px;
  box-shadow: 0 -8px 40px rgba(26, 39, 68, 0.2), 0 0 0 1px rgba(201, 168, 76, 0.15);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.verse-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
  cursor: pointer;
}

.sheet-verse-ref {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sheet-verse-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border-left: 3px solid var(--gold);
  position: relative;
}

.sheet-verse-text::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.1;
  position: absolute;
  top: -10px;
  left: 8px;
  line-height: 1;
  pointer-events: none;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sheet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-2);
  transition: all var(--t-fast);
}

.sheet-btn svg {
  width: 15px;
  height: 15px;
}

.sheet-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sheet-btn.fav-btn.active {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #EF4444;
}

.sheet-btn.fav-btn.active svg {
  fill: #EF4444;
  stroke: #EF4444;
}

/* Reflection Section */
.sheet-ai {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.reflection-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.reflection-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-3);
  transition: all var(--t-med) var(--ease);
  cursor: pointer;
}

.reflection-tab svg {
  width: 16px;
  height: 16px;
}

.reflection-tab:hover {
  border-color: var(--brand-1);
  color: var(--text-2);
}

.reflection-tab.active {
  background: linear-gradient(135deg, var(--brand-light), var(--bg-3));
  border-color: var(--brand-1);
  color: var(--brand-1);
}

.reflection-content {
  animation: fadeUp .25s var(--ease);
}

.reflection-input {
  width: 100%;
  height: 120px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  font-family: var(--font-reading);
  font-size: .9rem;
  color: var(--text-1);
  resize: none;
  outline: none;
  transition: border-color var(--t-fast);
}

.reflection-input::placeholder {
  color: var(--text-3);
}

.reflection-input:focus {
  border-color: var(--brand-1);
}

.reflection-counter {
  text-align: right;
  font-size: .7rem;
  color: var(--text-3);
  margin: 8px 0 12px;
}

.reflection-counter span {
  color: var(--text-2);
  font-weight: 700;
}

.reflection-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  transition: all var(--t-med) var(--ease);
  box-shadow: 0 4px 14px rgba(139, 92, 246, .3);
}

.reflection-save-btn svg {
  width: 16px;
  height: 16px;
}

.reflection-save-btn:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, .4);
  transform: translateY(-1px);
}

.ai-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--gold-pale), var(--bg-3));
  border: 1px solid rgba(201, 168, 76, 0.3);
  transition: all var(--t-med);
}

.ai-trigger:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.ai-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-trigger-text {
  flex: 1;
  text-align: left;
}

.ai-trigger-title {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-1);
}

.ai-trigger-sub {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 2px;
}

.ai-arrow {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.ai-commentary {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-3);
  border-radius: var(--r-md);
  animation: fadeUp .3s var(--ease);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.ai-commentary-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ai-commentary-text {
  font-family: var(--font-reading);
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-2);
}

/* Typing dots */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingBounce .8s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: .15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(.6);
    opacity: .4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ════════════════════════════════════
   BOTTOM NAVIGATION
════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -2px 20px rgba(26, 39, 68, 0.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 2px 10px;
  border-radius: var(--r-sm);
  font-size: .6rem;
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--t-fast);
  min-width: 0;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: stroke var(--t-fast);
}

.nav-item.active {
  color: var(--gold);
}

.nav-item.active svg {
  stroke: var(--gold);
}

.nav-center {
  position: relative;
}

.nav-center-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.35);
  transition: all var(--t-med);
  border: 2px solid rgba(201, 168, 76, 0.3);
}

.nav-center-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
}

.nav-center.active .nav-center-btn {
  box-shadow: 0 6px 24px rgba(26, 39, 68, 0.5);
  transform: scale(1.08);
}

/* ════════════════════════════════════
   TOAST
════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--gold-light);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  white-space: nowrap;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════
   SCROLLBAR
════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (min-width: 768px) {
  .main-content {
    max-width: 600px;
    margin: 0 auto;
  }

  .home-hero {
    min-height: 340px;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .chapters-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 720px;
  }

  .verse-sheet {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }

  .verse-sheet.open {
    transform: translateX(-50%) translateY(0);
  }

  .bottom-nav {
    max-width: 720px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ════════════════════════════════════
   PRINT
════════════════════════════════════ */
@media print {

  .topbar,
  .bottom-nav,
  .verse-sheet,
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  .verse-text {
    font-size: 14pt;
  }
}

/* ════════════════════════════════════════════════════
   PALAVRA VIVA PRO — UPGRADE VISUAL CINEMÁTICO & PREMIUM
   ════════════════════════════════════════════════════ */

/* ── MODIFICAÇÕES DE TEMA (VIGÍLIA / CÉU) ── */
[data-theme="dark"] {
  --bg: #050814; /* Midnight obsidian ultra-deep */
  --bg-2: rgba(22, 33, 62, 0.45); /* Glass card translúcido */
  --bg-3: rgba(30, 48, 88, 0.6);
  --surface: rgba(22, 33, 62, 0.55);
  --surface-2: rgba(30, 48, 88, 0.7);
  --cream: #050814;
  --border: rgba(201, 168, 76, 0.16);
  --border-focus: var(--gold-light);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.16);
}

[data-theme="light"] {
  --bg: #f3edd9; /* A muito mais suave e acolhedora cor linho-creme dourada */
  --bg-2: rgba(255, 255, 255, 0.65); /* Efeito glass mais perceptível */
  --bg-3: rgba(230, 222, 196, 0.75);
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(245, 236, 208, 0.85);
  --border: rgba(201, 168, 76, 0.26); /* Bordas douradas levemente mais quentes */
}

/* Modulações de Nebulas e Partículas Especiais para o MODO CLARO (CÉU) */
[data-theme="light"] .nebula-1,
:root:not([data-theme="dark"]) .nebula-1 {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.26) 0%, transparent 70%) !important;
  filter: blur(60px) !important;
}

[data-theme="light"] .nebula-2,
:root:not([data-theme="dark"]) .nebula-2 {
  background: radial-gradient(circle, rgba(78, 97, 163, 0.28) 0%, transparent 70%) !important;
  filter: blur(50px) !important;
}

[data-theme="light"] .nebula-3,
:root:not([data-theme="dark"]) .nebula-3 {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, transparent 60%) !important;
  filter: blur(70px) !important;
}

/* Deixa as partículas douradas cinemáticas com excelente visibilidade e cor de ouro quente em modo claro */
[data-theme="light"] .cinematic-particle,
:root:not([data-theme="dark"]) .cinematic-particle {
  background: radial-gradient(circle, #bfa353 0%, transparent 80%) !important;
  opacity: 0.65 !important;
  box-shadow: 0 0 4px rgba(201, 168, 76, 0.2);
}

/* Deixa as estrelas do céu claras com cores pasteis/escuras para dar um ar celestial visível */
[data-theme="light"] .stars-layer,
:root:not([data-theme="dark"]) .stars-layer {
  opacity: 0.25 !important;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #bfa353, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 50px 80px, #7e91ca, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 170px, #bfa353, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 130px, #7e91ca, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 230px, #bfa353, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 190px, #bfa353, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 210px 60px, #7e91ca, rgba(0,0,0,0)) !important;
}

/* Sombras douradas acolhedoras para os cards em Modo Claro */
[data-theme="light"] .book-card, 
[data-theme="light"] .continue-card, 
[data-theme="light"] .fav-item, 
[data-theme="light"] .stat-card, 
[data-theme="light"] .quiz-mode-btn,
[data-theme="light"] .trans-select,
[data-theme="light"] .search-input-wrap,
[data-theme="light"] .chap-btn {
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.08), 0 0 0 1.5px rgba(201, 168, 76, 0.16) !important;
}

[data-theme="light"] .book-card:hover, 
[data-theme="light"] .continue-card:hover, 
[data-theme="light"] .fav-item:hover, 
[data-theme="light"] .stat-card:hover,
[data-theme="light"] .quiz-mode-btn:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.22), 0 0 0 1.5px rgba(201, 168, 76, 0.3) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* ── GLASSMORPHISM GLOBAL BLUR ── */
.topbar, 
.bottom-nav, 
.sidebar, 
.book-card, 
.continue-card, 
.testament-pill, 
.chap-btn, 
.fav-item, 
.trans-select, 
.search-input-wrap,
.ai-commentary,
.stat-card,
.quiz-mode-btn,
.quiz-option,
.results-header,
.results-score-card,
.results-breakdown,
.results-answers {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ── PLANO DE FUNDO CINEMÁTICO VIVO ── */
.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
  transition: background var(--t-slow) var(--ease);
}

.nebula-1 {
  position: absolute;
  width: 90vw;
  height: 90vw;
  top: -35%;
  left: -25%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  animation: nebulaFloat 22s ease-in-out infinite alternate;
}

.nebula-2 {
  position: absolute;
  width: 80vw;
  height: 80vw;
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle, rgba(46, 63, 120, 0.14) 0%, transparent 70%);
  filter: blur(70px);
  animation: nebulaFloat2 28s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
  position: absolute;
  width: 65vw;
  height: 65vw;
  top: 30%;
  left: 20%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.035) 0%, transparent 60%);
  filter: blur(90px);
  animation: nebulaFloat 33s ease-in-out infinite alternate-reverse;
}

.stars-layer {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 50px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 170px, var(--gold-light), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 130px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 230px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 190px, var(--gold-light), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 210px 60px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 260px 260px;
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}

.cinematic-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 85%);
  opacity: 0.38;
  pointer-events: none;
  animation: floatDrift infinite linear;
}

@keyframes nebulaFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 5vh) scale(1.12); }
}

@keyframes nebulaFloat2 {
  0% { transform: translate(0, 0) scale(1.08); }
  100% { transform: translate(-5vw, -6vh) scale(0.96); }
}

@keyframes starsTwinkle {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.22; }
}

@keyframes floatDrift {
  0% {
    transform: translateY(105vh) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% { opacity: 0.55; }
  90% { opacity: 0.55; }
  100% {
    transform: translateY(-10vh) translateX(50px) scale(1.15);
    opacity: 0;
  }
}

/* ── SPLASH SCREEN CINEMÁTICA ── */
.splash {
  background: linear-gradient(145deg, #040712 0%, #0d1629 60%, #040712 100%) !important;
}

.splash-inner {
  position: relative;
  z-index: 10;
}

.splash-cross {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-cross::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px dashed var(--gold);
  opacity: 0.35;
  border-radius: 50%;
  animation: spinOrbit 25s linear infinite;
}

.splash-cross::after {
  content: '';
  position: absolute;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  animation: spinOrbitRev 30s linear infinite;
}

@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinOrbitRev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.splash-title {
  background: linear-gradient(90deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: breatheGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
  font-weight: 300 !important;
}

@keyframes breatheGlow {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* ── HOME HERO CINEMÁTICA ── */
.home-hero {
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 10px 30px rgba(5, 9, 20, 0.12);
  margin-bottom: 10px;
}

.hero-bg-overlay {
  background: linear-gradient(to top, var(--bg) 0%, rgba(5, 9, 20, 0.6) 75%, rgba(5, 9, 20, 0.25) 100%) !important;
}

.hero-content {
  animation: slideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* ── CARDS E ELEMENTOS COM HOVER SUAVE DE FLUTUAÇÃO DOURADA ── */
.book-card, 
.continue-card, 
.fav-item, 
.stat-card, 
.quiz-mode-btn,
.sidebar-item,
.chap-btn,
.trans-select {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease !important;
}

.book-card:hover, 
.continue-card:hover, 
.fav-item:hover, 
.stat-card:hover,
.quiz-mode-btn:hover {
  transform: translateY(-5px) scale(1.025) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 10px 24px var(--gold-glow) !important;
}

/* ── BARRA DE NAVEGAÇÃO INFERIOR UPGRADED ── */
.bottom-nav {
  border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
  border-top: 1.5px solid var(--border) !important;
  box-shadow: 0 -8px 32px rgba(5, 9, 20, 0.15) !important;
}

.nav-center-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  border: 2.5px solid var(--navy) !important;
  box-shadow: 0 4px 18px var(--gold-glow) !important;
  animation: goldPulse 2.5s infinite;
}

.nav-center-btn svg {
  stroke: var(--navy) !important;
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

.nav-item.active {
  transform: scale(1.08);
  position: relative;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 14px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--r-full);
  animation: slideInBar 0.3s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes slideInBar {
  from { width: 0; opacity: 0; }
  to { width: 14px; opacity: 1; }
}

/* ── EFEITO DE TRANSIÇÃO BÍBLICA TIPO FOLHEAR DE PÁGINAS ── */
@keyframes pageFlipEffect {
  0% { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.verses-container {
  animation: pageFlipEffect 0.6s cubic-bezier(0.19, 1, 0.22, 1) both !important;
}

.verse-item {
  transition: all 0.3s ease;
}

.verse-item:hover:not(.highlighted) {
  background: rgba(201, 168, 76, 0.045);
  transform: translateX(4px);
  border-radius: var(--r-sm);
}

/* ── ELEMENTOS VISUAIS E ANIMAÇÕES GAMIFICADAS DO QUIZ ── */
.streak-badge-fire {
  background: linear-gradient(135deg, #e67e22, #f1c40f);
  color: white;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 8px;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
  display: inline-flex;
  align-items: center;
  animation: pulseStreak 1.2s infinite alternate;
}

@keyframes pulseStreak {
  from { transform: scale(1); box-shadow: 0 0 6px rgba(230, 126, 34, 0.4); }
  to { transform: scale(1.12); box-shadow: 0 0 14px rgba(230, 126, 34, 0.8); }
}

.quiz-xp-floating {
  position: absolute;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(5, 9, 20, 0.5), 0 0 15px var(--gold);
  pointer-events: none;
  z-index: 200;
  animation: floatRiseUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes floatRiseUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-80px) scale(1.15); opacity: 0; }
}

.star-sparkle {
  position: fixed;
  color: var(--gold-light);
  pointer-events: none;
  z-index: 1000;
  text-shadow: 0 0 8px var(--gold);
  animation: sparkleSpread 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes sparkleSpread {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.2) rotate(180deg); opacity: 0; }
}

.quiz-option.selected {
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.16), rgba(36, 52, 96, 0.25)) !important;
  color: var(--text-1) !important;
}

.quiz-option.selected .option-letter {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
}

.quiz-option.selected .option-text {
  color: var(--text-1) !important;
  font-weight: 700 !important;
}

/* ── BOLINHA FLUTUANTE DE REMOVER ANÚNCIOS (DRAGGABLE) ── */
.floating-ads-bubble {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), rgba(26, 39, 68, 0.75));
  border: 2.2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25), 0 0 10px rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: grab;
  touch-action: none; /* Previne scroll nativo no celular ao arrastar */
  bottom: 95px; /* Altura padrão acima da bottom nav */
  right: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  animation: floatAdsBreath 4s ease-in-out infinite;
}

.floating-ads-bubble:active {
  cursor: grabbing;
  transform: scale(0.92);
}

.floating-ads-bubble:hover {
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45), 0 0 15px rgba(201, 168, 76, 0.3);
}

.floating-ads-bubble svg {
  width: 24px;
  height: 24px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.floating-ads-bubble .pro-badge-mini {
  position: absolute;
  bottom: -4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.55rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: var(--r-full);
  border: 1px solid var(--navy);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

@keyframes floatAdsBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Modulação do modal de anúncios premium */
.pro-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(201, 168, 76, 0.05);
  border: 1.2px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  text-align: left;
  transition: transform 0.3s;
}

.pro-benefit-item:hover {
  transform: scale(1.015);
  background: rgba(201, 168, 76, 0.08);
}

.pro-benefit-icon {
  font-size: 1.3rem;
  min-width: 28px;
}

.pro-benefit-title {
  font-weight: 700;
  color: var(--text-1);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.pro-benefit-desc {
  font-size: 0.76rem;
  color: var(--text-3);
  margin: 0;
}