      /* === ESTILOS BIBLIA EMBEBIDA === */

        /* Vista Biblia - layout */
        #view-bible {
            padding: 0 !important;
        }
        #view-bible.active {
            display: block !important;
        }

        /* ===== Selector de libros en toolbar (versionSelect) ===== */

/* ===== Biblia — Toolbar + Navegación mejorada ===== */

/* Variables útiles */
:root{
  --bible-bg: var(--bg-color, #0b0b0d);
  --card-bg: var(--card, #121214);
  --text: var(--text, #e6eef8);
  --muted: var(--muted, #9aa4b2);
  --accent: var(--accent, #0a84ff);
  --radius: 12px;
  --header-height: var(--header-height, 64px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition-fast: 160ms cubic-bezier(.2,.9,.3,1);
}

/* Helper accesibilidad */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Contenedor principal: sticky justo debajo del header */
.bible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), var(--bible-bg));
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky;
  top: calc(var(--header-height));
  z-index: 85;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-sizing: border-box;
}

/* Left: selector de versión */
.bible-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 160px;
  max-width: 44%;
}

/* Select estilizado */
.bible-toolbar-left select,
#versionSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  background: linear-gradient(180deg,#2c2c2e,#262628);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 40px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform .12s;
  box-sizing: border-box;
}

/* Chevron pseudo-element (no depende de icon fonts) */
.bible-toolbar-left::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* Center: flechas y título */
.bible-header-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 220px;
}

/* Flechas (botones) */
.nav-arrow {
  background: rgba(255,255,255,0.04);
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition-fast), transform .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-arrow:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.nav-arrow:active { transform: scale(.96); }
.nav-arrow[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Título del capítulo */
.chapter-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  min-width: 160px;
  max-width: 60%;
  text-align: center;
}
.chapter-title {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapter-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Right: acciones */
.bible-toolbar-right { display:flex; align-items:center; gap:8px; min-width:48px; }
.bible-toolbar-btn {
  background: #2c2c2e;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast), transform .12s;
}
.bible-toolbar-btn:hover { background: #3a3a3c; transform: translateY(-2px); }
.bible-toolbar-btn:active { transform: scale(.98); }

/* Prevent header overlap when scrolling to anchors */
#content { scroll-margin-top: calc(var(--header-height) + 12px); }

/* ===== Fallback: bible-nav (barra inferior) ===== */
.bible-nav {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(60px + var(--safe-bottom) + 8px);
  background: rgba(30,30,30,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.08);
  justify-content: center;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

/* When JS activates mobile nav */
.bible-nav.visible,
.bible-nav[aria-hidden="false"] { display: flex; }

/* Mobile title inside fallback */
.chapter-title-mobile {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  min-width: 140px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 920px) {
  .bible-toolbar-left { min-width: 140px; max-width: 40%; }
  .chapter-title-wrap { max-width: 56%; }
}
@media (max-width: 720px) {
  .bible-header { position: static; padding: 10px 12px; box-shadow: none; gap: 8px; }
  .bible-toolbar-left { min-width: 120px; max-width: 45%; }
  .bible-toolbar-left select { padding-right: 34px; font-size: 13px; }
  .chapter-title-wrap { min-width: 120px; max-width: 60%; padding: 6px 8px; }
  /* Show bottom nav by default on small screens */
  .bible-nav { display: flex; }
}
@media (max-width: 420px) {
  .bible-toolbar-left { min-width: 100px; max-width: 50%; }
  .bible-toolbar-left::after { right: 10px; font-size: 11px; }
  .chapter-title-wrap { min-width: 100px; max-width: 58%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bible-header, .nav-arrow, .bible-toolbar-btn, .bible-toolbar-left select, .bible-nav {
    transition: none !important;
    animation: none !important;
  }
}


/* Indica que el título es interactivo */
.chapter-title-wrap[role="button"],
.chapter-title-wrap.clickable {
  cursor: pointer;
  user-select: none;
  transition: box-shadow 160ms ease, transform 120ms ease;
}
.chapter-title-wrap[role="button"]:hover,
.chapter-title-wrap.clickable:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.chapter-title-wrap[role="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(79,116,214,0.08);
}

        /* Contenido biblia */
        #content {
           max-width: 860px;
           margin: auto;
           padding: 0 20px;
           padding-bottom: 80px; /* Espacio para la barra inferior */
           line-height: 1.6;
           overflow-y: visible;
        }

        /* Versiculos */
        .verse {
            display: inline;
            padding: 10px 15px;
            cursor: pointer;
            line-height: 2;
            position: relative;
            transition: background 0.2s;
        }
        .verse.selected {
            background-color: transparent;
            display: inline;
            text-decoration: underline wavy #ffffff81 1px;
            text-underline-offset: 3px;
            -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
            background-image: none;
            padding-bottom: 5px;
        }
        .verse.selected sup {
            text-decoration: none;
            display: inline-block;
            background-color: var(--bg-color);
            position: relative;
            z-index: 2;
        }
        .verse.highlighted {
            display: inline;
            background-color: var(--hl-color, #cfc9a2dd);
            -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
            padding: 4px 8px;
            border-radius: 4px;
            box-shadow: 3px 0 0 var(--hl-color, #cfc9a2dd), -3px 0 0 var(--hl-color, #cfc9a2dd);
        }
        .verse sup {
            display: inline-block;
            background: var(--bg-color);
            padding: 0 4px;
            margin-right: 8px;
            border-radius: 4px;
            line-height: 1;
            z-index: 5;
            position: relative;
        }
        .verse.has-note::after {
            content: "";
            position: absolute;
            right: -6px;
            top: 10px;
            width: 6px;
            height: 6px;
            background: #0a84ff;
            border-radius: 50%;
            opacity: .8;
        }

        /* Notas */
        .verse-note {
            margin-top: 6px;
            padding-left: 14px;
            font-size: 13px;
            color: var(--muted);
            border-left: 2px solid #3a3a3c;
        }
        .note-dot {
            color: #0a84ff;
            font-size: 18px;
            margin-left: 4px;
            line-height: 0;
        }

        /* Bible Nav (antes era footer de la biblia) */
        .bible-nav {
            position: fixed;
            left: 16px;
            right: 16px;
            bottom: calc(60px + env(safe-area-inset-bottom) + 8px);
            background: rgba(30, 30, 30, 0.92);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-radius: var(--radius);
            padding: 12px 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            display: none;
            justify-content: center;
            gap: 8px;
            font-weight: 500;
        }
        .bible-nav span {
            flex: 0;
            text-align: center;
            font-weight: 600;
        }
        .bible-nav .nav-arrow {
            position: absolute;
            background: none;
            border: none;
            font-size: 22px;
            font-weight: 700;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 9px;
            transition: .15s;
            color: var(--text);
        }
        .bible-nav .nav-arrow.left { left: 12px; }
        .bible-nav .nav-arrow.right { right: 12px; }
        .bible-nav .nav-arrow:hover { background: rgba(255,255,255,.1); }
        .bible-nav .nav-arrow:active { transform: scale(.9); }

        /* Selector libros/capitulos */
        #selector {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            align-items: flex-end;
            z-index: 100;
            animation: fadeInBible .25s ease;
        }
        @keyframes fadeInBible { from { opacity: 0 } to { opacity: 1 } }

        #panel {
            background: var(--card);
            width: 100%;
            max-height: 80%;
            border-radius: 26px 26px 0 0;
            padding: 18px;
            overflow: auto;
            box-shadow: 0 -20px 50px rgba(0,0,0,.5);
            animation: slideUpBible .3s cubic-bezier(.2,.8,.2,1);
            font-weight: 500;
        }
        @keyframes slideUpBible {
            from { transform: translateY(40px); opacity: 0 }
            to { transform: none; opacity: 1 }
        }
        .book-search {
            width: 100%;
            padding: 12px 14px;
            border-radius: 14px;
            border: none;
            background: #2c2c2e;
            color: var(--text);
            font-size: 15px;
            margin-bottom: 18px;
            outline: none;
            font-weight: 500;
        }
        .book-search:focus { background: #3a3a3c; }
        .testament-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--muted);
            margin: 18px 0 8px;
            letter-spacing: .5px;
        }
        .book {
            padding: 14px 12px;
            border-radius: 14px;
            margin-bottom: 6px;
            cursor: pointer;
            transition: background .15s ease, transform .1s ease;
            color: var(--text);
        }
        .book:hover { background: #3a3a3c; transform: scale(1.01); }
        .chapters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
        .chapter {
            width: 50px;
            text-align: center;
            padding: 8px 0;
            border-radius: 999px;
            background: #3a3a3c;
            color: var(--text);
            font-size: 16px;
            cursor: pointer;
            transition: all .15s ease;
            font-weight: 500;
        }
        .chapter:hover { background: var(--accent); color: black; transform: scale(1.08); }

        /* Action bar moderno iOS */
        #actionBar {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
        }
        .action-bar-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(2px);
            animation: fadeInAction 0.2s ease;
        }
        @keyframes fadeInAction { from { opacity: 0 } to { opacity: 1 } }
        .action-bar-sheet {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #1c1c1e;
            border-radius: 24px 24px 0 0;
            padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
            animation: slideUpAction 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }
        @keyframes slideUpAction {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .action-bar-handle {
            width: 36px;
            height: 5px;
            border-radius: 3px;
            background: rgba(255,255,255,0.25);
            margin: 0 auto 16px;
        }
        .action-bar-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        .action-bar-btn {
            background: transparent;
            border: none;
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 10px 4px;
            border-radius: 14px;
            transition: background 0.15s;
        }
        .action-bar-btn:active { background: rgba(255,255,255,0.1); }
        .action-bar-icon {
            width: 52px;
            height: 52px;
            border-radius: 15px;
            background: #3a3a3c;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            transition: transform 0.15s, background 0.2s;
        }
        .action-bar-btn-premium .action-bar-icon {
            background: linear-gradient(135deg, #f6d365, #fda085);
            color: #1a1a1a;
        }
        .action-bar-btn span {
            font-size: 11px;
            font-weight: 500;
            color: var(--text);
        }
        .action-bar-cancel {
            width: 100%;
            padding: 14px;
            border-radius: 14px;
            border: none;
            background: #3a3a3c;
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }
        .action-bar-cancel:active { background: #48484a; }

        /* Color picker */
        #colorPicker {
            display: none;
            gap: 10px;
            padding: 8px;
            border-radius: 16px;
            background: rgba(30, 30, 30, 0.9);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0,0,0,.6);
            border: 1px solid rgba(255,255,255,0.1);
            position: fixed;
            bottom: calc(60px + env(safe-area-inset-bottom) + 110px);
            left: 60%;
            transform: translateX(-50%);
            z-index: 9999;
        }
        #colorPicker div {
            width: 28px; height: 28px; border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.3);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; color: var(--text);
            transition: transform 0.15s ease;
        }
        #colorPicker div:hover { transform: scale(1.2); }

        /* Modal nota biblia */
        .nota-modal {
            position: fixed;
            inset: 0;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
            box-sizing: border-box;
            background: rgba(0, 0, 0, 0.45);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
        }
        .nota-modal.hidden { display: none; }
        .nota-modal-card {
            position: relative;
            width: 100%;
            max-width: 400px;
            background: var(--card);
            border-radius: 20px;
            padding: 20px 18px 18px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
            animation: modalInBible .28s cubic-bezier(0.25, 0.1, 0.25, 1);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }
        .nota-modal-close {
            position: absolute; top: 12px; right: 12px;
            width: 32px; height: 32px; border: none; border-radius: 50%;
            background: #3a3a3c; color: #ebebf5; font-size: 22px;
            line-height: 1; cursor: pointer;
            display: flex; align-items: center; justify-content: center; padding: 0;
        }
        .nota-modal-close:hover { background: #48484a; color: #fff; }
        @keyframes modalInBible {
            from { transform: translateY(16px) scale(0.97); opacity: 0; }
            to { transform: none; opacity: 1; }
        }
        .nota-modal-card h3 { margin: 0 28px 6px 0; font-size: 18px; font-weight: 600; text-align: left; color: var(--text); letter-spacing: -0.02em; }
        .nota-modal-ref { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #0a84ff; line-height: 1.35; }
        .nota-modal-card textarea {
            width: 100%; min-height: 120px; box-sizing: border-box;
            border-radius: 14px; border: 1px solid #3a3a3c;
            background: #1c1c1e; color: var(--text);
            padding: 14px; font-size: 16px; line-height: 1.45;
            outline: none; resize: vertical; font-family: inherit;
        }
        .nota-modal-card textarea:focus { border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25); }
        .nota-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: stretch; }
        .nota-modal-actions .nota-btn {
            flex: 1 1 auto; min-width: 0; padding: 12px 14px;
            border-radius: 12px; border: none; font-size: 16px;
            font-weight: 600; cursor: pointer; font-family: inherit;
        }
        .nota-modal-actions .nota-btn-cancel { background: #3a3a3c; color: var(--text); }
        .nota-modal-actions .nota-btn-save { background: #0a84ff; color: #fff; flex: 1.35 1 120px; }
        .nota-modal-actions .nota-btn-delete { flex: 1 1 100%; order: 3; background: transparent; color: #ff453a; font-weight: 600; padding: 8px; }
        .nota-modal-actions .nota-btn-delete[hidden] { display: none !important; }
        .nota-modal-actions .nota-btn:active { opacity: 0.88; transform: scale(0.98); }

        /* Toast biblia */
        .app-toast {
            position: fixed;
            left: 50%;
            bottom: max(100px, calc(88px + env(safe-area-inset-bottom)));
            transform: translateX(-50%) translateY(12px);
            max-width: min(360px, calc(100vw - 32px));
            padding: 12px 18px; border-radius: 14px;
            font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center;
            z-index: 10000; pointer-events: none; color: #fff;
            background: rgba(58, 58, 60, 0.96);
            -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
            opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .app-toast.app-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* History overlay */
        .history-overlay {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(14px) saturate(180%);
            -webkit-backdrop-filter: blur(14px) saturate(180%);
            display: none; justify-content: center; align-items: flex-start;
            z-index: 1000;
        }
        .history-overlay.active { display: flex; }
        .history-modal {
            margin-top: 60px;
            width: 92%; max-width: 420px;
            background: rgba(28,28,30,0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.4);
            animation: fadeSlideHist .35s ease;
        }
        .history-modal h3 { margin: 4px 0 12px; font-size: 18px; font-weight: 700; color: #ffffff; }
        @keyframes fadeSlideHist { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
        .history-controls { display: flex; gap: 8px; margin-bottom: 12px; }
        .history-filter {
            background: #2c2c2e; border: none; border-radius: 14px;
            padding: 6px 10px; font-size: 13px; font-weight: 500;
            color: #ffffff; outline: none;
        }
        .history-search {
            flex: 1; background: #2c2c2e; border: none; border-radius: 14px;
            padding: 6px 12px; font-size: 13px; color: #fff; outline: none;
        }
        .history-search::placeholder { color: #8e8e93; }
        #historyList {
            max-height: 70vh; overflow-y: auto;
            display: flex; flex-direction: column; gap: 10px; padding-right: 4px;
        }
        #historyList::-webkit-scrollbar { width: 5px; }
        #historyList::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 10px; }
        .history-folder {
            background: rgba(44,44,46,0.7);
            border-radius: 18px; padding: 10px;
            backdrop-filter: blur(10px); transition: all .25s ease;
        }
        .history-folder:hover { transform: scale(1.01); }
        .folder-title { font-size: 13px; font-weight: 600; color: #30d158; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
        .history-item {
            background: rgba(44,44,46,0.95);
            border-radius: 14px; padding: 10px; margin-top: 6px;
            transition: all .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }
        .history-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
        .history-ref { font-weight: 600; font-size: 14px; color: #0a84ff; cursor: pointer; transition: opacity .2s; }
        .history-ref:hover { opacity: .7; }
        .history-text { font-size: 13px; line-height: 1.45; color: #d1d1d6; margin-top: 2px; }
        .history-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8e8e93; margin-top: 6px; }
        .history-actions { display: flex; gap: 6px; }
        .history-title-btn, .history-delete {
            border: none; border-radius: 10px; padding: 4px 10px;
            font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s ease;
        }
        .history-title { font-size: 13px; font-weight: 600; color: #8e8e93; margin-bottom: 4px; }
        .history-title-btn { background: #30d158; color: white; }
        .history-title-btn:hover { background: #34c759; transform: scale(1.05); }
        .history-delete { background: #ff453a; color: white; }
        .history-delete:hover { background: #ff3b30; transform: scale(1.05); }
        .history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .history-close {
            background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
            width: 28px; height: 28px; font-size: 16px; color: #fff;
            cursor: pointer; transition: all .2s ease;
        }
        .history-close:hover { background: rgba(255,255,255,0.15); transform: scale(1.1); }
        .history-eye { width: 22px; height: 22px; cursor: pointer; opacity: 0.7; transition: all .2s ease; filter: invert(1); }
        .history-eye:hover { opacity: 1; transform: scale(1.15); }
        .verse-focus { position: relative; animation: verseGlow 1.8s ease; }
        @keyframes verseGlow {
            0% { background: rgba(10,132,255,0.35); transform: scale(1.02); }
            40% { background: rgba(10,132,255,0.2); }
            100% { background: transparent; transform: scale(1); }
        }

.compare-verse-modal {
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}
.compare-verse-modal .premium-section-header {
    padding-top: 10px;
}

.color-picker {
    animation: popInPicker 0.2s ease;
}
@keyframes popInPicker {
    from { transform: translateX(-50%) scale(0.9); opacity: 0; }
    to { transform: translateX(-50%) scale(1); opacity: 1; }
}

        /* Title modal */
        .title-modal {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.65);
            backdrop-filter: blur(10px);
            display: none; justify-content: center; align-items: center;
            z-index: 2000;
        }
        .title-modal.active { display: flex; }
        .title-box {
            background: rgba(28,28,30,0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px; padding: 20px; width: 90%; max-width: 320px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.6);
            animation: fadeSlideHist .25s ease;
        }
        .title-box h4 { margin: 0; font-size: 16px; font-weight: 600; color: #ffffff; }
        .title-box input {
            width: 100%; margin-top: 12px; padding: 10px;
            border-radius: 12px; border: none;
            background: #2c2c2e; font-size: 14px; color: #fff; outline: none;
        }
        .title-actions { display: flex; justify-content: space-between; margin-top: 12px; }
        .title-actions button {
            flex: 1; margin: 0 4px; border: none; border-radius: 12px;
            padding: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
        }
        #cancelTitle { background: #3a3a3c; color: #fff; }
        #saveTitle { background: #0a84ff; color: white; }
        #deleteTitle { background: #ff453a; color: white; }
        #deleteTitle:hover { background: #ff3b30; }