/*
Theme Name: Biblia Jovem
Theme URI: https://bibliajovem.com.br
Author: Allan Dev
Description: Tema WordPress moderno para Biblia Online com audio TTS (Web Speech gratuito ou ElevenLabs premium). Dark mode, design vibrante.
Version: 2.8.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biblia-jovem
Tags: dark, bible, youth, modern, responsive, audio, tts, elevenlabs
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f35;
    --bg-elevated: #16213e;

    /* Neon Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);

    /* Text Colors */
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --text-accent: #667eea;
    --text-highlight: #f093fb;

    /* Accent Colors */
    --accent-purple: #667eea;
    --accent-pink: #f093fb;
    --accent-cyan: #00f2fe;
    --accent-orange: #f5576c;
    --accent-gold: #f5af19;

    /* Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(102, 126, 234, 0.3);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(102, 126, 234, 0.2);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-display: 'Clash Display', 'Poppins', sans-serif;
    --font-body: 'DM Sans', 'Nunito', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-verse: 'Crimson Pro', 'Lora', Georgia, serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================
   Ativado via html[data-theme="light"].
   Só sobrescreve cores — layout, tipografia e
   spacing continuam idênticos.
   ============================================ */
html[data-theme="light"] {
    /* Backgrounds */
    --bg-primary: #f5f5fa;
    --bg-secondary: #eeeef5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-elevated: #ffffff;

    /* Gradients: mantidos (ficam ótimos nos dois modos) */

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --text-accent: #5a6fd6;
    --text-highlight: #c050d0;

    /* Accents: levemente mais saturados p/ legibilidade */
    --accent-purple: #5a6fd6;
    --accent-pink: #d050b0;
    --accent-cyan: #0099cc;
    --accent-orange: #e0455a;
    --accent-gold: #d09510;

    /* Borders & Shadows */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(90, 111, 214, 0.25);
    --shadow-glow: 0 0 20px rgba(90, 111, 214, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(90, 111, 214, 0.12);
}

/* Light: header glassmorphism */
html[data-theme="light"] .site-header {
    background: rgba(245, 245, 250, 0.85);
}

/* Light: body noise texture mais sutil */
html[data-theme="light"] body::before {
    opacity: 0.01;
}

/* Light: ghost button hover */
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .translation-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}

/* Light: modal overlay */
html[data-theme="light"] .bj-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Light: search results dropdown */
html[data-theme="light"] #bj-search-results {
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-card);
}

/* Light: verse highlight background */
html[data-theme="light"] .verse-item.highlighted {
    background: rgba(90, 111, 214, 0.06);
}

/* Light: scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-pink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    min-height: 60px;
}

/* Brand/Logo */
.site-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.site-brand .brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.site-brand .brand-name span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Navigation - Desktop */
.main-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.main-nav a i {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header Buttons */
.header-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.header-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Theme Toggle */
.header-btn .icon-sun { display: none; }
.header-btn .icon-moon { display: block; }

html[data-theme="light"] .header-btn .icon-sun { display: block; }
html[data-theme="light"] .header-btn .icon-moon { display: none; }

/* User Avatar */
.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.header-avatar:hover {
    border-color: var(--accent-purple);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    display: flex;
    max-height: 600px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.mobile-nav__divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 20px;
    opacity: .5;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--accent-purple);
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-modal__container {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 0 16px;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.2s ease;
}

.search-modal.active .search-modal__container {
    transform: translateY(0) scale(1);
}

.search-modal__box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.search-modal__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.search-modal__input-wrap i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-modal__input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
}

.search-modal__input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-modal__input-wrap kbd {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.search-modal__results {
    max-height: 50vh;
    overflow-y: auto;
}

.search-modal__results:empty {
    display: none;
}

.search-modal__footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 16px;
    background: var(--bg-card);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-modal__footer kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.65rem;
    margin-right: 4px;
}

/* ============================================
   RESPONSIVE - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .header-inner {
        padding: var(--space-md) 0;
    }
    
    .site-brand .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .site-brand .brand-name {
        font-size: 1.3rem;
    }
    
    .main-nav {
        display: flex;
    }
    
    .menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 0;
        min-height: 56px;
    }
    
    .site-brand .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .site-brand .brand-name {
        font-size: 1.3rem;
    }
    
    .header-actions {
        gap: 2px;
    }
    
    .header-btn {
        width: 34px;
        height: 34px;
        font-size: .9rem;
    }

    /* Esconder no mobile: tema toggle e download offline */
    #theme-toggle,
    #offline-open {
        display: none !important;
    }

    /* Compactar streak badge no mobile */
    .bj-streak-badge {
        gap: 2px !important;
        padding: 3px 6px !important;
    }
    .bj-streak-badge__level {
        display: none !important;
    }
    .bj-streak-badge__fire {
        font-size: .75rem !important;
    }
    .bj-streak-badge__count {
        font-size: .7rem !important;
    }

    /* Avatar menor no mobile */
    .header-avatar {
        width: 30px;
        height: 30px;
    }
    }
    
    .header-avatar {
        width: 34px;
        height: 34px;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .search-modal {
        padding-top: 10vh;
    }
    
    .search-modal__input-wrap {
        padding: 14px 16px;
    }
    
    .search-modal__input-wrap input {
        font-size: 1rem;
    }
    
    .search-modal__input-wrap kbd {
        display: none;
    }
    
    .search-modal__footer {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */
@media (max-width: 380px) {
    .header-inner {
        min-height: 60px;
    }
    
    .site-brand .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .site-brand .brand-name {
        font-size: 1.05rem;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(240, 147, 251, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-verse {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-verse blockquote {
    font-family: var(--font-verse);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.hero-verse .verse-ref {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

/* ============================================
   VOTD (Verse of the Day) ACTION BUTTONS
   ============================================ */
.votd-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.votd-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.votd-btn i {
    font-size: 0.9rem;
}

.votd-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.votd-btn--highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--accent-purple);
}

.votd-btn--highlight:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.votd-btn--highlight i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.votd-btn--highlight:hover i {
    -webkit-text-fill-color: #fff;
    background: none;
}

@media (max-width: 480px) {
    .votd-actions {
        gap: var(--space-xs);
    }
    
    .votd-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .votd-btn span {
        display: none;
    }
    
    .votd-btn i {
        font-size: 1rem;
    }
}

/* ============================================
   SHARE MODAL (Versículo do Dia)
   ============================================ */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.share-modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.share-modal.active .share-modal__content {
    transform: translateY(0) scale(1);
}

.share-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.share-modal__header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.share-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.share-modal__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.share-btn--whatsapp i {
    color: #25d366;
}

.share-btn--twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.share-btn--twitter i {
    color: #fff;
}

.share-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}

.share-btn--facebook i {
    color: #1877f2;
}

.share-btn--telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.share-btn--telegram i {
    color: #0088cc;
}

.share-btn--copy:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent-purple);
}

.share-btn--copy i {
    color: var(--accent-purple);
}

/* ============================================
   CARD MODAL (Criar Card para Stories)
   ============================================ */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.card-modal.active {
    opacity: 1;
    visibility: visible;
}

.card-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.card-modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.card-modal.active .card-modal__content {
    transform: translateY(0) scale(1);
}

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

.card-modal__header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-modal__header h3 i {
    color: var(--accent-purple);
}

.card-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.card-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.card-modal__body {
    padding: 20px;
}

/* Card Preview */
.card-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

/* Área escura do preview - Modelo 2 */
.preview-area {
    background: #000;
    padding: 30px 50px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

/* Frame do dispositivo (celular) - fallback */
.card-device-frame {
    background: #000;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-preview__inner {
    width: 160px;
    height: 284px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: all 0.3s ease;
}

.card-preview__content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.card-preview__icon {
    font-size: 1.3rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

.card-preview__text {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
    max-width: 95%;
}

.card-preview__ref {
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: auto;
}

.card-preview__brand {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.card-preview__brand .brand-name {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-preview__brand .brand-url {
    font-family: var(--font-mono);
    font-size: 0.4rem;
    opacity: 0.7;
}

/* Card Sections */
.card-section {
    margin-bottom: 24px;
}

.card-section__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* ========================================
   Modelo 2: Cards Verticais (9:16)
   ======================================== */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.style-card {
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.style-card:hover .style-card-preview {
    transform: scale(1.02);
}

.style-card-preview {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 10px;
    border: 3px solid transparent;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.style-card.active .style-card-preview {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px var(--accent-purple), 0 6px 20px rgba(102, 126, 234, 0.4);
}

.style-card-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.style-card.active .style-card-name {
    color: var(--accent-purple);
    font-weight: 600;
}

/* ========================================
   Modelo 1 (fallback): Cards Horizontais 
   ======================================== */
/* Estilos Grid - 4x2 com cards horizontais */
.card-styles-grid,
.card-modal .card-styles-grid,
.card-modal__body .card-styles-grid,
#votd-card-modal .card-styles-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
}

.card-style-item,
.card-modal .card-style-item,
#votd-card-modal .card-style-item {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: block !important;
    width: auto !important;
}

.card-style-item:hover .card-style-preview {
    transform: scale(1.03);
}

.card-style-preview,
.card-modal .card-style-preview,
#votd-card-modal .card-style-preview {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 10px !important;
}

.card-style-item.active .card-style-preview {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 2px var(--accent-purple), 0 4px 16px rgba(102, 126, 234, 0.4) !important;
}

.card-style-name,
.card-modal .card-style-name,
#votd-card-modal .card-style-name {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    display: block !important;
}

/* Formatos - Pills */
.card-formats {
    display: flex;
    gap: 10px;
}

.card-format-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-format-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

.card-format-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.card-format-btn i {
    font-size: 0.9rem;
}

/* Footer Buttons */
.card-modal__footer {
    display: flex;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Ghost */
.card-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.card-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Secondary */
.card-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.card-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Primary */
.card-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.card-btn--primary:hover {
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 480px) {
    .card-modal,
    #votd-card-modal {
        align-items: flex-end !important;
    }
    
    .card-modal__content,
    #votd-card-modal .card-modal__content {
        max-height: 92vh !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        background: var(--bg-card) !important;
    }
    
    .card-modal__header,
    #votd-card-modal .card-modal__header {
        padding: 16px 20px !important;
    }
    
    .card-modal__body,
    #votd-card-modal .card-modal__body {
        padding: 20px !important;
    }
    
    /* Modelo 2: Área escura mobile */
    .preview-area,
    #votd-card-modal .preview-area {
        padding: 24px 30px !important;
        border-radius: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .card-preview,
    #votd-card-modal .card-preview {
        margin-bottom: 24px !important;
    }
    
    .card-device-frame,
    #votd-card-modal .card-device-frame {
        padding: 8px !important;
        border-radius: 18px !important;
    }
    
    .card-preview__inner,
    #votd-card-modal .card-preview__inner {
        width: 130px !important;
        height: 231px !important;
        border-radius: 12px !important;
        padding: 14px !important;
    }
    
    .card-preview__icon {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .card-preview__text {
        font-size: 0.55rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .card-preview__ref {
        font-size: 0.5rem !important;
    }
    
    .card-preview__brand {
        font-size: 0.4rem !important;
    }
    
    .card-preview__brand .brand-name {
        font-size: 0.45rem !important;
    }
    
    .card-preview__brand .brand-url {
        font-size: 0.35rem !important;
    }
    
    /* Modelo 2: Cards verticais mobile */
    .styles-grid,
    #votd-card-modal .styles-grid {
        gap: 10px !important;
    }
    
    .style-card-preview,
    #votd-card-modal .style-card-preview {
        border-radius: 8px !important;
        border-width: 2px !important;
        margin-bottom: 6px !important;
    }
    
    .style-card-name,
    #votd-card-modal .style-card-name {
        font-size: 0.65rem !important;
    }
    
    /* Modelo 1: Grid 4x2 mobile */
    .card-styles-grid,
    .card-modal .card-styles-grid,
    .card-modal__body .card-styles-grid,
    #votd-card-modal .card-styles-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .card-style-item,
    .card-modal .card-style-item,
    #votd-card-modal .card-style-item {
        display: block !important;
        width: auto !important;
    }
    
    .card-style-preview,
    .card-modal .card-style-preview,
    #votd-card-modal .card-style-preview {
        width: 100% !important;
        aspect-ratio: 4/3 !important;
        border-radius: 8px !important;
        padding-bottom: 6px !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }
    
    .card-style-name,
    .card-modal .card-style-name,
    #votd-card-modal .card-style-name {
        font-size: 0.55rem !important;
    }
    
    /* Formatos em linha */
    .card-formats,
    .card-modal .card-formats,
    #votd-card-modal .card-formats {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .card-format-btn,
    .card-modal .card-format-btn,
    #votd-card-modal .card-format-btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 20px !important;
    }
    
    .card-format-btn i {
        font-size: 0.75rem !important;
    }
    
    /* Footer */
    .card-modal__footer,
    #votd-card-modal .card-modal__footer {
        padding: 16px 20px !important;
        gap: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .card-btn,
    .card-modal .card-btn,
    #votd-card-modal .card-btn {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   DAILY SECTION (Versículo, Salmo, Provérbio)
   ============================================ */
.daily-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.daily-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.daily-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.daily-card--devocional::before { background: var(--gradient-primary); }
.daily-card--salmo::before { background: var(--gradient-accent); }
.daily-card--proverbio::before { background: var(--gradient-warm); }

.daily-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.daily-card .card-emoji {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.daily-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.daily-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.daily-card .card-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.daily-card .card-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.daily-card:hover .card-link::after {
    transform: translateX(4px);
}

/* ============================================
   BOOKS GRID (Livros da Bíblia)
   ============================================ */
.books-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.testament-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.testament-tab {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.testament-tab.active,
.testament-tab:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-md);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.book-card .book-abbr {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    display: block;
}

.book-card .book-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
}

.book-card .book-chapters {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    display: block;
}

/* Category colors for books */
.book-card[data-category="pentateuco"] .book-abbr { background: var(--gradient-primary); -webkit-background-clip: text; }
.book-card[data-category="historico"] .book-abbr { background: var(--gradient-accent); -webkit-background-clip: text; }
.book-card[data-category="poetico"] .book-abbr { background: var(--gradient-warm); -webkit-background-clip: text; }
.book-card[data-category="profeta"] .book-abbr { background: var(--gradient-secondary); -webkit-background-clip: text; }
.book-card[data-category="evangelho"] .book-abbr { background: var(--gradient-gold); -webkit-background-clip: text; }
.book-card[data-category="carta"] .book-abbr { background: linear-gradient(135deg, #43e97b, #38f9d7); -webkit-background-clip: text; }

/* ============================================
   CHAPTERS GRID
   ============================================ */
.chapters-section {
    padding: var(--space-2xl) 0;
}

.book-header {
    margin-bottom: var(--space-2xl);
}

.book-header h1 {
    margin-bottom: var(--space-sm);
}

.book-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.book-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

/* Introdução do Livro - SEO Content */
.book-introduction {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--accent-purple);
}

.intro-block {
    margin-bottom: var(--space-xl);
}

.intro-block h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-block h3 i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.intro-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.intro-resumo {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-purple);
}

.intro-resumo p {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Versículos Destaque */
.intro-versiculos {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.versiculos-lista {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.versiculo-destaque {
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-gold);
}

.versiculo-texto {
    display: block;
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.versiculo-ref {
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 0.85rem;
}

/* CTA Box */
.book-cta {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: #fff;
}

.book-cta__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.book-cta__content {
    flex: 1;
}

.book-cta__content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.book-cta__content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.book-cta .btn {
    background: #fff;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.book-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .book-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .book-cta .btn {
        width: 100%;
    }
}

/* FAQ Section */
.book-faq {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-purple);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

/* Livros Relacionados */
/* ── Popular Verses on Book Page ── */
.book-popular-verses {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.popular-verses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
}

.popular-verse-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.popular-verse-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.popular-verse-card__ref {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-accent);
}

.popular-verse-card__preview {
    font-family: var(--font-verse);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-verse-card__arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.popular-verse-card:hover .popular-verse-card__arrow {
    opacity: 1;
    color: var(--text-accent);
}

.book-related {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.related-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-card__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.related-card__info {
    flex: 1;
    min-width: 0;
}

.related-card__info h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.related-card__motivo {
    font-size: 0.75rem;
    color: var(--accent-purple);
    display: block;
    margin-top: 2px;
}

.related-card > i {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.related-card:hover > i {
    color: var(--accent-purple);
    transform: translateX(3px);
}

/* Info Box Final */
.book-info-box {
    margin-top: var(--space-2xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.info-box__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
}

.info-box__item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.info-box__item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-box__item strong {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Biblia Hub Page */
.biblia-hub-section {
    padding: var(--space-2xl) 0;
}

.biblia-hub-testament {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.testament-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.hub-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.biblia-hub-resources {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

/* Chapter Summaries Section */
.book-chapter-summaries {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.chapter-summaries-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chapter-summary-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chapter-summary-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.chapter-summary-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.chapter-summary-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-purple), #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.chapter-summary-content {
    flex: 1;
    min-width: 0;
}

.chapter-summary-content h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.chapter-summary-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chapter-summary-link > i {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.chapter-summary-link:hover > i {
    color: var(--accent-purple);
}

@media (max-width: 600px) {
    .chapter-summary-link {
        padding: var(--space-sm) var(--space-md);
    }
    .chapter-summary-num {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.8rem;
    }
    .chapter-summary-content h3 {
        font-size: 0.9rem;
    }
}

/* Adjacent Book Navigation */
.book-nav-adjacent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.book-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.book-nav-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.book-nav-link i {
    color: var(--accent-purple);
    font-size: 1rem;
}

.book-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.book-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.book-nav-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .book-nav-adjacent {
        grid-template-columns: 1fr;
    }
    .book-nav-next {
        justify-content: flex-start;
        text-align: left;
    }
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: var(--space-sm);
}

/* Quick chapter jump (bottom of chapter page) */
.chapters-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 4px;
}

.chapters-grid-compact .chapter-link {
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Large books (50+ chapters): tighter grid */
.chapters-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 3px;
}

.chapters-grid-large .chapter-link {
    font-size: 0.7rem;
}

.chapter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.chapter-link:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

.chapter-link.current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============================================
   VERSE DISPLAY
   ============================================ */
.verse-section {
    padding: var(--space-2xl) 0;
}

.chapter-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-sm);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.chapter-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

/* Mobile: Botões menores */
@media (max-width: 480px) {
    .chapter-nav {
        gap: var(--space-xs);
        padding: 0 var(--space-xs);
    }
    
    .chapter-nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .chapter-indicator {
        font-size: 0.9rem !important;
    }
}

/* Muito pequeno: Só setas */
@media (max-width: 360px) {
    .chapter-nav-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Chapter Nav Bottom (com 3 botões) */
.chapter-nav-bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.chapter-nav-bottom .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
}

.chapter-nav-bottom .btn-placeholder {
    width: 100px;
}

.chapter-nav-bottom .nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .chapter-nav-bottom {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .chapter-nav-bottom .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .chapter-nav-bottom .btn-all-chapters {
        order: 3;
        flex: 100%;
        margin-top: var(--space-xs);
    }
    
    .chapter-nav-bottom .btn-all-chapters .btn-text {
        display: inline;
    }
    
    .chapter-nav-bottom .btn-placeholder {
        display: none;
    }
}

@media (max-width: 400px) {
    .chapter-nav-bottom .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Só mostra setas em telas muito pequenas */
    .chapter-nav-bottom .nav-label {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.chapter-nav-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.chapter-indicator {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.verses-container {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 80px; /* Espaço para toolbar */
}

/* Tamanhos de fonte */
.verses-container.font-small .verse-text { font-size: 1rem; }
.verses-container.font-medium .verse-text { font-size: 1.15rem; }
.verses-container.font-large .verse-text { font-size: 1.35rem; }

.verse-item {
    display: flex;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin: 0 -8px;
}

.verse-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.verse-item:last-child {
    border-bottom: none;
}

.verse-content {
    flex: 1;
    min-width: 0;
}

/* Versículo selecionado */
.verse-item.selected {
    background: rgba(102, 126, 234, 0.12);
    border-color: transparent;
}

.verse-item.selected .verse-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.verse-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-purple);
    min-width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 3px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

a.verse-number:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: scale(1.12);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
    color: var(--accent-purple);
}

.verse-text {
    font-family: var(--font-verse);
    font-size: 1.15rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.9);
    display: block;
}

html[data-theme="light"] .verse-text {
    color: rgba(0,0,0,0.85);
}

/* ============================================
   VERSE ACTIONS - Chips Compactos
   ============================================ */
.verse-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.verse-actions::-webkit-scrollbar {
    display: none;
}

.verse-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.verse-chip:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.verse-chip:active {
    background: rgba(102, 126, 234, 0.25);
    transform: scale(0.97);
}

.verse-chip i {
    font-size: 0.85rem;
    color: var(--accent-purple);
}

/* Estado ativo para highlight */
.verse-item.highlighted .verse-chip[data-action="highlight"] {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--accent-purple);
}

/* Estado ativo para nota */
.verse-item.has-note .verse-chip[data-action="note"] {
    background: rgba(245, 175, 25, 0.15);
    border-color: rgba(245, 175, 25, 0.3);
}

.verse-item.has-note .verse-chip[data-action="note"] i {
    color: var(--accent-gold);
}

/* Light mode */
html[data-theme="light"] .verse-actions {
    border-top-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .verse-chip {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.7);
}

html[data-theme="light"] .verse-chip:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: rgba(0,0,0,0.9);
}

/* Desktop: chips um pouco maiores */
@media (min-width: 769px) {
    .verse-actions {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .verse-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Mobile: esconder texto em telas muito pequenas */
@media (max-width: 380px) {
    .verse-chip {
        padding: 8px 10px;
    }
    
    .verse-chip span {
        display: none;
    }
    
    .verse-chip i {
        font-size: 1rem;
    }
}

/* Highlighted verse */
.verse-item.highlighted {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--accent-purple);
    padding-left: 12px;
    margin-left: -11px;
}

.verse-item.highlighted .verse-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* ============================================
   FLOATING TOOLBAR (Mobile)
   ============================================ */
.verse-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 10px 14px;
    z-index: 90;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html[data-theme="light"] .verse-toolbar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.toolbar-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

html[data-theme="light"] .toolbar-btn {
    color: rgba(0,0,0,0.5);
}

.toolbar-btn:hover,
.toolbar-btn:active {
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent-purple);
}

.toolbar-btn.active {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-purple);
}

/* Toolbar separator */
.toolbar-btn + .toolbar-btn::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
}

/* Font Size Panel */
.font-panel {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 91;
}

.font-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="light"] .font-panel {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0,0,0,0.1);
}

.font-panel-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-right: 4px;
}

html[data-theme="light"] .font-panel-label {
    color: rgba(0,0,0,0.5);
}

.font-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.font-btn[data-size="small"] { font-size: 0.75rem; }
.font-btn[data-size="medium"] { font-size: 0.95rem; }
.font-btn[data-size="large"] { font-size: 1.15rem; }

.font-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.font-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

html[data-theme="light"] .font-btn {
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.6);
}

/* Desktop: esconder toolbar, mostrar ações no hover */
@media (min-width: 769px) {
    .verse-toolbar,
    .font-panel {
        display: none;
    }
    
    .verses-container {
        padding-bottom: 0;
    }
    
    .verse-item {
        position: relative;
    }
    
    .verse-item::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 4px;
        opacity: 0;
        transition: opacity 0.2s;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .verse-item {
        gap: 12px;
        padding: 12px 6px;
    }
    
    .verse-number {
        min-width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .verse-text {
        font-size: 1.05rem;
        line-height: 1.75;
    }
    
    .verses-container.font-small .verse-text { font-size: 0.95rem; }
    .verses-container.font-medium .verse-text { font-size: 1.05rem; }
    .verses-container.font-large .verse-text { font-size: 1.25rem; }
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section {
    padding: var(--space-2xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.resource-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-icon--study { background: rgba(102, 126, 234, 0.15); }
.resource-icon--explain { background: rgba(240, 147, 251, 0.15); }
.resource-icon--stories { background: rgba(0, 242, 254, 0.15); }
.resource-icon--themes { background: rgba(245, 87, 108, 0.15); }
.resource-icon--leadership { background: rgba(245, 175, 25, 0.15); }
.resource-icon--share { background: rgba(67, 233, 123, 0.15); }

.resource-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results-section {
    padding: var(--space-2xl) 0;
}

.search-result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    border-color: var(--border-accent);
}

.search-result-item .result-ref {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: var(--space-sm);
    display: block;
}

.search-result-item .result-text {
    font-family: var(--font-verse);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.search-result-item .result-text mark {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    border-radius: 2px;
    padding: 0 2px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-purple);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: var(--space-md);
    max-width: 280px;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-purple);
    border-color: var(--border-accent);
}

/* ============================================
   WIDGET: VERSE OF THE DAY (Sidebar)
   ============================================ */
.widget-verse-day {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.widget-verse-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* ============================================
   TRANSLATION SWITCHER
   ============================================ */
.translation-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px;
    gap: 2px;
}

.translation-btn {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.translation-btn.active {
    background: var(--gradient-primary);
    color: #fff;
}

.translation-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-2xl) 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.pagination .current {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

/* ============================================
   TOAST / NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-card);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--space-sm);
    }

    .chapters-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .chapters-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    }

    .chapters-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    }

    .hero-section {
        padding: var(--space-2xl) 0;
    }

    .daily-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .verse-actions {
        display: flex;
    }

    .temas-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .temas-hero h1 {
        font-size: 1.5rem;
    }

    .tema-single-hero h1 {
        font-size: 1.4rem;
    }

    .tema-single-hero__icon {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }

    .tema-verse-card {
        padding: var(--space-lg);
    }

    .tema-verse-card__text {
        font-size: 0.95rem;
    }

    .tema-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .tema-nav__link,
    .tema-nav__link--next {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
}

/* ============================================
   NOTES: MODAL
   ============================================ */
.bj-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.bj-modal-overlay.bj-modal-open {
    display: flex;
}

.bj-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card), 0 0 40px rgba(102, 126, 234, 0.1);
    animation: bjModalIn 0.2s ease;
}

@keyframes bjModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bj-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.bj-modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bj-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.bj-modal-close:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(245, 87, 108, 0.1);
}

.bj-modal-body {
    padding: var(--space-xl);
}

.bj-note-textarea {
    width: 100%;
    min-height: 140px;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-fast);
}

.bj-note-textarea::placeholder {
    color: var(--text-muted);
}

.bj-note-textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.bj-note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    gap: var(--space-md);
}

.bj-note-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.bj-note-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Botões genéricos usados no modal e cards */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
    background: rgba(102, 126, 234, 0.05);
}

/* ============================================
   NOTES: INDICADOR DE "TEM NOTA" NO VERSÍCULO
   ============================================ */
.verse-item.has-note::after {
    content: '';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 6px rgba(245, 175, 25, 0.5);
    pointer-events: none;
}

.verse-item.has-note {
    position: relative;
}

/* Botão de nota quando já tem nota salva */
.verse-item.has-note .verse-action-btn[data-action="note"] {
    border-color: rgba(245, 175, 25, 0.4);
    background: rgba(245, 175, 25, 0.1);
}

/* ============================================
   NOTES: CARDS DA PÁGINA MINHAS ANOTAÇÕES
   ============================================ */
.bj-note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bj-note-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.bj-note-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.bj-note-card-ref {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.bj-note-card-ref:hover {
    color: var(--accent-pink);
}

.bj-note-card-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.bj-note-card-text {
    font-family: var(--font-verse);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: var(--space-md);
}

.bj-note-card-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.bj-search-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.bj-search-item:hover {
    background: var(--bg-card-hover);
}

/* Referencia direta (Lucas 5:12) */
.bj-search-item--ref {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.bj-search-item--ref i {
    font-size: 1.2rem;
    color: var(--accent-purple);
}

.bj-search-item--ref strong {
    color: var(--text-primary);
}

.bj-search-item--ref:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

.bj-search-tip {
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-card);
}

.bj-search-more-info {
    text-align: center;
    padding: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bj-search-ref {
    color: var(--accent-purple);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.bj-search-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

.bj-search-mark {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.bj-search-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bj-search-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bj-search-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: bjSpin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes bjSpin {
    to { transform: rotate(360deg); }
}

.bj-search-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bj-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}

.bj-search-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bj-search-more {
    font-size: 0.8rem;
    color: var(--accent-purple);
    background: transparent;
    border: 1px solid var(--border-accent);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.bj-search-more:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-pink);
}

/* ============================================
   TEMAS: ARCHIVE (cards grid)
   ============================================ */
.temas-hero {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.temas-hero h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.temas-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.temas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

.tema-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tema-card[data-gradient="primary"]::before   { background: var(--gradient-primary); }
.tema-card[data-gradient="secondary"]::before  { background: var(--gradient-secondary); }
.tema-card[data-gradient="accent"]::before     { background: var(--gradient-accent); }
.tema-card[data-gradient="warm"]::before       { background: var(--gradient-warm); }
.tema-card[data-gradient="gold"]::before       { background: var(--gradient-gold); }

.tema-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tema-card:hover::before {
    opacity: 1;
}

.tema-card__icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.tema-card__icon--primary   { background: rgba(102, 126, 234, 0.15); }
.tema-card__icon--secondary { background: rgba(240, 147, 251, 0.15); }
.tema-card__icon--accent    { background: rgba(79, 172, 254, 0.15); }
.tema-card__icon--warm      { background: rgba(250, 112, 154, 0.15); }
.tema-card__icon--gold      { background: rgba(245, 175, 25, 0.15); }

.tema-card__title {
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tema-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.tema-card__count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
}

/* ============================================
   TEMAS: SINGLE (hero + verses)
   ============================================ */
.tema-single-hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-2xl);
    max-width: 640px;
    margin: 0 auto;
}

.tema-single-hero__icon {
    font-size: 2.5rem;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-lg);
}

.tema-single-hero h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.tema-single-hero__intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.tema-single-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tema-share-page {
    font-size: 0.85rem;
    color: var(--accent-purple);
    background: transparent;
    border: 1px solid var(--border-accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.tema-share-page:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-pink);
}

/* Verse cards */
.tema-verses {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tema-verse-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition-fast);
}

.tema-verse-card:hover {
    border-color: var(--border-accent);
}

.tema-verse-card__text {
    font-family: var(--font-verse);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0 0 var(--space-md);
    padding: 0;
    border: none;
    font-style: normal;
}

.tema-verse-card__pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.tema-verse-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

.tema-verse-card__ref {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tema-verse-card__ref:hover {
    color: var(--accent-pink);
}

.tema-verse-card__actions {
    display: flex;
    gap: 4px;
}

/* Theme navigation (prev/next) */
.tema-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.tema-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    max-width: 200px;
}

.tema-nav__link:hover {
    background: var(--bg-card);
}

.tema-nav__link--next {
    text-align: right;
    align-items: flex-end;
}

.tema-nav__dir {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tema-nav__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   PLANO DE LEITURA: Moved to assets/css/plano-redesign.css
   ============================================ */

   AUDIO PLAYER: Botão "Ouvir"
   ============================================ */
.bj-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    letter-spacing: 0.02em;
}

.bj-listen-btn i,
.bj-listen-btn .fa-headphones {
    font-size: 1.1em;
}

.bj-listen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    filter: brightness(1.08);
}

.bj-listen-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.bj-listen-btn--active {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.35);
    animation: bj-pulse-listen 2s ease-in-out infinite;
}

.bj-listen-btn--active:hover {
    box-shadow: 0 6px 25px rgba(242, 153, 74, 0.5);
    filter: brightness(1.08);
}

@keyframes bj-pulse-listen {
    0%, 100% { box-shadow: 0 4px 15px rgba(242, 153, 74, 0.35); }
    50% { box-shadow: 0 4px 25px rgba(242, 153, 74, 0.55); }
}

.bj-listen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   AUDIO PLAYER: Floating bar
   ============================================ */
.bj-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.bj-audio-player--visible {
    transform: translateY(0);
}

.bj-audio-player__inner {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

html[data-theme="light"] .bj-audio-player__inner {
    background: rgba(245, 245, 250, 0.95);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}

/* Progress bar */
.bj-audio-progress {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--border-subtle);
    cursor: pointer;
    z-index: 2;
    touch-action: none;
}

.bj-audio-progress:hover {
    height: 8px;
    top: -5px;
}

.bj-audio-progress__fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
    pointer-events: none;
}

.bj-audio-progress__thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: var(--accent-purple);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-fast);
    pointer-events: none;
    z-index: 1;
}

.bj-audio-progress:hover .bj-audio-progress__thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Content layout */
.bj-audio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Info */
.bj-audio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex-shrink: 1;
}

.bj-audio-info__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bj-audio-info__time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Controls */
.bj-audio-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bj-audio-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.bj-audio-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.bj-audio-btn--play {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.1rem;
}

.bj-audio-btn--play:hover {
    opacity: 0.9;
    color: #fff;
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.bj-audio-btn--speed {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    width: auto;
    padding: 0 8px;
    color: var(--text-muted);
}

.bj-audio-btn--close {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bj-audio-btn--close:hover {
    color: var(--accent-orange);
    background: rgba(245, 87, 108, 0.1);
}

/* Verse audio tracking highlight */
.verse-item--audio-active {
    background: rgba(102, 126, 234, 0.06);
    border-left: 3px solid var(--accent-cyan);
}

.verse-item--audio-active .verse-number {
    background: var(--gradient-accent);
    color: #fff;
}

/* Loading animation on player button */
.bj-audio-icon-loading {
    animation: bjAudioPulse 1s ease infinite;
}

@keyframes bjAudioPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   AUDIO PLAYER: Responsive
   ============================================ */
@media (max-width: 768px) {
    .bj-audio-content {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .bj-audio-info__title {
        font-size: 0.8rem;
    }

    .bj-audio-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .bj-audio-btn--play {
        width: 40px;
        height: 40px;
    }

    .bj-audio-btn--speed {
        display: none;
    }
}

@media (max-width: 380px) {
    .bj-audio-info__time {
        display: none;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* WP Admin Bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ╔══════════════════════════════════════════╗
   ║       COMMUNITY / AUTH / PROFILE         ║
   ╚══════════════════════════════════════════╝ */

/* ── AUTH PAGE ── */
.auth-page {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand .brand-icon {
    width: 56px; height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.auth-brand h1 {
    font-size: 1.6rem; font-weight: 700;
}

.auth-brand h1 span { color: var(--accent-purple); }

.auth-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem;
    border: none; background: transparent;
    color: var(--text-muted);
    font-weight: 600; font-size: 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--gradient-primary);
    color: #fff;
}

/* Form */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group label i {
    margin-right: 4px;
    color: var(--accent-purple);
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.input-password {
    position: relative;
}

.input-password input {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.7rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.checkbox-group {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-secondary);
    cursor: pointer; margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent-purple);
}

.auth-error {
    display: none;
    padding: 0.7rem 1rem;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-orange);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.btn-auth:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer a { color: var(--accent-purple); }

/* ── COMMUNITY PAGE LAYOUT ── */
.community-page {
    padding-top: 1.5rem;
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 1.5rem;
    padding: 0 1rem;
    align-items: start;
}

/* ── SIDEBAR ── */
.community-sidebar {
    position: sticky;
    top: 72px;
}

.sidebar-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.sidebar-avatar img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple);
}

.sidebar-profile-card h3 {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.sidebar-profile-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-church {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-stats div {
    text-align: center;
}

.sidebar-stats strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.sidebar-stats span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-edit-profile {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-edit-profile:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.sidebar-nav {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(102, 126, 234, 0.08);
    color: var(--accent-purple);
}

.sidebar-nav a i { width: 18px; text-align: center; }

/* Sidebar right */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-card h4 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.sidebar-card h4 i { color: var(--accent-purple); margin-right: 4px; }

.sidebar-verse {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.sidebar-card cite {
    font-size: 0.78rem;
    color: var(--accent-purple);
    font-style: normal;
}

/* ── POST COMPOSER ── */
.post-composer {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

.composer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.composer-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.composer-trigger {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.composer-trigger:hover { border-color: var(--border-accent); }

.composer-expanded textarea {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
}

.composer-verse-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin: 0 0 0.5rem;
}

.composer-verse-input i { color: var(--accent-cyan); }

.composer-verse-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.composer-types {
    display: flex;
    gap: 4px;
}

.type-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.type-btn:hover { background: rgba(102,126,234,0.08); color: var(--accent-purple); }
.type-btn.active { background: rgba(102,126,234,0.12); color: var(--accent-purple); }

.composer-meta {
    display: flex; align-items: center; gap: 0.75rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-publish {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-publish:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-publish:not(:disabled):hover { transform: translateY(-1px); }

/* ── FEED FILTER ── */
.feed-filter {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
}

.filter-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ── POST CARD ── */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color var(--transition-fast);
}

.post-card:hover { border-color: var(--border-accent); }

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-avatar img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta { flex: 1; min-width: 0; }

.post-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
}

.post-author-name:hover { color: var(--accent-purple); }

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.post-type-badge {
    font-weight: 600;
}

.post-church { font-size: 0.72rem; }

.post-menu-btn {
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.post-menu-btn:hover {
    background: rgba(245, 87, 108, 0.1);
    color: var(--accent-orange);
}

.post-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    margin-bottom: 0.5rem;
}

.post-verse-ref {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Reactions bar */
.post-reactions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reactions-summary { font-size: 0.85rem; }
.comments-count-text { cursor: pointer; }

/* Action buttons */
.post-actions {
    display: flex;
    gap: 2px;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover { background: rgba(102,126,234,0.06); }

.reaction-btn.active[data-type="amen"]    { color: var(--accent-gold); background: rgba(245,175,25,0.08); }
.reaction-btn.active[data-type="blessed"] { color: var(--accent-pink); background: rgba(240,147,251,0.08); }
.reaction-btn.active[data-type="fire"]    { color: var(--accent-orange); background: rgba(245,87,108,0.08); }
.reaction-btn.active[data-type="praying"] { color: var(--accent-cyan); background: rgba(0,242,254,0.08); }

/* ── COMMENTS ── */
.post-comments {
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.comment-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.comment-item-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.comment-header {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 2px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.comment-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.comment-input .comment-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.83rem;
    outline: none;
}

.comment-input input:focus { border-color: var(--accent-purple); }

.comment-send-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
}

.comment-send-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── FEED STATES ── */
.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.feed-empty h3 { margin-bottom: 0.5rem; }
.feed-empty p { color: var(--text-muted); font-size: 0.9rem; }
.feed-empty a { color: var(--accent-purple); }

.btn-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-load-more:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ── PROFILE PAGE ── */
.profile-cover {
    height: 200px;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, var(--bg-primary) 100%);
}

.profile-container {
    max-width: 700px;
    margin: -80px auto 0;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 1;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-card);
}

.profile-info {
    flex: 1;
    min-width: 0;
    padding-top: 1.25rem;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-details i { color: var(--accent-purple); margin-right: 3px; }

.profile-verse {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(102,126,234,0.06);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-action {
    padding-top: 1.5rem;
}

.btn-profile-edit {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-profile-edit:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

.btn-follow {
    display: inline-flex; align-items: center;
    padding: 0.5rem 1.4rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-follow:hover { opacity: 0.9; }

.btn-follow.following {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.btn-follow.following:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Profile stats */
.profile-stats {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    margin: 1rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.15rem; }
.stat-item span { font-size: 0.78rem; color: var(--text-muted); }

.profile-feed {
    margin-top: 1rem;
}

.profile-feed .section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-feed .section-title i { color: var(--accent-purple); margin-right: 6px; }

/* ── EDIT PROFILE ── */
.edit-profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.edit-profile-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.edit-profile-title i { color: var(--accent-purple); margin-right: 0.4rem; }

.edit-cover-section {
    margin-bottom: 1.5rem;
}

.edit-cover-preview {
    height: 160px;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.edit-cover-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.edit-cover-btn:hover { background: rgba(0,0,0,0.7); }

.edit-avatar-section {
    display: flex;
    justify-content: center;
    margin: -40px 0 1.5rem;
    position: relative;
    z-index: 1;
}

.edit-avatar-wrapper {
    position: relative;
}

.edit-avatar-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0; right: 0;
    width: 28px; height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.char-count-small {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.edit-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-save {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.4rem;
}

.btn-save:disabled { opacity: 0.5; }

.edit-danger-zone {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245,87,108,0.2);
}

.edit-danger-zone h3 {
    font-size: 0.9rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.btn-logout {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: rgba(245,87,108,0.08);
    border: 1px solid rgba(245,87,108,0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-orange);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-logout:hover { background: rgba(245,87,108,0.15); }

/* ── HEADER: Avatar / Login ── */
.header-user-avatar {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-purple);
    transition: all var(--transition-fast);
}

.header-user-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.header-user-avatar:hover {
    border-color: var(--accent-pink);
    transform: scale(1.05);
}

.btn-header-login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.btn-header-login:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .community-container {
        grid-template-columns: 1fr;
    }
    .community-sidebar--left,
    .community-sidebar--right {
        display: none;
    }
    .community-sidebar--left {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        display: block;
        z-index: 90;
    }
}

@media (max-width: 768px) {
    .community-container {
        padding: 0 0.75rem;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        font-size: 0.75rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-details {
        justify-content: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-cover {
        height: 140px;
    }
}

/* ╔══════════════════════════════════════════╗
   ║  TRANSLATION SWITCHER - Múltiplas Versões ║
   ╚══════════════════════════════════════════╝ */

.translation-switcher-wrapper {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.translation-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.bj-translation-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.bj-translation-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.bj-translation-btn:hover:not(.locked) {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.bj-translation-btn.active {
    border-color: var(--accent-purple);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bj-translation-btn.locked {
    opacity: 0.6;
    cursor: pointer;
}

.bj-translation-btn.locked:hover {
    border-color: var(--accent-gold);
}

.bj-premium-icon {
    font-size: 0.65rem;
    color: var(--accent-gold);
}

.bj-translation-btn.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    border-radius: inherit;
    animation: bjPulse 1s infinite;
}

@keyframes bjPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Versículos em loading */
.verses-container.loading {
    position: relative;
    pointer-events: none;
}

.verses-container.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: bjShimmer 1.5s infinite;
}

@keyframes bjShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Translation label no indicador */
.translation-label {
    font-size: 0.7rem;
    color: var(--accent-purple);
    font-weight: 600;
}

/* ╔══════════════════════════════════════════╗
   ║  CARD GENERATOR - Stories Instagram      ║
   ╚══════════════════════════════════════════╝ */

.bj-card-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.bj-card-modal--open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-card-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bj-card-modal__content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 750px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: bjCardModalIn 0.3s ease;
}

@keyframes bjCardModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.bj-card-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.bj-card-modal__header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.bj-card-modal__header h3 i {
    color: var(--accent-purple);
}

.bj-card-modal__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.bj-card-modal__close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.bj-card-modal__body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
}

.bj-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-xl);
    min-height: 300px;
}

.bj-card-preview canvas {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.bj-card-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.bj-card-option-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.bj-card-templates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.bj-card-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bj-card-template:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

.bj-card-template.active {
    border-color: var(--accent-purple);
    background: rgba(102, 126, 234, 0.1);
}

.bj-card-template__preview {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 100px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bj-card-template__name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.bj-card-template.active .bj-card-template__name {
    color: var(--accent-purple);
    font-weight: 600;
}

.bj-card-formats {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.bj-card-format {
    flex: 1;
    min-width: 100px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.bj-card-format:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

.bj-card-format.active {
    border-color: var(--accent-purple);
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-purple);
}

.bj-card-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.bj-card-modal__footer .btn {
    min-width: auto;
}

@media (min-width: 769px) {
    .bj-btn-share { display: none; }
}

@media (max-width: 600px) {
    .bj-card-modal__content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .bj-card-modal__body { padding: var(--space-md); }
    .bj-card-templates { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .bj-card-template { padding: 6px; }
    .bj-card-template__preview { max-height: 50px; }
    .bj-card-template__name { font-size: 0.6rem; }
    .bj-card-modal__footer { flex-wrap: wrap; padding: var(--space-md); }
    .bj-card-modal__footer .btn { flex: 1; min-width: calc(50% - var(--space-xs)); }
    .bj-card-modal__footer .btn-ghost { display: none; }
}

/* Botão de Card nas ações do versículo */
.verse-action-btn[data-action="card"] {
    color: var(--accent-pink);
}

.verse-action-btn[data-action="card"]:hover {
    background: rgba(240, 147, 251, 0.15);
}

/* Premium Modal */
.bj-premium-modal {
    max-width: 420px;
}

html[data-theme="light"] .bj-card-modal__overlay {
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .bj-card-preview {
    background: var(--bg-card);
}

/* ============================================
   BOTTOM NAVIGATION (Mobile)
   ============================================ */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Padding no body para não cobrir conteúdo */
    body {
        padding-bottom: 70px;
    }
    
    /* Esconder footer em páginas de leitura para mais espaço */
    body.reading-mode .site-footer {
        display: none;
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        height: 70px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0);
        transition: transform 0.3s ease;
    }
    
    .bottom-nav--hidden {
        transform: translateY(100%);
    }
    
    .bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        padding: 8px 4px;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bottom-nav__item i {
        font-size: 1.25rem;
        transition: transform 0.2s ease;
    }
    
    .bottom-nav__item span {
        line-height: 1;
    }
    
    .bottom-nav__item:hover,
    .bottom-nav__item:active {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .bottom-nav__item.active {
        color: var(--accent-purple);
    }
    
    .bottom-nav__item.active i {
        transform: scale(1.1);
    }
    
    /* Indicador de ativo */
    .bottom-nav__item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 0 0 3px 3px;
    }
    
    /* Badge de notificação */
    .bottom-nav__badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 20px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: #f5576c;
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
    }
    
    /* Light mode */
    html[data-theme="light"] .bottom-nav {
        background: rgba(255, 255, 255, 0.98);
        border-top-color: rgba(0, 0, 0, 0.08);
    }
    
    html[data-theme="light"] .bottom-nav__item {
        color: rgba(0, 0, 0, 0.5);
    }
    
    html[data-theme="light"] .bottom-nav__item:hover,
    html[data-theme="light"] .bottom-nav__item:active {
        color: rgba(0, 0, 0, 0.8);
    }
    
    html[data-theme="light"] .bottom-nav__item.active {
        color: var(--accent-purple);
    }
    
    /* Ajustar toolbar de versículo para não conflitar */
    .verse-toolbar {
        bottom: 85px;
    }
    
    .font-panel {
        bottom: 140px;
    }
}

/* ============================================
   GIFS SECTION - PÁGINA DE GIFS EVANGÉLICOS
   ============================================ */

/* Hero */
.gifs-hero {
    padding: 80px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.gifs-hero__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.gifs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.gifs-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gifs-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.gifs-hero__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Categorias / Tabs */
.gifs-categories {
    padding: 25px 0;
    background: var(--bg-primary);
    position: sticky;
    top: 60px;
    z-index: 90;
    border-bottom: 1px solid var(--border-subtle);
}

.gifs-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gifs-tabs::-webkit-scrollbar {
    display: none;
}

.gif-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gif-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.gif-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.gif-tab i {
    font-size: 1rem;
}

.gif-tab--create {
    background: transparent;
    border-style: dashed;
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.gif-tab--create:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Busca */
.gifs-search {
    padding: 25px 0;
}

.gifs-search__box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px 15px;
    max-width: 600px;
    margin: 0 auto;
}

.gifs-search__box i {
    color: var(--text-muted);
}

.gifs-search__box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.gifs-search__box input::placeholder {
    color: var(--text-muted);
}

.gifs-search__box .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Grid de GIFs */
.gifs-grid-section {
    padding: 20px 0 60px;
}

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

.gif-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gif-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.gif-item__preview {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-card);
}

.gif-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Badge de fonte do GIF */
.gif-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
}

.gif-badge--local {
    background: var(--gradient-gold);
    color: #fff;
    font-size: 0.8rem;
}

.gif-badge--tenor {
    background: #0052FF;
    color: #fff;
}

.gif-item:hover .gif-item__overlay {
    opacity: 1;
}

.gif-item__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gif-item__btn:hover {
    transform: scale(1.1);
}

/* Loading & Empty */
.gifs-loading,
.gifs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gifs-loading .spinner,
.gif-generator__loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

.gifs-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.gifs-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gifs-load-more {
    text-align: center;
    margin-top: 30px;
}

/* Modal de Visualização */
.gif-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gif-modal.active {
    opacity: 1;
    visibility: visible;
}

.gif-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.gif-modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gif-modal.active .gif-modal__content {
    transform: scale(1);
}

.gif-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.gif-modal__preview {
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gif-modal__preview img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.gif-modal__actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gif-modal__info {
    text-align: center;
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Editor de texto no modal */
.gif-modal__editor {
    padding: 15px 20px;
    border-top: 1px solid var(--border-subtle);
}

.gif-editor-toggle {
    text-align: center;
}

.gif-editor-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.gif-editor-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
}

.gif-editor-options {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.gif-editor-options input[type="text"] {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.gif-editor-options input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.gif-editor-position {
    display: flex;
    gap: 5px;
}

.gif-pos-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gif-pos-btn:hover {
    border-color: var(--border-accent);
}

.gif-pos-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* Preview container com overlay */
.gif-preview-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.gif-preview-container img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

.gif-text-overlay {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gif-text-overlay[data-position="top"] {
    top: 0;
    border-radius: 12px 12px 0 0;
}

.gif-text-overlay[data-position="center"] {
    top: 50%;
    transform: translateY(-50%);
}

.gif-text-overlay[data-position="bottom"] {
    bottom: 0;
    border-radius: 0 0 12px 12px;
}

.gif-text-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-break: break-word;
}

/* Modal Gerador de GIF */
.gif-generator-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gif-generator-modal.active {
    opacity: 1;
    visibility: visible;
}

.gif-generator-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.gif-generator-modal__content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gif-generator-modal.active .gif-generator-modal__content {
    transform: scale(1);
}

.gif-generator-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-subtle);
}

.gif-generator-modal__header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.gif-generator-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
}

.gif-generator-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
    overflow-y: auto;
}

.gif-generator__preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-generator__canvas-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#gif-preview-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.gif-generator__loading {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.gif-generator__options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gif-option-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gif-option-group textarea,
.gif-option-group input[type="text"] {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
}

.gif-option-group textarea:focus,
.gif-option-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-purple);
}

/* Estilos de cor */
.gif-styles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gif-style {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 3px;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.gif-style span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.gif-style:hover {
    transform: scale(1.1);
}

.gif-style.active {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Animações */
.gif-animations {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gif-animation {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gif-animation:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.gif-animation.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.gif-generator-modal__footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-subtle);
    justify-content: flex-end;
}

/* Toggle Frase/Imagem */
.gif-type-toggle {
    display: flex;
    gap: 10px;
}

.gif-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gif-type-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.gif-type-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.gif-type-btn i {
    font-size: 1.1rem;
}

/* Upload Area */
.gif-upload-area {
    position: relative;
    border: 2px dashed var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gif-upload-area:hover,
.gif-upload-area.dragover {
    border-color: var(--accent-purple);
    background: rgba(102, 126, 234, 0.05);
}

.gif-upload-placeholder {
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
}

.gif-upload-placeholder i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.gif-upload-placeholder p {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 5px;
}

.gif-upload-placeholder span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.gif-upload-preview {
    position: relative;
}

.gif-upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.gif-upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gif-upload-remove:hover {
    background: #e74c3c;
}

/* Posição do texto */
.gif-text-position {
    display: flex;
    gap: 10px;
}

.gif-position-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gif-position-btn:hover {
    border-color: var(--border-accent);
}

.gif-position-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
    .gifs-hero {
        padding: 60px 0 40px;
    }
    
    .gifs-hero h1 {
        font-size: 1.8rem;
    }
    
    .gifs-categories {
        top: 56px;
    }
    
    .gifs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gif-generator-modal__body {
        grid-template-columns: 1fr;
    }
    
    .gif-generator__canvas-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    #gif-preview-canvas {
        width: 300px;
        height: 300px;
    }
    
    .gif-modal__actions {
        flex-direction: column;
    }
    
    .gif-generator-modal__footer {
        flex-wrap: wrap;
    }
}

/* ============================================
   SHARE SHEET — Compartilhamento customizado
   ============================================ */
.bj-share-sheet { position:fixed; inset:0; z-index:10000; opacity:0; transition:opacity .25s; pointer-events:none; }
.bj-share-sheet.active { opacity:1; pointer-events:auto; }
.bj-share-sheet__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
.bj-share-sheet__panel {
    position:absolute; bottom:0; left:0; right:0;
    background:var(--bg-secondary); border-radius:var(--radius-xl) var(--radius-xl) 0 0;
    padding:1.2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform:translateY(100%); transition:transform .35s cubic-bezier(.4,0,.2,1);
    max-width:500px; margin:0 auto;
}
.bj-share-sheet.active .bj-share-sheet__panel { transform:translateY(0); }
.bj-share-sheet__header { display:flex; align-items:center; justify-content:space-between; margin-bottom:.8rem; }
.bj-share-sheet__header strong { color:var(--text-primary); font-family:var(--font-display); font-size:1rem; }
.bj-share-sheet__close { background:none; border:none; color:var(--text-muted); font-size:1.3rem; cursor:pointer; padding:4px; }
.bj-share-sheet__verse {
    padding:.7rem .9rem; margin-bottom:1rem;
    background:rgba(255,255,255,.04); border-radius:var(--radius-sm);
    color:var(--text-secondary); font-family:var(--font-verse); font-size:.82rem;
    font-style:italic; line-height:1.5;
}
.bj-share-sheet__verse strong { color:var(--accent-purple); font-style:normal; }
.bj-share-sheet__grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:.6rem; }
.bj-share-opt {
    display:flex; flex-direction:column; align-items:center; gap:.4rem;
    padding:.8rem .5rem; background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06); border-radius:var(--radius-md);
    color:var(--text-primary); font-family:var(--font-body);
    font-size:.72rem; font-weight:500; cursor:pointer; text-decoration:none;
    transition:all var(--transition-fast);
}
.bj-share-opt:hover { background:rgba(255,255,255,.08); transform:translateY(-2px); }
.bj-share-opt i { font-size:1.3rem; }
.bj-share-opt--wa i { color:#25D366; }
.bj-share-opt--tw i { color:var(--text-primary); }
.bj-share-opt--fb i { color:#1877F2; }
.bj-share-opt--tg i { color:#2AABEE; }
.bj-share-opt--copy i { color:var(--accent-purple); }
.bj-share-opt--card i { color:var(--accent-pink); }

[data-theme="light"] .bj-share-sheet__panel { background:#fff; }
[data-theme="light"] .bj-share-opt { background:rgba(0,0,0,.03); border-color:rgba(0,0,0,.06); }
[data-theme="light"] .bj-share-sheet__verse { background:rgba(0,0,0,.03); }

@media (min-width: 600px) {
    .bj-share-sheet__panel { bottom:auto; top:50%; left:50%; right:auto; transform:translate(-50%,-50%) scale(.95); border-radius:var(--radius-xl); width:420px; }
    .bj-share-sheet.active .bj-share-sheet__panel { transform:translate(-50%,-50%) scale(1); }
}
