/**
 * ARROW — Biblia de Estudio Interactiva (flechas.com.mx/biblia)
 * Hoja de Estilos Principal — Estética "Sacred Codex & Scholarly Precision"
 */

:root {
    /* Modo Día: Pergamino Marfil (Por defecto) */
    --bg-app: #f8f5ee;
    --bg-surface: #ffffff;
    --bg-elevated: #fdfbf7;
    --bg-muted: #f1ece1;
    --bg-header: rgba(255, 255, 255, 0.94);

    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;

    --border-color: #e4dccb;
    --border-strong: #d1c4ab;

    --brand-gold: #b45309;
    --brand-gold-light: #fef3c7;
    --brand-crimson: #be123c;
    --brand-crimson-light: #ffe4e6;
    --brand-indigo: #312e81;

    /* Semántica Tricolor solicitada por el usuario */
    --sem-jesus-red: #dc2626;
    --sem-jesus-bg: rgba(220, 38, 38, 0.05);

    --sem-promise-blue: #1d4ed8;
    --sem-promise-bg: rgba(29, 78, 216, 0.07);
    --sem-promise-border: rgba(37, 99, 235, 0.35);

    --sem-imperative-green: #047857;
    --sem-imperative-bg: rgba(4, 120, 87, 0.11);
    --sem-imperative-border: #059669;

    /* Tamaño de fuente dinámico para el texto bíblico */
    --bible-font-size: 19px;
    --bible-line-height: 1.82;
    --bible-font-family: 'Literata', 'Georgia', serif;

    --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.05);
    --shadow-md: 0 8px 24px rgba(24, 24, 27, 0.08);
    --shadow-lg: 0 16px 40px rgba(24, 24, 27, 0.12);
}

/* Modo Sepia: Códice Antiguo */
body.theme-sepia {
    --bg-app: #efe6d5;
    --bg-surface: #f7f0e2;
    --bg-elevated: #faf5ea;
    --bg-muted: #e5d9c3;
    --bg-header: rgba(247, 240, 226, 0.95);

    --text-primary: #292018;
    --text-secondary: #4a3b2c;
    --text-muted: #75624e;

    --border-color: #d6c7ae;
    --border-strong: #bfa988;

    --sem-jesus-red: #b91c1c;
    --sem-promise-blue: #1e40af;
    --sem-imperative-green: #065f46;
}

/* Modo Noche: Estudio Obsidiana */
body.theme-dark {
    --bg-app: #090d16;
    --bg-surface: #111827;
    --bg-elevated: #1e293b;
    --bg-muted: #0f172a;
    --bg-header: rgba(17, 24, 39, 0.94);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-color: #1e293b;
    --border-strong: #334155;

    --brand-gold: #fbbf24;
    --brand-gold-light: rgba(251, 191, 36, 0.15);
    --brand-crimson: #fb7185;
    --brand-crimson-light: rgba(251, 113, 133, 0.15);

    --sem-jesus-red: #f87171;
    --sem-jesus-bg: rgba(248, 113, 113, 0.08);

    --sem-promise-blue: #60a5fa;
    --sem-promise-bg: rgba(96, 165, 250, 0.11);
    --sem-promise-border: rgba(96, 165, 250, 0.4);

    --sem-imperative-green: #34d399;
    --sem-imperative-bg: rgba(52, 211, 153, 0.13);
    --sem-imperative-border: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   1. CABECERA PRINCIPAL Y BARRA DE HERRAMIENTAS DE ESTUDIO (PERMANENTEMENTE FIJA)
   ========================================================================== */
.arrow-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    align-self: stretch;
    flex-shrink: 0;
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.topbar-row-main {
    max-width: 1780px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-flechas-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.back-flechas-link:hover {
    border-color: var(--brand-crimson);
    color: var(--brand-crimson);
}

.arrow-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b45309 0%, #78350f 50%, #1e1b4b 100%);
    color: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
    border: 1px solid #fbbf24;
}

.arrow-title-block h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow-title-block h1 .sub-pill {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-gold-light);
    color: var(--brand-gold);
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.arrow-title-block p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Selectores de Navegación Bíblica (Libro, Capítulo, Versión) */
.nav-selectors-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 3px 8px;
    gap: 6px;
}

.control-group label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
}

.arrow-select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 4px;
    cursor: pointer;
    outline: none;
}

.arrow-select option,
.arrow-select optgroup {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.chap-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.chap-step-btn:hover {
    background: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
}

/* Botones de Herramientas Rápidas y Tipografía */
.utility-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.font-controls {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    overflow: hidden;
}

.font-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.font-btn:hover {
    background: var(--bg-muted);
}

.font-size-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 6px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.theme-pills {
    display: inline-flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 2px;
    gap: 2px;
}

.theme-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.theme-btn.active {
    background: var(--brand-gold);
    color: #ffffff;
}

/* ==========================================================================
   2. SEGUNDA FILA DE CABECERA: INTERRUPTORES SEMÁNTICOS (ROJO, AZUL, VERDE) Y MODOS
   ========================================================================== */
.topbar-row-semantic {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-color);
    padding: 7px 18px;
}

.semantic-bar-inner {
    max-width: 1780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.semantic-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sem-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: all 0.18s ease;
    user-select: none;
}

.sem-toggle-pill .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.sem-toggle-pill.red-pill.active {
    border-color: var(--sem-jesus-red);
    background: var(--sem-jesus-bg);
    color: var(--sem-jesus-red);
}
.sem-toggle-pill.red-pill .dot { background: #dc2626; }

.sem-toggle-pill.blue-pill.active {
    border-color: var(--sem-promise-blue);
    background: var(--sem-promise-bg);
    color: var(--sem-promise-blue);
}
.sem-toggle-pill.blue-pill .dot { background: #2563eb; }

.sem-toggle-pill.green-pill.active {
    border-color: var(--sem-imperative-green);
    background: var(--sem-imperative-bg);
    color: var(--sem-imperative-green);
}
.sem-toggle-pill.green-pill .dot { background: #059669; }

.sem-toggle-pill.interlinear-pill.active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.sem-toggle-pill.chrono-pill.active {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
    color: var(--brand-gold);
}

.sem-count-badge {
    padding: 1px 6px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
}

.quick-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    border: 1px solid var(--brand-gold);
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
}

.action-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-outline:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* ==========================================================================
   3. LAYOUT PRINCIPAL EN DOS COLUMNAS (LECTOR BÍBLICO + CENTRO EXEGÉTICO)
   ========================================================================== */
.arrow-workspace {
    max-width: 1780px;
    width: 100%;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    gap: 20px;
    align-items: start;
    flex: 1;
}

@media (max-width: 1180px) {
    .arrow-workspace {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. COLUMNA IZQUIERDA: LECTOR BÍBLICO INTERACTIVO + IMAGEN DE CAPÍTULO
   ========================================================================== */
.reader-column {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Banner de Modo Cronológico si está activo */
.chrono-active-banner {
    background: linear-gradient(90deg, #78350f, #b45309, #1e1b4b);
    color: #fef3c7;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

/* Tarjeta de Imagen Alusiva al Capítulo */
.chapter-visual-banner {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.chapter-illustration-img {
    width: 100%;
    max-height: 255px;
    object-fit: cover;
    display: block;
}

.chapter-visual-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.chapter-visual-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Acordeón de Introducción al Libro Bíblico */
.book-intro-collapsible {
    margin: 14px 20px 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.book-intro-header {
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    text-align: left;
}

.book-intro-header:hover {
    background: var(--bg-muted);
}

.book-intro-body {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    display: none;
}

.book-intro-body.open {
    display: block;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.intro-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 9px 12px;
}

.intro-stat-card .lbl {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
    display: block;
    margin-bottom: 3px;
}

.intro-stat-card .val {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contenedor de Versículos */
.verses-container {
    padding: 20px 24px 28px 24px;
    font-family: var(--bible-font-family);
    font-size: var(--bible-font-size);
    line-height: var(--bible-line-height);
}

.verse-item {
    position: relative;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 11px;
    border: 1px solid transparent;
    transition: all 0.16s ease;
    cursor: pointer;
}

.verse-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-color);
}

.verse-item.selected-verse {
    background: var(--bg-elevated);
    border-color: var(--brand-gold);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.12);
}

/* Colores de Subrayado Guardado por el Usuario */
.verse-item.hl-yellow { background: rgba(250, 204, 21, 0.24) !important; border-left: 4px solid #eab308; }
.verse-item.hl-green  { background: rgba(52, 211, 153, 0.22) !important; border-left: 4px solid #10b981; }
.verse-item.hl-blue   { background: rgba(96, 165, 250, 0.22) !important; border-left: 4px solid #3b82f6; }
.verse-item.hl-pink   { background: rgba(251, 113, 133, 0.22) !important; border-left: 4px solid #f43f5e; }
.verse-item.hl-purple { background: rgba(192, 132, 252, 0.22) !important; border-left: 4px solid #a855f7; }
.verse-item.hl-gold   { background: rgba(245, 158, 11, 0.22) !important; border-left: 4px solid #d97706; }

.verse-num-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.76em;
    font-weight: 800;
    color: var(--brand-gold);
    margin-right: 8px;
    vertical-align: super;
    user-select: none;
}

/* ==========================================================================
   5. MARCADO SEMÁNTICO TRICOLOR (ROJO JESÚS, AZUL PROMESAS, VERDE IMPERATIVOS)
   ========================================================================== */
/* 🔴 En ROJO las palabras que Jesús dijo */
.sem-jesus-words {
    color: var(--sem-jesus-red);
    font-weight: 500;
}

/* 🔵 En AZUL las promesas */
.sem-promise-text {
    color: var(--sem-promise-blue);
    background: var(--sem-promise-bg);
    border-bottom: 2px solid var(--sem-promise-border);
    padding: 1px 4px;
    border-radius: 4px;
}

/* 🟢 En VERDE los verbos imperativos */
.sem-imperative {
    color: var(--sem-imperative-green) !important;
    background: var(--sem-imperative-bg);
    border-bottom: 2px dotted var(--sem-imperative-border);
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 700;
}

/* Cuando un verbo imperativo está dentro de las palabras de Jesús, conserva el texto verde esmeralda y un borde rojo sutil para distinguir ambos */
.sem-jesus-words .sem-imperative {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.word-token {
    border-radius: 3px;
    transition: background 0.12s;
}

.word-token:hover {
    background: rgba(180, 83, 9, 0.15);
}

.search-hit {
    background: #fde047;
    color: #18181b;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 800;
}

/* Etiquetas e Hipervínculos al pie de cada versículo */
.verse-meta-bar {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
}

.verse-tags-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.v-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 0.67rem;
    font-weight: 800;
}

.v-tag-jesus { background: rgba(220, 38, 38, 0.12); color: var(--sem-jesus-red); }
.v-tag-promise { background: rgba(37, 99, 235, 0.12); color: var(--sem-promise-blue); }
.v-tag-imp { background: rgba(5, 150, 105, 0.12); color: var(--sem-imperative-green); }

.xref-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--bg-muted);
    color: var(--brand-gold);
    border: 1px solid var(--border-color);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.xref-chip-link:hover {
    background: var(--brand-gold);
    color: #ffffff;
}

.verse-actions-right {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.75;
}

.verse-item:hover .verse-actions-right,
.verse-item.selected-verse .verse-actions-right {
    opacity: 1;
}

.v-act-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.v-act-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* Cinta Interlineal Hebreo/Arameo/Griego debajo del versículo cuando está activo el modo Interlineal */
.verse-interlinear-strip {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-muted);
    border: 1px dashed var(--border-strong);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.il-token-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.il-token-chip:hover {
    border-color: var(--brand-gold);
    transform: translateY(-1px);
}

.il-orig-word {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.il-strong-code {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-gold);
}

/* Nota guardada por el usuario debajo del versículo */
.verse-saved-note {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--brand-gold-light);
    border-left: 3px solid var(--brand-gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Pie de navegación entre capítulos */
.chapter-footer-nav {
    padding: 16px 24px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ==========================================================================
   6. COLUMNA DERECHA: CENTRO EXEGÉTICO MULTI-PESTAÑA (DOCK DE ESTUDIO)
   ========================================================================== */
.study-dock-column {
    position: sticky;
    top: 108px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 126px);
    overflow: hidden;
}

@media (max-width: 1180px) {
    .study-dock-column {
        position: relative;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

.dock-active-verse-banner {
    flex-shrink: 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #78350f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 20;
}

.dock-verse-ref {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fde68a;
}

.dock-tabs-nav {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
    gap: 6px;
}

.dock-tab-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    white-space: nowrap;
    flex: 0 1 auto;
}

.dock-tab-btn:hover {
    background: var(--bg-muted);
    border-color: var(--brand-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.dock-tab-btn.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}

/* Custom sleek scrollbar for dock and whole app - eliminates wide grey browser bars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(180, 83, 9, 0.3);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 83, 9, 0.55);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 83, 9, 0.3) transparent;
}

.dock-panel-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.dock-pane {
    display: none;
}

.dock-pane.active {
    display: block;
}

/* Sub-pestañas de los 5 Comentaristas - Permanentemente fijas al hacer scroll */
.commentators-pills {
    position: sticky;
    top: -16px;
    z-index: 35;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    margin: -16px -16px 14px -16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.comm-author-pill {
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

.comm-author-pill.active {
    background: var(--brand-indigo);
    color: #fde68a;
    border-color: #fbbf24;
}

.commentary-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.commentary-card h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.commentary-card p,
.commentary-card li {
    font-size: 0.86rem;
    line-height: 1.68;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Tarjetas de Léxico Strong */
.lexicon-tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.lex-word-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.16s;
}

.lex-word-card:hover,
.lex-word-card.active {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
}

.lex-word-card .orig-script {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', 'Times New Roman', serif;
}

.lex-word-card .strong-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--brand-gold);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.strong-detail-box {
    background: var(--bg-elevated);
    border: 1.5px solid var(--brand-gold);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
}

/* Mapa Interactivo Leaflet */
#arrowBiblicalMap {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    margin-bottom: 12px;
    z-index: 10;
}

.place-modern-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.place-modern-card:hover {
    border-color: var(--brand-gold);
}

/* Comparador de Versiones */
.version-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 6px;
    margin-bottom: 12px;
    max-height: 195px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-muted);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ver-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.comparison-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-gold);
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
}

/* Buscador y Contador Estadístico de Repeticiones */
.search-stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.stat-kpi-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.stat-kpi-box .num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-gold);
    display: block;
}

.stat-kpi-box .lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.book-count-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.15s;
}

.book-count-bar-row:hover {
    background: var(--bg-muted);
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-muted);
    border-radius: 99px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d97706, #be123c);
    border-radius: 99px;
}

/* Paleta de Subrayado y Editor de Notas */
.highlight-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.hl-swatch-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s;
}

.hl-swatch-btn:hover {
    transform: scale(1.15);
}

/* Modal de Comparación de Capítulo Completo en Columnas Paralelas */
.arrow-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.76);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.arrow-modal-backdrop.open {
    display: flex;
}

.arrow-modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    width: 100%;
    max-width: 1520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.arrow-modal-header {
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arrow-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.parallel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.parallel-table th,
.parallel-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    vertical-align: top;
    line-height: 1.65;
}

.parallel-table th {
    background: var(--bg-muted);
    color: var(--brand-gold);
    font-weight: 800;
    position: sticky;
    top: 0;
}


/* ==========================================================================
   ESTILOS PARA CONCORDANCIA, PERÍCOPAS RVR1960, 10 MAPAS Y FOTOGRAFÍAS REALES
   ========================================================================== */

.chapter-real-photo-BannerWrap {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
    background: #18181b;
}

.chapter-real-photo-BannerWrap .chapter-illustration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: brightness(0.84) contrast(1.06);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.chapter-real-photo-BannerWrap:hover .chapter-illustration-img {
    transform: scale(1.02);
}

.chapter-photo-overlay-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 20px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.35) 0%, rgba(9, 13, 22, 0.82) 100%);
    pointer-events: none;
    z-index: 2;
}
.chapter-banner-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.chapter-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 27, 75, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.7);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 14px;
    border-radius: 99px;
    text-transform: uppercase;
}
.chapter-banner-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 3px;
    margin: 4px 0 0 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.45);
    line-height: 1.15;
}
.chapter-banner-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 2px 0 0 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.verse-pericope-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin: 18px 0 8px;
    padding: 6px 12px;
    border-left: 3px solid var(--brand-gold);
    background: rgba(180, 83, 9, 0.07);
    border-radius: 0 8px 8px 0;
    letter-spacing: 0.02em;
}

.ten-maps-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 6px;
}

.map-selector-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}

.map-selector-pill:hover {
    border-color: var(--brand-gold);
    background: rgba(180, 83, 9, 0.08);
}

.map-selector-pill.active {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #ffffff;
    border-color: #b45309;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.25);
}

.map-selector-pill .map-badge-testament {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    font-weight: 800;
}

.place-photo-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-surface);
    align-items: start;
}

@media (max-width: 640px) {
    .place-photo-card {
        grid-template-columns: 1fr;
    }
}

.place-photo-thumb {
    width: 100%;
    height: 115px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    background: #1e293b;
    transition: transform 0.2s ease;
}

.place-photo-thumb:hover {
    transform: scale(1.03);
}

.conc-word-pill {
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.conc-word-pill:hover,
.conc-word-pill.active {
    background: var(--brand-gold);
    color: #ffffff;
    border-color: var(--brand-gold);
}

.vine-alpha-btn {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
}

.vine-alpha-btn.active,
.vine-alpha-btn:hover {
    background: var(--brand-crimson);
    color: #ffffff;
    border-color: var(--brand-crimson);
}


/* ========================================================================= */
/* MÓDULO DE AUTENTICACIÓN, REGISTRO, PAÍSES Y PANEL ADMIN ARROW            */
/* ========================================================================= */

.auth-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.auth-guest-group,
.auth-logged-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-auth-login,
.btn-auth-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-auth-login {
    background: var(--bg-muted);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-auth-login:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.btn-auth-register {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

.btn-auth-register:hover {
    background: linear-gradient(135deg, #f59e0b, #92400e);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
}

.btn-auth-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    border: 1.5px solid #fbbf24;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fde68a;
    box-shadow: 0 4px 14px rgba(49, 46, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-auth-admin:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 18px rgba(49, 46, 129, 0.45);
    background: linear-gradient(135deg, #312e81, #4338ca);
}

.user-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-flag-icon {
    font-size: 1.15rem;
}

.btn-auth-logout {
    width: auto;
    height: auto;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-auth-logout:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ========================================================================= */
/* MODALES DE AUTENTICACIÓN (DISEÑO GLASSMORPHEM ACADÉMICO)                  */
/* ========================================================================= */

.arrow-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.arrow-auth-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.arrow-auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-dialog {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.arrow-auth-modal.active .auth-modal-dialog {
    transform: scale(1) translateY(0);
}

.auth-modal-dialog-wide {
    max-width: 1050px;
}

.auth-modal-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #78350f 100%);
    color: #ffffff;
    padding: 24px 28px;
    position: relative;
    border-bottom: 2px solid #fbbf24;
}

.auth-header-badge {
    display: inline-block;
    background: #fbbf24;
    color: #1e1b4b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-modal-header h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.auth-modal-header p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #fde68a;
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.auth-modal-body {
    padding: 26px 28px;
    overflow-y: auto;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form-group label i {
    color: var(--brand-gold);
    margin-right: 4px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.auth-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.auth-btn-primary {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.3);
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b, #92400e);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.42);
}

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-links-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
}

.auth-link {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ========================================================================= */
/* PANEL DE CONTROL DE ADMINISTRADOR (EXCLUSIVO DANIEL TOSCANO)              */
/* ========================================================================= */

.admin-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-box {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-total { background: #e0e7ff; color: #3730a3; }
.stat-icon-active { background: #dcfce7; color: #15803d; }
.stat-icon-countries { background: #fef3c7; color: #b45309; }

.stat-num {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.admin-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-search-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.admin-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.admin-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.admin-search-wrap input:focus {
    border-color: var(--brand-gold);
}

.btn-admin-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-export:hover {
    background: var(--bg-muted);
    border-color: var(--brand-gold);
}

.admin-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface);
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.admin-users-table th {
    background: var(--bg-muted);
    color: var(--text-secondary);
    padding: 12px 14px;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--border-color);
}

.admin-users-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-users-table tr:hover {
    background: rgba(180, 83, 9, 0.03);
}

.admin-highlight-row {
    background: rgba(251, 191, 36, 0.07) !important;
}

.user-id-tag {
    font-family: monospace;
    font-weight: 700;
    background: var(--bg-muted);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.78rem;
}

.user-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-full-name {
    color: var(--text-primary);
}

.user-handle-tag {
    font-size: 0.78rem;
    color: var(--brand-gold);
    font-weight: 700;
}

.crown-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 1px 7px;
    border-radius: 99px;
    width: fit-content;
    margin-top: 2px;
}

.country-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.country-flag-lg {
    font-size: 1.5rem;
    line-height: 1;
}

.country-name-txt {
    display: block;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.country-ip-txt {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: monospace;
}

.contact-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-email {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.contact-phone-wa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-phone-wa:hover {
    text-decoration: underline;
}

.dates-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-created {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.date-login {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 800;
}

.status-pill.active {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.suspended {
    background: #fee2e2;
    color: #dc2626;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-edit,
.btn-action-toggle,
.btn-action-delete {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.btn-action-edit:hover {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.btn-action-toggle.suspend:hover {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.btn-action-toggle.activate:hover {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.btn-action-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ========================================================================= */
/* NOTIFICACIONES TOAST FLOTANTES                                            */
/* ========================================================================= */

.arrow-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.arrow-toast {
    background: #18181b;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--brand-gold);
    pointer-events: auto;
}

.arrow-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.arrow-toast.toast-success {
    border-left-color: #22c55e;
}

.arrow-toast.toast-error {
    border-left-color: #ef4444;
}



/* =========================================================================
   ESTILOS INTERLINEAL PALABRA POR PALABRA Y DICCIONARIO STRONG CARIBE
   ========================================================================= */
.spanish-interlinear-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}
.sp-token-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    max-width: 320px;
    flex: 1 1 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sp-token-card:hover {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.15);
}
.sp-token-card.active {
    border: 2px solid var(--brand-gold);
    background: var(--brand-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 4px 14px rgba(180, 83, 9, 0.2);
}
.sp-token-card .sp-es-word {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.25;
}
.sp-token-card .sp-orig-word {
    font-size: 1.3rem;
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', Georgia, serif;
    color: var(--brand-gold);
    line-height: 1.2;
    margin-top: 2px;
}
.sp-token-card .sp-translit {
    font-size: 0.76rem;
    font-style: italic;
    color: var(--text-muted);
}
.sp-token-card .sp-strong-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--brand-gold);
    color: #fff;
    padding: 2px 7px;
    border-radius: 99px;
    margin-top: 6px;
    width: fit-content;
}
.sp-token-card .sp-def-hint {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.45;
    display: block;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}
.sp-token-card.active .sp-def-hint {
    color: var(--text-primary);
    font-weight: 500;
}

.strong-result-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.strong-result-card:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rvr-translation-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 2px;
    transition: all 0.15s ease;
}
.rvr-translation-pill:hover {
    background: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
}


/* =========================================================================
   TEOLOGÍA SISTEMÁTICA - DR. CHARLES C. RYRIE (EDITORIAL UNILIT)
   ========================================================================= */
.theology-header-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.theology-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.theology-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}
.theology-meta-author {
    font-size: 0.76rem;
    color: #fde68a;
}
.theology-header-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 12px 0;
    line-height: 1.3;
}
.theology-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 4px 10px;
    margin-bottom: 12px;
}
.theology-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 6px 4px;
    outline: none;
}
.theology-selectors-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.theology-select-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 180px;
}
.theology-select-group label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
}
.theology-select-group select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.theology-contextual-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-gold);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.theology-contextual-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.theology-rel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.theology-rel-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 5px 11px;
    border-radius: 99px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.theology-rel-pill:hover, .theology-rel-pill.active {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
    transform: translateY(-1px);
}
.theology-reader-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 24px;
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-primary);
}
.theology-reader-box .theology-chap-heading {
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.theology-reader-box .theology-chap-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin: 4px 0;
}
.theology-reader-box .theology-h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin: 22px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--border-color);
}
.theology-reader-box .theology-h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 16px 0 8px;
}
.theology-reader-box .theology-h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin: 12px 0 6px;
}
.theology-reader-box .theology-p {
    margin-bottom: 12px;
    text-align: justify;
}
.theology-bible-ref {
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.theology-bible-ref:hover {
    color: #1d4ed8;
}
.theology-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.theology-glossary-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 10px 12px;
    transition: all 0.18s ease;
}
.theology-glossary-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.theology-glossary-term {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--brand-gold);
    margin-bottom: 4px;
}
.theology-glossary-def {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.theology-nav-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* =========================================================================
   OMNI-SEARCH 360° & MULTI-RESOURCE DASHBOARD
   ========================================================================= */
.omni-search-header-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.omni-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.omni-filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.omni-filter-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.omni-filter-btn.active {
    background: var(--brand-gold);
    color: #0b0f19;
    border-color: var(--brand-gold);
    font-weight: 800;
}

.omni-result-section {
    transition: opacity 0.2s ease;
}

.btn-omni-jump-theology,
.btn-omni-jump-strong,
.btn-omni-jump-geo,
.btn-cross-jump-theology {
    cursor: pointer;
}

/* =========================================================================
   EXÉGESIS VERSÍCULO POR VERSÍCULO: DR. CHARLES C. RYRIE
   ========================================================================= */
.theology-verse-exegesis-box {
    margin-bottom: 14px;
}

.theology-exegesis-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-gold);
    border-radius: 10px;
    padding: 14px;
}

.theology-exegesis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.theology-verse-hit-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
}

.theology-verse-quote {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: rgba(217, 119, 6, 0.06);
    border-left: 3px solid var(--brand-gold);
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-family: var(--bible-font-family);
    font-style: italic;
}

.v-tag-ryrie-hit {
    background: rgba(217, 119, 6, 0.18);
    color: var(--brand-gold);
    border: 1px solid rgba(217, 119, 6, 0.4);
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v-tag-ryrie-hit:hover {
    background: var(--brand-gold);
    color: #0b0f19;
}

/* Exegesis Doctrinal & Matthew Henry Styles */
.theology-doctrinal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theology-doctrinal-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.btn-goto-sibling-verse:hover {
    text-decoration: underline;
    color: var(--brand-gold-hover, #f59e0b) !important;
}
.mh-dynamic-card {
    border-left: 4px solid #b45309 !important;
}
.mh-dynamic-card:hover {
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.2);
}


/* ==========================================================================
   ARROW OFFICIAL LOGO & BRANDING STYLES (Light & Dark Themes)
   ========================================================================== */
.arrow-logo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.arrow-logo-badge:hover {
    opacity: 0.95;
}

.arrow-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arrow-header-brand-logo {
    height: 48px;
    width: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-logo-badge:hover .arrow-header-brand-logo {
    transform: scale(1.04);
}

/* Theme Switching for Logo */
.logo-dark-theme {
    display: none !important;
}

.logo-light-theme {
    display: block !important;
}

body.theme-dark .logo-dark-theme {
    display: block !important;
}

body.theme-dark .logo-light-theme {
    display: none !important;
}

/* Auth Modals Logo */
.auth-modal-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
}

.auth-modal-logo {
    height: 58px;
    width: auto;
    max-height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

/* Dock Brand Emblem */
.dock-brand-emblem {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.3));
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .arrow-header-brand-logo {
        height: 38px;
    }
    .arrow-title-block p {
        display: none;
    }
}


/* ========================================================================= */
/* PWA: BOTONES Y MODAL DE DESCARGA / INSTALACIÓN EN CELULAR, TABLET Y PC    */
/* ========================================================================= */

.btn-topbar-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.22) 100%);
    color: var(--brand-gold);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-topbar-download:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0f19;
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-topbar-download.installed {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.btn-pwa-install-glow {
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.8) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
    animation: pwaPulse 3.5s infinite;
}

.btn-pwa-install-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.btn-pwa-install-glow.installed {
    animation: none;
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
    box-shadow: none;
}

@keyframes pwaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

/* Modal PWA Backdrop y Ventana */
.pwa-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pwa-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.pwa-modal-window {
    background: var(--bg-surface);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    box-sizing: border-box;
}

.pwa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 18px;
    gap: 16px;
}

.pwa-modal-logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-modal-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.pwa-modal-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pwa-modal-close-btn:hover {
    background: var(--bg-hover);
    color: var(--brand-crimson);
    border-color: var(--brand-crimson);
}

/* Pestañas de Dispositivos */
.pwa-device-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.pwa-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-tab-btn:hover {
    color: var(--brand-gold);
    background: rgba(245, 158, 11, 0.08);
}

.pwa-tab-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3);
}

/* Paneles de Contenido */
.pwa-tab-pane {
    display: none;
}

.pwa-tab-pane.active {
    display: block;
    animation: fadeInTab 0.2s ease forwards;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pwa-step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s ease;
}

.pwa-step-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.pwa-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-step-text {
    flex: 1;
}

.pwa-step-text strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.pwa-step-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Beneficios PWA */
.pwa-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.pwa-benefit-item {
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pwa-benefit-item i {
    font-size: 1.25rem;
    color: var(--brand-gold);
    margin-bottom: 6px;
    display: inline-block;
}

.pwa-benefit-item h5 {
    margin: 0 0 3px 0;
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 800;
}

.pwa-benefit-item p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .pwa-benefits-grid {
        grid-template-columns: 1fr;
    }
    .pwa-device-tabs {
        flex-direction: column;
    }
}


/* ========================================================================= */
/* TARJETAS DE GEOGRAFÍA BÍBLICA E HISTÓRICA EN EL PANEL DE EXÉGESIS         */
/* ========================================================================= */

.geo-dynamic-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.geo-verse-place-item {
    transition: all 0.2s ease;
}

.geo-verse-place-item:hover {
    border-color: rgba(2, 132, 199, 0.45) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.btn-fly-to-map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-fly-to-map:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.mh-dynamic-card {
    transition: all 0.2s ease;
}

.mac-dynamic-card {
    transition: all 0.2s ease;
}


/* ========================================================================= */
/* LINEA DE TIEMPO Y MODO CRONOLOGICO AVANZADO                               */
/* ========================================================================= */
.sem-toggle-pill.timeline-pill {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: var(--brand-gold);
    font-weight: 700;
}
.sem-toggle-pill.timeline-pill:hover {
    background: rgba(217, 119, 6, 0.22);
    border-color: var(--brand-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.chrono-active-banner {
    background: linear-gradient(90deg, #1e1b4b 0%, #451a03 50%, #1e1b4b 100%);
    border-bottom: 1px solid rgba(217, 119, 6, 0.4);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    color: #fef3c7;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    animation: fadeInDown 0.3s ease;
}

.chrono-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.chrono-banner-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.chrono-banner-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chrono-banner-info-text strong {
    color: #fef3c7;
    font-size: 0.94rem;
    font-weight: 800;
}

.chrono-banner-info-text span {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.chrono-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-chrono-timeline-view {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}

.btn-chrono-timeline-view:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.5);
}

/* Modal de Linea de Tiempo */
.arrow-modal-timeline {
    max-width: 1100px !important;
    width: 95% !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
}

.timeline-quick-track {
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    min-height: 52px;
}

.timeline-quick-track::-webkit-scrollbar {
    height: 6px;
}

.timeline-quick-track::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-quick-track::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.timeline-quick-pill {
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.timeline-quick-pill:hover {
    background: var(--bg-muted);
    border-color: var(--brand-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.timeline-quick-pill.is-active {
    background: var(--brand-gold);
    color: #ffffff !important;
    border-color: var(--brand-gold);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.timeline-quick-pill.is-active i {
    color: #ffffff !important;
}

.timeline-vertical-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding: 10px 0 30px 10px;
}

.timeline-vertical-flow::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 27px;
    width: 3px;
    background: linear-gradient(180deg, #d97706 0%, #dc2626 20%, #7c3aed 40%, #2563eb 60%, #059669 80%, #ca8a04 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-era-station {
    position: relative;
    padding-left: 54px;
    z-index: 2;
}

.timeline-era-node {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 3px solid var(--bg-surface);
    z-index: 3;
}

.timeline-era-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.timeline-era-card:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.timeline-era-card.current-reading-era {
    border: 2px solid var(--brand-gold);
    background: rgba(217, 119, 6, 0.04);
}

.timeline-era-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.timeline-era-title-wrap h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.timeline-era-period {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
}

.timeline-current-reading-pill {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
}

.timeline-era-summary {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
}

.timeline-segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.timeline-seg-btn {
    text-align: left;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-primary);
    position: relative;
}

.timeline-seg-btn:hover {
    background: var(--bg-surface);
    border-color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-seg-btn.is-active-seg {
    border: 2px solid var(--brand-gold);
    background: rgba(217, 119, 6, 0.1);
}

.timeline-seg-range {
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--brand-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-seg-note {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* ========================================================================= */
/* ATLAS BIBLICO INTERACTIVO - GOOGLE MAPS DE LA BIBLIA                      */
/* ========================================================================= */
.map-toolbar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.map-epoch-pills, .map-layer-pills {
    display: inline-flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.epoch-pill, .layer-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.epoch-pill:hover, .layer-pill:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.epoch-pill.active {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.layer-pill.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.map-export-buttons {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.map-export-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.map-export-btn:hover {
    border-color: var(--brand-gold);
    background: var(--bg-surface);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-print-map:hover { color: #d97706; }
.btn-img-map:hover { color: #0284c7; }
.btn-pdf-map:hover { color: #dc2626; }

/* Grid de los 10 Mapas Canonicos */
.ten-maps-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.ten-map-btn {
    text-align: left;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 6px 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ten-map-btn:hover {
    border-color: var(--brand-gold);
    background: var(--bg-surface);
    transform: translateY(-1px);
}

.ten-map-btn.active {
    border-color: var(--brand-gold) !important;
    background: rgba(217, 119, 6, 0.12) !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.ten-map-btn-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ten-map-btn.active .ten-map-btn-title {
    color: var(--brand-gold);
}

.ten-map-btn-era {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Lienzo del Mapa y Boton Google Earth */
.map-canvas-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-canvas-container.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.map-canvas-container.is-fullscreen #arrowBiblicalMap {
    height: 100vh !important;
}

#arrowBiblicalMap {
    width: 100%;
    height: 440px !important;
    background: #0f172a;
    transition: height 0.3s ease;
}

.btn-floating-google-earth {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 450;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: all 0.2s ease;
}

.btn-floating-google-earth:hover {
    background: #1e3a8a;
    border-color: #38bdf8;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

/* Ficha Geografica, Historica y Cultural */
.selected-place-detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    animation: fadeIn 0.3s ease;
}

.place-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.place-detail-names h3 {
    margin: 0 0 4px 0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.place-detail-modern-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.place-detail-body-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.4fr);
    gap: 16px;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .place-detail-body-grid {
        grid-template-columns: 1fr;
    }
}

.place-photo-box {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
}

.place-photo-img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.place-photo-img:hover {
    transform: scale(1.03);
}

.place-photo-caption {
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.95);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.place-photo-caption a {
    color: #38bdf8;
    text-decoration: none;
}

/* Tabla Comparativa Antes vs. Hoy */
.comparative-table-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epoch-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .epoch-compare-grid {
        grid-template-columns: 1fr;
    }
}

.epoch-column {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
}

.epoch-column.ancient-col {
    border-left: 3px solid #d97706;
}

.epoch-column.modern-col {
    border-left: 3px solid #0284c7;
}

.epoch-col-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ancient-col .epoch-col-title { color: #d97706; }
.modern-col .epoch-col-title { color: #0284c7; }

.epoch-col-content {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.place-history-section, .place-culture-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.place-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.place-section-text {
    font-size: 0.83rem;
    line-height: 1.58;
    color: var(--text-secondary);
    margin: 0;
}

/* Print Stylesheet */
@media print {
    body * {
        visibility: hidden !important;
    }
    .print-sheet-container, .print-sheet-container * {
        visibility: visible !important;
    }
    .print-sheet-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 24px !important;
        font-family: Arial, sans-serif !important;
    }
    .no-print {
        display: none !important;
    }
}


/* =========================================================================
   VENTANA EMERGENTE / BURBUJA INTERLINEAL ANCLADA A LA PALABRA
   ========================================================================= */
.word-token {
    cursor: pointer;
    border-radius: 4px;
    padding: 1px 2px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.word-token:hover {
    background: rgba(200, 149, 68, 0.18);
    color: var(--brand-gold, #b45309);
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.word-token.word-token-active-bubble {
    background: rgba(200, 149, 68, 0.28) !important;
    outline: 2px solid var(--brand-gold, #c89544) !important;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(200, 149, 68, 0.18);
}

.word-interlinear-popover {
    position: absolute;
    z-index: 999999;
    width: 455px;
    max-width: calc(100vw - 20px);
    background: var(--bg-surface, #ffffff);
    color: var(--text-main, #1e293b);
    border: 1.5px solid var(--brand-gold, #c89544);
    border-radius: 14px;
    box-shadow: 0 20px 44px -6px rgba(0, 0, 0, 0.32), 0 4px 16px 0 rgba(200, 149, 68, 0.22);
    padding: 14px 16px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    line-height: 1.48;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.word-interlinear-popover.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Flecha triangular */
.word-interlinear-popover::before,
.word-interlinear-popover::after {
    content: '';
    position: absolute;
    left: var(--arrow-left, 50%);
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translateX(-50%);
}

.word-interlinear-popover.placement-top::before {
    bottom: -11px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 11px solid var(--brand-gold, #c89544);
}
.word-interlinear-popover.placement-top::after {
    bottom: -9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid var(--bg-surface, #ffffff);
}

.word-interlinear-popover.placement-bottom::before {
    top: -11px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid var(--brand-gold, #c89544);
}
.word-interlinear-popover.placement-bottom::after {
    top: -9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 10px solid var(--bg-surface, #ffffff);
}

.wip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.wip-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wip-lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(200, 149, 68, 0.15);
    color: var(--brand-gold, #b45309);
}

.wip-strong-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.wip-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wip-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main, #1e293b);
}

.wip-word-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin-top: 5px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wip-orig-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wip-orig-text {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-gold, #b45309);
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', 'Times New Roman', serif;
}

.wip-translit-box {
    text-align: right;
}

.wip-translit {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 700;
    color: var(--text-main, #334155);
    font-family: 'Georgia', serif;
}

.wip-part-speech {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.wip-def-container {
    max-height: 115px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 10px;
}

.wip-def-container::-webkit-scrollbar,
.wip-scroll-body::-webkit-scrollbar,
.wip-concordance-list::-webkit-scrollbar {
    width: 5px;
}
.wip-def-container::-webkit-scrollbar-thumb,
.wip-scroll-body::-webkit-scrollbar-thumb,
.wip-concordance-list::-webkit-scrollbar-thumb {
    background: var(--border-color, #cbd5e1);
    border-radius: 4px;
}

.wip-scroll-body {
    max-height: min(66vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
}

/* Morfología y Raíz Etimológica */
.wip-morph-root-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.wip-mr-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 9px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wip-mr-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold, #b45309);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wip-mr-main {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    line-height: 1.35;
}

.wip-mr-sub {
    font-size: 0.72rem;
    color: var(--text-muted, #475569);
    line-height: 1.35;
}

.wip-root-strong-link {
    display: inline-block;
    background: rgba(217, 119, 6, 0.14);
    color: var(--brand-gold, #b45309);
    border: 1px solid rgba(217, 119, 6, 0.35);
    padding: 0 5px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.15s;
}
.wip-root-strong-link:hover {
    background: var(--brand-gold, #c89544);
    color: #ffffff;
}

/* Contador Automático en Capítulo, Libro y Biblia + Concordancias */
.wip-freq-section {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 10px;
}

.wip-freq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.wip-counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.wip-counter-card {
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    padding: 6px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.wip-counter-card:hover {
    border-color: var(--brand-gold, #c89544);
    transform: translateY(-1px);
}

.wip-counter-card.active {
    background: rgba(200, 149, 68, 0.13);
    border-color: var(--brand-gold, #c89544);
    box-shadow: 0 2px 6px rgba(200, 149, 68, 0.18);
}

.wip-counter-num {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--brand-gold, #b45309);
    line-height: 1.15;
}

.wip-counter-scope {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main, #1e293b);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.wip-counter-meta {
    font-size: 0.62rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wip-concordance-list {
    max-height: 155px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 3px;
}

.wip-passage-item {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 7px;
    padding: 6px 9px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.wip-passage-item:hover {
    border-color: var(--brand-gold, #c89544);
    background: rgba(200, 149, 68, 0.07);
}

.wip-passage-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.wip-passage-ref {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--brand-gold, #b45309);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wip-passage-cnt {
    font-size: 0.63rem;
    font-weight: 700;
    background: rgba(200, 149, 68, 0.15);
    color: var(--brand-gold, #b45309);
    padding: 1px 5px;
    border-radius: 4px;
}

.wip-passage-snippet {
    font-size: 0.75rem;
    color: var(--text-main, #334155);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wip-hl {
    background: rgba(217, 119, 6, 0.24);
    color: inherit;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 3px;
}

.wip-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold, #b45309);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wip-def-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-main, #334155);
    margin: 0;
}

.wip-rvr-preview {
    background: rgba(200, 149, 68, 0.08);
    border-left: 3px solid var(--brand-gold, #c89544);
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.76rem;
    color: var(--text-muted, #475569);
    margin-bottom: 12px;
    line-height: 1.45;
}

.wip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 10px;
}

.wip-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: var(--bg-body, #f8fafc);
    color: var(--text-main, #1e293b);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.wip-btn-action:hover {
    background: var(--brand-gold, #c89544);
    color: #ffffff;
    border-color: var(--brand-gold, #c89544);
}

.wip-btn-primary {
    background: var(--brand-gold, #c89544);
    color: #ffffff;
    border-color: var(--brand-gold, #c89544);
}

.wip-btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
}

/* =========================================================================
   MENÚ ABATIBLE DESLIZABLE DE IZQUIERDA A DERECHA EN DISPOSITIVOS MÓVILES
   ========================================================================= */
.mobile-topbar-compact,
.mobile-drawer-header,
.mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 992px) {
    .arrow-topbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-header);
        padding: 0;
        z-index: 100020 !important;
    }

    .mobile-topbar-compact {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        gap: 8px;
        min-height: 52px;
        background: var(--bg-header);
    }

    .btn-mobile-drawer-toggle {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 13px;
        border-radius: 10px;
        border: 1.5px solid var(--brand-gold);
        background: var(--brand-gold-light);
        color: var(--brand-gold);
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(180, 83, 9, 0.15);
        transition: all 0.18s ease;
        flex-shrink: 0;
    }

    .btn-mobile-drawer-toggle:active {
        transform: scale(0.96);
    }

    .mobile-active-passage-pill {
        flex: 1;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid var(--border-strong);
        background: var(--bg-surface);
        color: var(--text-primary);
        font-family: 'Cinzel', Georgia, serif;
        font-size: 0.86rem;
        font-weight: 800;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-mini-logo {
        height: 22px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .mobile-quick-chap-nav {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    /* Fondo oscuro translúcido detrás del menú abatible (SIN blur sobre el menú) */
    .mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(9, 13, 22, 0.58);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 100010;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.mobile-drawer-open .mobile-drawer-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Panel Abatible que se desliza de Izquierda a Derecha (por encima del backdrop) */
    .topbar-collapsible-drawer {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(355px, 90vw) !important;
        max-width: 90vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--bg-surface) !important;
        border-right: 2px solid var(--brand-gold);
        box-shadow: 14px 0 38px rgba(0, 0, 0, 0.45);
        z-index: 100030 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: 65px !important;
        box-sizing: border-box !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.mobile-drawer-open .topbar-collapsible-drawer {
        transform: translateX(0);
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        background: var(--bg-elevated);
        border-bottom: 1.5px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-mobile-drawer-close {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 10px;
        border-radius: 8px;
        border: 1px solid var(--border-strong);
        background: var(--bg-muted);
        color: var(--text-primary);
        font-size: 0.75rem;
        font-weight: 800;
        cursor: pointer;
    }

    .btn-mobile-drawer-close:hover {
        background: var(--brand-crimson);
        color: #ffffff;
        border-color: var(--brand-crimson);
    }

    /* Acomodo limpio vertical dentro del cajón lateral móvil sin desbordes ni recortes */
    .topbar-collapsible-drawer .topbar-row-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ocultar el bloque de logo duplicado y el botón de descarga duplicado en móvil */
    .topbar-collapsible-drawer .brand-cluster,
    .topbar-collapsible-drawer #btnPwaInstallTop {
        display: none !important;
    }

    .topbar-collapsible-drawer .nav-selectors-cluster {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .topbar-collapsible-drawer .control-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: space-between !important;
        padding: 4px 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .topbar-collapsible-drawer .control-group label {
        flex-shrink: 0;
        font-size: 0.68rem;
    }

    .topbar-collapsible-drawer .arrow-select {
        flex: 1 1 0% !important;
        width: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 0.8rem !important;
        padding: 4px 2px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .topbar-collapsible-drawer .utility-cluster {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .topbar-collapsible-drawer .font-controls {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .topbar-collapsible-drawer .font-btn {
        flex: 1;
        text-align: center;
        padding: 5px 8px;
    }

    .topbar-collapsible-drawer .theme-pills {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .topbar-collapsible-drawer .theme-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 5px 6px !important;
        font-size: 0.74rem !important;
    }

    .topbar-collapsible-drawer .auth-cluster {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .topbar-collapsible-drawer .topbar-row-semantic {
        padding: 10px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .topbar-collapsible-drawer .semantic-bar-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .topbar-collapsible-drawer .semantic-toggles {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .topbar-collapsible-drawer .sem-toggle-pill {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        box-sizing: border-box !important;
    }

    .topbar-collapsible-drawer .sem-count-badge {
        margin-left: auto !important;
    }

    .topbar-collapsible-drawer .quick-actions-right {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .topbar-collapsible-drawer .quick-actions-right button {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        font-size: 0.73rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* =========================================================================
   LECTOR DE AUDIO BÍBLICO Y PRONUNCIACIÓN ORIGINAL (GRIEGO / HEBREO)
   ========================================================================= */
.bible-audio-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    margin: 10px 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.08), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(180, 83, 9, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 8px;
    z-index: 35;
    backdrop-filter: blur(8px);
}

.bab-left,
.bab-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.bab-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.bab-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #fff;
    border-color: transparent;
}

.bab-btn-primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.bab-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.bab-select {
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.verse-item.verse-audio-reading {
    border-color: var(--brand-gold) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.btn-speak-orig {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(180, 83, 9, 0.35);
    background: rgba(180, 83, 9, 0.1);
    color: var(--brand-gold);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-speak-orig:hover {
    background: var(--brand-gold);
    color: #fff;
}

.btn-speak-orig.speaking {
    background: var(--brand-gold);
    color: #fff;
    animation: pulseAudioOrig 1s infinite ease-in-out;
}

.btn-speak-orig-mini {
    padding: 2px 6px;
    font-size: 0.68rem;
}

@keyframes pulseAudioOrig {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
}


/* ==========================================================================
   NOTAS INLINE DEBAJO DE CADA VERSÍCULO (POR USUARIO)
   ========================================================================== */
.verse-saved-note {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--brand-gold-light);
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-left: 4px solid var(--brand-gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    color: var(--text-primary);
}

.verse-saved-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.verse-saved-note-header strong {
    color: var(--brand-gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.verse-saved-note-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v-note-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v-note-mini-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.v-note-mini-btn.v-note-mini-del:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.verse-saved-note-body {
    line-height: 1.5;
    word-break: break-word;
}

.verse-inline-note-editor {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--brand-gold);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.verse-inline-note-header {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verse-inline-note-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 68px;
}

.verse-inline-note-textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.verse-inline-note-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.v-inline-btn-cancel,
.v-inline-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v-inline-btn-cancel {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
}

.v-inline-btn-cancel:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.v-inline-btn-save {
    border: none;
    background: var(--brand-gold);
    color: #fff;
}

.v-inline-btn-save:hover {
    filter: brightness(1.08);
}


/* ==========================================================================
   VISIBILIDAD Y RESPUESTA EN TABLETS Y MÓVILES (VERSÍCULOS + ANOTACIONES)
   ========================================================================== */
.mobile-verse-select {
    height: 32px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    max-width: 68px;
}

@media (max-width: 1180px), (hover: none) {
    .verse-actions-right {
        opacity: 1 !important;
        flex-wrap: wrap;
        gap: 6px;
    }

    .v-act-btn {
        padding: 5px 9px;
        font-size: 0.74rem;
    }
}

@media (max-width: 768px) {
    .verse-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .verse-actions-right {
        width: 100%;
        justify-content: flex-start;
    }

    .verse-saved-note,
    .verse-inline-note-editor {
        padding: 10px 11px;
    }

    .verse-inline-note-footer {
        flex-wrap: wrap;
    }

    .v-inline-btn-cancel,
    .v-inline-btn-save {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}


/* ==========================================================================
   BARRA DE FORMATO ENRIQUECIDO (RICH-TEXT) EN NOTAS INLINE DE VERSÍCULOS
   ========================================================================== */
.verse-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.v-rte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v-rte-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.v-rte-sep {
    width: 1px;
    height: 18px;
    background: var(--border-color);
    margin: 0 2px;
}

.v-rte-select {
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.v-rte-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 0 1px var(--border-strong);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}

.v-rte-color-dot:hover {
    transform: scale(1.18);
}

.v-rte-color-picker {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.verse-inline-note-richtext {
    width: 100%;
    box-sizing: border-box;
    min-height: 92px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    outline: none;
}

.verse-inline-note-richtext:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.verse-inline-note-richtext:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.verse-inline-note-richtext ul,
.verse-inline-note-richtext ol,
.verse-saved-note-body ul,
.verse-saved-note-body ol {
    margin: 6px 0;
    padding-left: 22px;
}

.verse-inline-note-richtext li,
.verse-saved-note-body li {
    margin-bottom: 3px;
}


/* ==========================================================================
   BOTÓN MIS NOTAS, PANEL TODAS LAS NOTAS, ACTUALIZAR Y SELECTOR DE PASAJE
   ========================================================================== */
.sem-toggle-pill.notes-pill {
    border-color: rgba(180, 83, 9, 0.35);
    color: var(--brand-gold);
}

.sem-toggle-pill.notes-pill.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
}

.sem-toggle-pill.notes-pill.active .sem-count-badge {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.btn-mobile-refresh-app {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid var(--brand-gold);
    background: var(--brand-gold-light);
    color: var(--brand-gold);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.all-user-notes-panel {
    margin: 12px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--brand-gold);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.all-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--brand-gold);
    font-size: 0.92rem;
}

.all-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.all-notes-card {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--brand-gold);
}

.all-notes-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Modal unificado de Pasaje (Libro → Capítulo → Versículo en un solo recuadro) */
.passage-picker-window {
    max-width: 720px;
    width: 94vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}

.passage-picker-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.pp-step-tab {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pp-step-tab.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
}

.passage-picker-body {
    overflow-y: auto;
    padding: 14px 16px;
    flex: 1;
}

.pp-step-pane {
    display: none;
}

.pp-step-pane.active {
    display: block;
}

.pp-search-row {
    margin-bottom: 12px;
}

.pp-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
}

.pp-group-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
    margin: 10px 0 6px;
}

.pp-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.pp-book-btn {
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pp-book-btn:hover,
.pp-book-btn.active {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
    color: var(--brand-gold);
}

.pp-pane-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pp-num-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 7px;
}

.pp-num-btn {
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.pp-num-btn:hover,
.pp-num-btn.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
}


/* ==========================================================================
   HISTORIAL DE ÚLTIMOS 10 PASAJES BUSCADOS EN EL MENÚ
   ========================================================================== */
.passage-history-menu-wrap {
    position: relative;
    display: inline-flex;
}

.passage-history-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 245px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1.5px solid var(--brand-gold);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    z-index: 100025;
}

.ph-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 7px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--brand-gold);
}

.ph-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.ph-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ph-history-item:hover {
    border-color: var(--brand-gold);
    background: var(--brand-gold-light);
    color: var(--brand-gold);
}

.ph-history-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .passage-history-menu-wrap {
        width: 100%;
        display: block;
    }

    .passage-history-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 6px;
    }
}

.verse-inline-note-richtext blockquote,
.verse-saved-note-body blockquote {
    margin: 6px 0 8px;
    padding: 8px 12px;
    border-left: 3px solid var(--brand-gold);
    border-radius: 0 8px 8px 0;
    background: rgba(180, 83, 9, 0.08);
    font-style: normal;
    line-height: 1.5;
}


/* ==========================================================================
   ESTILO ACORDEÓN 5 COLUMNAS PARA EL SELECTOR DE PASAJE (ESTILO YOUVERSION)
   ========================================================================== */
#passagePickerModalBackdrop .passage-picker-window {
    max-width: 410px;
    width: 92vw;
    max-height: 82vh;
    border-radius: 16px;
}

.pp-acc-divider {
    border: none;
    border-top: 1px solid var(--border-strong);
    margin: 10px 0;
}

.pp-acc-item {
    margin-bottom: 2px;
}

.pp-acc-book-btn {
    width: 100%;
    padding: 10px 6px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.pp-acc-book-btn:hover {
    background: var(--bg-elevated);
}

.pp-acc-book-btn.active {
    color: var(--brand-gold);
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding-bottom: 8px;
}

.pp-acc-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    padding: 4px 2px 12px;
}

.pp-acc-cell {
    padding: 10px 4px;
    border-radius: 8px;
    border: 1px solid rgba(180, 83, 9, 0.25);
    background: var(--brand-gold-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pp-acc-cell:hover,
.pp-acc-cell.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
}

.pp-acc-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 2px 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.pp-acc-loading {
    padding: 12px 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* ==========================================================================
   VENTANA FLOTANTE INDEPENDIENTE PARA NOTAS (DESPRENDER / UNIR)
   ========================================================================== */
.floating-note-window {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 460px;
    max-width: calc(100vw - 24px);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 2px solid var(--brand-gold);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28);
    z-index: 100040;
    resize: both;
    overflow: hidden;
}

.floating-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    cursor: move;
    user-select: none;
}

.floating-note-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--brand-gold);
}

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

.floating-note-body {
    padding: 10px 12px;
    overflow-y: auto;
    flex: 1;
}

.floating-note-richtext {
    min-height: 150px;
    max-height: 46vh;
}

.floating-note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .floating-note-window {
        left: 10px !important;
        right: 10px !important;
        bottom: 12px !important;
        width: auto !important;
        max-width: none;
        resize: none;
    }
}


/* ==========================================================================
   CORRECTOR ORTOGRÁFICO EN NOTAS (INLINE Y FLOTANTE)
   ========================================================================== */
.v-rte-spellcheck {
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-gold);
    border-color: rgba(180, 83, 9, 0.35);
}

.v-spellcheck-results {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--brand-gold);
    font-size: 0.78rem;
}

.v-sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--brand-gold);
    flex-wrap: wrap;
}

.v-sc-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 140px;
    overflow-y: auto;
}

.v-sc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.v-sc-bad {
    color: #dc2626;
    font-weight: 800;
    text-decoration: underline wavy #dc2626;
}

.v-sc-chips {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}

.v-sc-chip {
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid rgba(5, 150, 105, 0.4);
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.v-sc-chip:hover {
    background: #059669;
    color: #fff;
}

.v-sc-ok {
    color: var(--text-secondary);
    font-weight: 600;
}

.arrow-modal-backdrop.active {
    display: flex;
}

.sem-jesus-words .sem-imperative {
    color: var(--sem-imperative-green) !important;
    background: var(--sem-imperative-bg) !important;
    border-bottom: 2px dotted var(--sem-imperative-border) !important;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.sem-promise-text .sem-imperative {
    color: var(--sem-imperative-green) !important;
    background: var(--sem-imperative-bg) !important;
    border-bottom: 2px dotted var(--sem-imperative-border) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}


/* ==========================================================================
   AJUSTES LIMPIOS DEL MENÚ MÓVIL/TABLET Y POSICIÓN DEL ACORDEÓN DE LIBROS
   ========================================================================== */
.btn-open-books-accordion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--brand-gold);
    background: var(--brand-gold-light);
    color: var(--brand-gold);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-open-books-accordion:hover {
    background: var(--brand-gold);
    color: #ffffff;
}

@media (max-width: 992px) {
    .mobile-drawer-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .topbar-collapsible-drawer .quick-actions-right button {
        white-space: normal !important;
        line-height: 1.2 !important;
        min-height: 38px !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .btn-open-books-accordion {
        width: 100%;
        padding: 9px 12px;
        font-size: 0.84rem;
    }
}

#passagePickerModalBackdrop.open {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 58px 14px 20px;
}

@media (max-width: 520px) {
    #passagePickerModalBackdrop.open {
        justify-content: center;
        padding: 52px 10px 16px;
    }
}

@media (max-width: 992px) {
    .topbar-collapsible-drawer .control-group.mobile-hide-legacy-nav {
        display: none !important;
    }
}


/* ==========================================================================
   MENÚ DESPLEGABLE DE PERFIL (EDITAR PERFIL, AYUDA/SOPORTE, ADMIN, SALIR)
   ========================================================================== */
.arrow-profile-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.arrow-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.arrow-profile-trigger:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.arrow-profile-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 245px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1.5px solid var(--brand-gold);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
    z-index: 100035;
}

.arrow-profile-menu-head {
    padding: 6px 8px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.arrow-profile-menu-head strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text-primary);
}

.arrow-profile-menu-head span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
}

.arrow-profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.arrow-profile-menu-item:hover {
    background: var(--bg-elevated);
}

.arrow-profile-admin-item {
    color: var(--brand-gold);
}

.arrow-profile-logout-item {
    color: #dc2626;
}

.arrow-profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

@media (max-width: 992px) {
    .arrow-profile-dropdown-wrap {
        width: 100%;
        display: block;
    }

    .arrow-profile-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .arrow-profile-menu {
        position: static;
        width: 100%;
        box-sizing: border-box;
        margin-top: 6px;
    }
}


/* ==========================================================================
   CHIPS DE TEMAS RÁPIDOS EN TEOLOGÍA SISTEMÁTICA (RYRIE)
   ========================================================================== */
.theology-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.theology-topic-chip {
    padding: 5px 10px;
    border-radius: 99px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theology-topic-chip:hover,
.theology-topic-chip.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #0f172a;
}
