
    /* Fontes self-hosted (sem Google Fonts render-blocking) */
    @font-face {
      font-family: 'Inter';
      src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
      font-weight: 400; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Inter';
      src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
      font-weight: 500; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Inter';
      src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
      font-weight: 600 700; font-style: normal; font-display: swap;
    }

    /* ============================================
       LANDING PT v3 (#lpLanding) - linguagem da categoria
       Fundo claro / mockup de celular / azul do app (#2563EB)
       Referencias verificadas: bible.com/pt/app, glorify.global/pt/app
       ============================================ */
    @font-face {
      font-family: 'Newsreader';
      src: url('/static/fonts/Newsreader-Var.woff2') format('woff2');
      font-weight: 400 900; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Newsreader';
      src: url('/static/fonts/Newsreader-Italic-Var.woff2') format('woff2');
      font-weight: 400 900; font-style: italic; font-display: swap;
    }
    :root {
      --lp-paper: #FFFFFF;
      --lp-band: #F2F7FD;
      --lp-ink: #13233F;
      --lp-gray: #52627D;
      --lp-line: #DCE5F2;
      --lp-blue: #2563EB;
      --lp-blue-dark: #1D4FD7;
      --lp-blue-soft: #DBEAFE;
      --lp-cta1: #F59E0B;
      --lp-cta2: #E17D0E;
      --lp-ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
      --lp-ease-in: cubic-bezier(0.16, 1, 0.3, 1);
    }
    .auth-modal.lp-mode { display: block; overflow-y: auto; background: var(--lp-paper); -webkit-overflow-scrolling: touch; }
    .auth-modal.lp-mode .auth-container { max-width: none; padding: 0; text-align: left; min-height: 0; }
    #lpLanding { font-family: 'Inter', system-ui, sans-serif; color: var(--lp-ink); background: linear-gradient(180deg, #EAF2FC 0%, #F6FAFF 35%, #EDF4FC 100%); font-size: 16px; line-height: 1.65; }
    #lpLanding .lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
    #lpLanding h1, #lpLanding h2, #lpLanding h3 { font-family: 'Newsreader', Georgia, serif; line-height: 1.08; color: var(--lp-ink); margin: 0; font-weight: 600; letter-spacing: -0.015em; }
    #lpLanding h1 { font-size: 42px; }
    #lpLanding h2 { font-size: 33px; }
    #lpLanding h3 { font-size: 21px; }
    @media (min-width: 900px) { #lpLanding h1 { font-size: 60px; } #lpLanding h2 { font-size: 40px; } }
    #lpLanding em { font-style: italic; color: var(--lp-blue); }
    #lpLanding .lp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-blue); margin-bottom: 16px; }
    #lpLanding .lp-body-lg { font-size: 19px; color: var(--lp-gray); }
    #lpLanding p { color: var(--lp-gray); }
    #lpLanding strong { color: var(--lp-ink); font-weight: 600; }
    #lpLanding a { color: var(--lp-blue); }
    #lpLanding :focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 3px; }

    .lp-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
    .lp-top .lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--lp-ink); }
    .lp-top .lp-brand img { width: 40px; height: 40px; border-radius: 10px; }
    .lp-top-right { display: flex; align-items: center; gap: 14px; }
    .lp-lang { display: flex; align-items: center; border: 1.5px solid var(--lp-line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,0.55); }
    .lp-lang button { background: none; border: none; border-radius: 999px; padding: 5px 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--lp-muted); cursor: pointer; transition: color 150ms var(--lp-ease-hover), background 150ms var(--lp-ease-hover); }
    .lp-lang button:hover { color: var(--lp-ink); }
    .lp-lang button.lp-lang-on { background: var(--lp-blue); color: #fff; }
    @media (max-width: 520px) { .lp-top-right { gap: 8px; } .lp-lang button { padding: 4px 9px; font-size: 12px; } .lp-login-link { padding: 7px 14px; font-size: 14px; } }
    .lp-login-link { background: none; border: 1.5px solid var(--lp-line); border-radius: 999px; padding: 8px 20px; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--lp-ink); cursor: pointer; transition: border-color 150ms var(--lp-ease-hover), background 150ms var(--lp-ease-hover); }
    .lp-login-link:hover { border-color: var(--lp-blue); background: var(--lp-blue-soft); }

    /* HERO - texto a esquerda, MOCKUP de celular a direita (codigo da categoria) */
    .lp-hero { position: relative; overflow: hidden;
      background:
        radial-gradient(ellipse 680px 460px at 12% 8%, rgba(37,99,235,0.20), transparent 62%),
        radial-gradient(ellipse 600px 520px at 88% 60%, rgba(245,158,11,0.22), transparent 64%),
        linear-gradient(180deg, #EEF5FE 0%, #DEEAFA 100%); }
    .lp-hero-grid { position: relative; display: grid; gap: 36px; align-items: center; padding-bottom: 28px; }
    @media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
    .lp-hero-copy { padding: 16px 0 0; max-width: 560px; position: relative; z-index: 3; }
    .lp-hero .lp-sub { font-size: 19px; color: var(--lp-gray); margin: 24px 0 34px; max-width: 500px; }
    .lp-hero-photo { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 6px 0 0; min-height: 0; margin: 0; }
    
    /* Phone mockup (CSS puro) */
    /* Telefone real: frame escuro + tela + camera + botoes + status */
    .lp-phone-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%;
      background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, rgba(37,99,235,0.05) 45%, transparent 70%);
      z-index: 0; pointer-events: none; }
    .lp-phone { width: 326px; max-width: 90vw; background: linear-gradient(160deg, #2A303C, #14181F 60%);
      border-radius: 50px; padding: 11px; position: relative; z-index: 1;
      box-shadow: 0 34px 80px rgba(13,22,42,0.30), 0 10px 26px rgba(13,22,42,0.18),
                  inset 0 1px 1px rgba(255,255,255,0.18); }
    .lp-pbtn { position: absolute; right: -2.5px; width: 3px; border-radius: 2px; background: #0D1117; }
    .lp-pbtn-pow { top: 150px; height: 58px; }
    .lp-pbtn-vol { right: auto; left: -2.5px; top: 130px; height: 84px; }
    .lp-phone-screen { background: #FFFFFF; border-radius: 40px; padding: 6px 13px 14px;
      position: relative; overflow: hidden; min-height: 496px; }
    .lp-phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%;
      transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%;
      background: #10141B; box-shadow: inset 0 0 2px 1px #2A3140; z-index: 5; }
    .lp-statusbar { display: flex; justify-content: space-between; align-items: center;
      padding: 3px 10px 6px; font-size: 12px; font-weight: 600; color: var(--lp-ink); }
    .lp-sb-ico { display: flex; align-items: center; gap: 5px; }
    .lp-sb-ico i { display: block; }
    .lp-sb-sig { width: 12px; height: 9px;
      background: linear-gradient(to top right, var(--lp-ink) 49%, transparent 50%);
      clip-path: polygon(0 100%, 100% 0, 100% 100%); }
    .lp-sb-wifi { width: 11px; height: 9px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
      border: 2px solid var(--lp-ink); border-bottom: none; }
    .lp-sb-bat { width: 17px; height: 9px; border: 1.5px solid var(--lp-ink); border-radius: 2.5px;
      background: linear-gradient(to right, var(--lp-ink) 65%, transparent 65%); }
    /* Demo animada: duas telas (home -> chat), loop pelo controlador JS */
    .lp-screen { transition: transform 450ms var(--lp-ease-in), opacity 450ms var(--lp-ease-in); }
    .lp-s2 { position: absolute; inset: 40px 13px 14px; transform: translateX(108%); opacity: 0; background: #fff; z-index: 2; }
    .lp-phone.lp-show2 .lp-phone-screen .lp-s1 { transform: translateX(-18%); opacity: 0; pointer-events: none; }
    .lp-phone.lp-show2 .lp-phone-screen .lp-s2 { transform: none; opacity: 1; }
    .lp-tap { box-shadow: 0 0 0 3px var(--lp-blue-soft), 0 6px 16px rgba(37,99,235,0.25) !important; border-color: var(--lp-blue) !important; transform: scale(0.985); }
    .lp-msg { display: flex; gap: 10px; margin-bottom: 12px; opacity: 0; transform: translateY(12px); transition: opacity 380ms var(--lp-ease-in), transform 380ms var(--lp-ease-in); }
    .lp-show2 .lp-msg-user { opacity: 1; transform: none; transition-delay: 250ms; }
    .lp-show2 .lp-msg-ai { opacity: 1; transform: none; transition-delay: 1650ms; }
    .lp-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
    .lp-av-u { background: var(--lp-blue-soft); color: var(--lp-blue); }
    .lp-av-s { background: var(--lp-blue); color: #fff; }
    .lp-msg b { display: block; font-size: 13px; color: var(--lp-ink); margin-bottom: 2px; }
    .lp-msg-ai b { color: var(--lp-blue); }
    .lp-msg p { font-size: 12.5px; line-height: 1.5; color: var(--lp-ink); margin: 0 0 7px; }
    .lp-msg strong { font-weight: 600; }
    .lp-opt { display: inline-flex; width: 16px; height: 16px; border-radius: 4px; background: #E9EDF5; color: var(--lp-gray); font-size: 10.5px; font-weight: 600; align-items: center; justify-content: center; vertical-align: 1px; }
    .lp-ouvir { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--lp-line); background: #F1F5FB; border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 600; color: var(--lp-gray); }
    .lp-ouvir svg { width: 14px; height: 14px; }
    .lp-typing2 { display: flex; gap: 4px; margin: 0 0 12px 40px; opacity: 0; }
    .lp-typing2 i { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-blue); animation: lpDots 1s infinite; }
    .lp-typing2 i:nth-child(2) { animation-delay: 160ms; }
    .lp-typing2 i:nth-child(3) { animation-delay: 320ms; }
    .lp-show2 .lp-typing2 { animation: lpT2 1.3s linear 500ms forwards; }
    @keyframes lpT2 { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; height: 0; margin: 0; } }
    .lp-s2 { overflow: hidden; }
    .lp-step { opacity: 0; transform: translateY(12px); transition: opacity 380ms var(--lp-ease-in), transform 380ms var(--lp-ease-in); }
    .lp-step.lp-in { opacity: 1; transform: none; }
    .lp-step-typing.lp-in { animation: none; }
    .lp-step-typing.lp-in.lp-out { opacity: 0; height: 0; margin: 0; overflow: hidden; }
    .lp-study-title { font-weight: 600; letter-spacing: 0.04em; color: var(--lp-ink) !important; margin-top: 4px !important; }
    .lp-quote { background: var(--lp-blue-soft); border-radius: 10px; padding: 8px 11px; font-style: italic; }
    @media (prefers-reduced-motion: reduce) { .lp-screen { transition: none; } .lp-msg { opacity: 1; transform: none; transition: none; } .lp-typing2 { display: none; } }

    /* Tela real do app (replica da home) */
    .lp-app-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
    .lp-app-menu { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px; }
    .lp-app-menu i { width: 18px; height: 2.5px; border-radius: 2px; background: var(--lp-ink); }
    .lp-app-pill { display: flex; align-items: center; gap: 7px; border: 1.5px solid var(--lp-line); border-radius: 999px; padding: 5px 14px 5px 6px; font-weight: 600; font-size: 14px; color: var(--lp-ink); }
    .lp-app-pill img { width: 24px; height: 24px; border-radius: 6px; }
    .lp-app-hi { text-align: center; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 20px; color: var(--lp-ink); opacity: 0; animation: lpPop 420ms var(--lp-ease-in) 300ms forwards; }
    .lp-app-sub { text-align: center; font-size: 12.5px; color: var(--lp-gray); margin: 2px 0 9px; opacity: 0; animation: lpPop 420ms var(--lp-ease-in) 420ms forwards; }
    .lp-app-verse { position: relative; border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; text-align: center; color: #fff;
      background: linear-gradient(160deg, #3A4254 0%, #232936 55%, #14181F 100%); opacity: 0; animation: lpPop 480ms var(--lp-ease-in) 620ms forwards; }
    .lp-app-verse-ref { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: #C7CEDD; }
    .lp-app-verse-txt { font-family: 'Newsreader', Georgia, serif; font-size: 15.5px; font-weight: 600; margin: 6px 0 4px; }
    .lp-app-verse-tap { font-size: 10.5px; color: #9AA3B5; }
    .lp-app-card { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--lp-line); border-radius: 13px; padding: 8px 12px; margin-bottom: 7px; background: #FBFCFE; opacity: 0; animation: lpPop 420ms var(--lp-ease-in) forwards; }
    .lp-app-card:nth-of-type(4) { animation-delay: 900ms; }
    .lp-app-card:nth-of-type(5) { animation-delay: 1050ms; }
    .lp-app-card:nth-of-type(6) { animation-delay: 1200ms; }
    .lp-app-card:nth-of-type(7) { animation-delay: 1350ms; }
    .lp-app-card b { display: block; font-size: 13.5px; color: var(--lp-ink); }
    .lp-app-card small { display: block; font-size: 11px; color: var(--lp-gray); margin-top: 1px; }
    .lp-app-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
    .lp-app-ico svg { width: 18px; height: 18px; }
    .lp-ico-g { background: #E7F6EC; }
    .lp-ico-r { background: #FDECEC; }
    .lp-ico-b { background: #E7EFFD; }
    .lp-ico-y { background: #FEF6E0; }
    .lp-app-plus { font-size: 18px; font-weight: 600; color: var(--lp-gray); }
    .lp-app-mic { display: flex; }
    .lp-app-mic svg { width: 17px; height: 17px; }
    .lp-verse-card { background: var(--lp-blue-soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
    .lp-verse-ref { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-blue); margin-bottom: 5px; }
    .lp-verse-txt { font-family: 'Newsreader', Georgia, serif; font-size: 15.5px; line-height: 1.5; color: var(--lp-ink); }
    .lp-chat { position: static; display: flex; flex-direction: column; gap: 10px; width: auto; bottom: auto; left: auto; right: auto; }
    .lp-bubble { max-width: 92%; border-radius: 16px; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; backdrop-filter: none; }
    .lp-user { align-self: flex-end; background: var(--lp-blue); color: #FFFFFF; border-bottom-right-radius: 6px; }
    .lp-ai { align-self: flex-start; background: #F1F5FB; color: var(--lp-ink); border-bottom-left-radius: 6px; }
    .lp-ai-tag { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lp-blue); margin-bottom: 4px; }
    .lp-chat-caption { display: block; text-align: center; font-size: 12.5px; color: var(--lp-gray); margin: 8px 0 14px; }
    .lp-phone-input { margin-top: 12px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--lp-line); border-radius: 999px; padding: 9px 14px; font-size: 13.5px; color: var(--lp-gray); }
    .lp-phone-input span:last-child { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--lp-cta1); flex: 0 0 auto; }

    /* CTAs */
    .lp-cta { background: linear-gradient(180deg, var(--lp-cta1), var(--lp-cta2)); color: #FFFFFF; border: none; border-radius: 999px; padding: 16px 36px; font-family: 'Inter', system-ui, sans-serif; font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 26px rgba(225,125,14,0.35); transition: filter 150ms var(--lp-ease-hover), transform 150ms var(--lp-ease-hover); }
    .lp-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .lp-cta-note { display: block; margin-top: 12px; font-size: 13.5px; color: var(--lp-gray); }
    .lp-cta-sec { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--lp-blue); text-decoration: none; border-bottom: 1.5px solid var(--lp-blue-soft); padding-bottom: 2px; }

    /* Secoes */
    .lp-section { padding: 72px 0; background: linear-gradient(180deg, #F7FAFE, #EDF3FC); }
    .lp-section.lp-alt { background:
        radial-gradient(ellipse 760px 400px at 85% 10%, rgba(37,99,235,0.14), transparent 62%),
        linear-gradient(180deg, #DFEAF9 0%, #D5E3F6 100%); }
    .lp-points { display: grid; gap: 18px; margin-top: 36px; }
    @media (min-width: 820px) { .lp-points { grid-template-columns: repeat(3, 1fr); } }
    .lp-point { background: #FFFFFF; border: 1.5px solid var(--lp-line); border-radius: 18px; padding: 24px 22px; font-size: 15.5px; }
    .lp-point strong { display: block; margin-bottom: 8px; font-size: 16.5px; }
    .lp-split { display: grid; gap: 44px; align-items: center; }
    @media (min-width: 900px) { .lp-split { grid-template-columns: 0.9fr 1.1fr; } }
    .lp-photo-frame { border-radius: 22px; overflow: hidden; border: 1.5px solid var(--lp-line); box-shadow: 0 18px 44px rgba(19,35,63,0.10); }
    .lp-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .lp-steps { display: grid; gap: 22px; margin-top: 34px; }
    .lp-step { display: flex; gap: 16px; align-items: flex-start; }
    .lp-step h3 { margin-bottom: 4px; }
    .lp-step p { font-size: 15.5px; }
    .lp-step-num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-blue-soft); color: var(--lp-blue); font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; font-family: 'Inter', system-ui, sans-serif; }
    .lp-bible-grid { display: grid; gap: 16px; margin-top: 36px; }
    @media (min-width: 820px) { .lp-bible-grid { grid-template-columns: repeat(3, 1fr); } }
    .lp-bible-item { background: #FFFFFF; border: 1.5px solid var(--lp-line); border-radius: 16px; padding: 20px; font-size: 15px; color: var(--lp-gray); }
    .lp-section.lp-alt .lp-bible-item { box-shadow: 0 6px 18px rgba(19,35,63,0.05); }

    /* Prova */
    .lp-metrics { display: flex; gap: 48px; flex-wrap: wrap; align-items: baseline; margin-top: 34px; }
    .lp-metric-big { font-family: 'Newsreader', Georgia, serif; font-size: 84px; font-weight: 600; color: var(--lp-blue); line-height: 1; }
    .lp-metric-mid { font-family: 'Newsreader', Georgia, serif; font-size: 44px; font-weight: 600; color: var(--lp-ink); line-height: 1.1; }
    .lp-metric-label { font-size: 15px; color: var(--lp-gray); max-width: 200px; margin-top: 8px; }
    .lp-note-honesta { margin-top: 26px; font-size: 13.5px; color: var(--lp-gray); border-left: 3px solid var(--lp-blue-soft); padding-left: 14px; max-width: 560px; }

    /* Preco */
    .lp-price-card { background: #FFFFFF; border: 1.5px solid var(--lp-line); border-radius: 22px; padding: 36px; max-width: 520px; margin-top: 34px; box-shadow: 0 14px 40px rgba(19,35,63,0.08); }
    .lp-price { font-family: 'Newsreader', Georgia, serif; font-size: 56px; font-weight: 600; color: var(--lp-ink); }
    .lp-price small { font-size: 18px; color: var(--lp-gray); font-family: 'Inter', system-ui, sans-serif; }
    .lp-price-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
    .lp-price-list li { padding-left: 26px; position: relative; font-size: 15.5px; color: var(--lp-gray); }
    .lp-price-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--lp-blue); font-weight: 600; }

    /* FAQ */
    .lp-faq { margin-top: 30px; max-width: 760px; }
    .lp-faq details { border-bottom: 1.5px solid var(--lp-line); padding: 18px 0; }
    .lp-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--lp-ink); list-style: none; position: relative; padding-right: 32px; }
    .lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--lp-blue); font-size: 20px; font-weight: 600; }
    .lp-faq details[open] summary::after { content: "\2013"; }
    .lp-faq details p { margin-top: 12px; font-size: 15.5px; }

    /* CTA final */
    .lp-final { position: relative; padding: 110px 0; overflow: hidden; }
    .lp-final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: 0; }
    .lp-final::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.55); z-index: 1; }
    .lp-final .lp-wrap { position: relative; z-index: 2; }
    .lp-final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
    #lpLanding .lp-final-inner h2 { font-size: 40px; }
    @media (min-width: 900px) { #lpLanding .lp-final-inner h2 { font-size: 48px; } }

    /* Rodape */
    .lp-footer { background: linear-gradient(180deg, #D8E4F5, #CCDCF2); padding: 36px 0 44px; font-size: 13.5px; }
    .lp-footer p { color: var(--lp-gray); }
    .lp-footer a { color: var(--lp-blue); }

    /* Animacoes do mockup — encenacao da conversa (transform/opacity only) */
    @keyframes lpPop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
    @keyframes lpDots { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
    @keyframes lpTypingHide { to { opacity: 0; visibility: hidden; height: 0; padding: 0; margin: 0; } }
    @keyframes lpDayPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.35); } 50% { box-shadow: 0 0 0 7px rgba(37,99,235,0); } }
    .lp-phone .lp-verse-card { opacity: 0; animation: lpPop 480ms var(--lp-ease-in) 400ms forwards; }
    .lp-phone .lp-streak { opacity: 0; animation: lpPop 480ms var(--lp-ease-in) 900ms forwards; }
    .lp-phone .lp-user { opacity: 0; animation: lpPop 420ms var(--lp-ease-in) 1500ms forwards; }
    .lp-typing { align-self: flex-start; background: #F1F5FB; border-radius: 16px; border-bottom-left-radius: 6px; padding: 12px 16px; display: flex; gap: 5px; opacity: 0; animation: lpPop 300ms var(--lp-ease-in) 2200ms forwards, lpTypingHide 220ms linear 3400ms forwards; }
    .lp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-blue); animation: lpDots 1s infinite; }
    .lp-typing i:nth-child(2) { animation-delay: 160ms; }
    .lp-typing i:nth-child(3) { animation-delay: 320ms; }
    .lp-phone .lp-ai { opacity: 0; animation: lpPop 460ms var(--lp-ease-in) 3550ms forwards; }
    .lp-phone .lp-phone-input { opacity: 0; animation: lpPop 400ms var(--lp-ease-in) 1550ms forwards; }

    /* Streak — dias na Palavra (gamificacao visual, sem emoji) */
    .lp-streak { background: #FFFFFF; border: 1.5px solid var(--lp-line); border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; }
    .lp-streak-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-gray); margin-bottom: 8px; }
    .lp-streak-label strong { color: var(--lp-blue); }
    .lp-days { display: flex; gap: 7px; }
    .lp-day { flex: 1; height: 26px; border-radius: 8px; background: #EFF4FB; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--lp-gray); }
    .lp-day.done { background: var(--lp-blue-soft); color: var(--lp-blue); }
    .lp-day.done::after { content: "\2713"; margin-left: 3px; }
    .lp-day.today { background: var(--lp-blue); color: #FFFFFF; animation: lpDayPulse 2s var(--lp-ease-hover) infinite; }

    @media (prefers-reduced-motion: reduce) {
      .lp-phone .lp-verse-card, .lp-phone .lp-streak, .lp-phone .lp-user,
      .lp-phone .lp-ai, .lp-phone .lp-phone-input { opacity: 1; animation: none; }
      .lp-typing { display: none; }
      .lp-day.today { animation: none; }
    }

    /* Cards animados (LEIA/ESTUDE/CONFIANCA) — cascata + hover de conversao */
    .lp-bible-item, .lp-point { position: relative; overflow: hidden;
      opacity: 0; transform: translateY(24px);
      transition: opacity 500ms var(--lp-ease-in), transform 500ms var(--lp-ease-in),
                  box-shadow 200ms var(--lp-ease-hover), border-color 200ms var(--lp-ease-hover); }
    .lp-in .lp-bible-item, .lp-in .lp-point { opacity: 1; transform: none; }
    .lp-in .lp-bible-item:nth-child(1), .lp-in .lp-point:nth-child(1) { transition-delay: 0ms; }
    .lp-in .lp-bible-item:nth-child(2), .lp-in .lp-point:nth-child(2) { transition-delay: 140ms; }
    .lp-in .lp-bible-item:nth-child(3), .lp-in .lp-point:nth-child(3) { transition-delay: 280ms; }
    /* barra de acento que se desenha no topo do card */
    .lp-bible-item::before, .lp-point::before { content: ""; position: absolute; top: 0; left: 0;
      height: 3px; width: 100%; background: linear-gradient(90deg, var(--lp-blue), var(--lp-cta1));
      transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--lp-ease-in); }
    .lp-in .lp-bible-item::before, .lp-in .lp-point::before { transform: scaleX(1); }
    .lp-in .lp-bible-item:nth-child(2)::before, .lp-in .lp-point:nth-child(2)::before { transition-delay: 260ms; }
    .lp-in .lp-bible-item:nth-child(3)::before, .lp-in .lp-point:nth-child(3)::before { transition-delay: 400ms; }
    /* hover: levanta, sombra cresce, borda acende — o card responde */
    @media (hover: hover) {
      .lp-bible-item:hover, .lp-point:hover { transform: translateY(-5px);
        box-shadow: 0 16px 34px rgba(19,35,63,0.12); border-color: var(--lp-blue); }
    }
    @media (prefers-reduced-motion: reduce) {
      .lp-bible-item, .lp-point { opacity: 1; transform: none; transition: none; }
      .lp-bible-item::before, .lp-point::before { transform: scaleX(1); transition: none; }
    }

    /* Sticky CTA (mobile) — aparece apos rolar o hero */
    .lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96);
      border-top: 1.5px solid var(--lp-line); box-shadow: 0 -8px 24px rgba(19,35,63,0.10);
      transform: translateY(110%); transition: transform 300ms var(--lp-ease-in); }
    .lp-sticky.lp-on { transform: none; }
    .lp-sticky .lp-cta { width: 100%; padding: 14px 20px; }
    .lp-sticky-note { display: block; text-align: center; font-size: 12px; color: var(--lp-gray); margin-top: 5px; }
    @media (max-width: 899px) { .lp-sticky { display: block; } }

    /* Responsividade fina */
    @media (max-width: 899px) {
      .lp-section, .lp-final { padding: 52px 0; }
      #lpLanding h1 { font-size: 38px; }
      #lpLanding h2 { font-size: 29px; }
      #lpLanding .lp-final-inner h2 { font-size: 32px; }
      .lp-hero-copy { padding-top: 24px; }
      .lp-metric-big { font-size: 64px; }
      .lp-metrics { gap: 28px; }
      .lp-price-card { padding: 26px; }
      #lpLanding { padding-bottom: 84px; } /* espaco p/ sticky */
    }

    /* Reveals */
    .lp-reveal { opacity: 0; transform: translateY(20px); transition: opacity 450ms var(--lp-ease-in), transform 450ms var(--lp-ease-in); }
    .lp-reveal.lp-in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .lp-reveal { opacity: 1; transform: none; }
      .lp-reveal.lp-in { transition: none; }
    }
    /* ============================================
       CSS VARIABLES - LIGHT THEME (Oceano Celestial)
    ============================================ */
    :root {
      --bg-primary: #F8FAFF;
      --bg-secondary: #EFF6FF;
      --bg-tertiary: #DBEAFE;
      --bg-input: #ffffff;
      --bg-hover: #E0ECFF;
      --bg-chat: #FAFCFF;

      --text-primary: #1F2937;
      --text-secondary: #4B5563;
      --text-muted: #6B7280;

      --accent: #3B82F6;
      --accent-light: #60A5FA;
      --accent-dark: #2563EB;
      --accent-bg: #DBEAFE;
      --accent-glow: rgba(59, 130, 246, 0.2);

      --gold: #EAB308;
      --gold-light: #FDE047;
      --gold-dark: #CA8A04;
      --secondary: #EAB308;

      --border: #BFDBFE;
      --border-light: #93C5FD;

      --shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
      --shadow-lg: 0 4px 16px rgba(59, 130, 246, 0.12);

      --sidebar-width: 260px;
      --header-height: 56px;

      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;

      --transition: 0.2s ease;

      /* ============================================
         SISTEMA — DESIGN.md (2026-08-25)
         Declarados sem trocar uso: CSS ignora token nao referenciado.
         Toda tela NOVA usa daqui. As antigas migram quando forem tocadas.
      ============================================ */

      /* Tipografia — escala 1.200 ancorada em 14px (publico 35+) */
      --fs-2xs: 11px;   /* selo, contador, timestamp */
      --fs-xs:  12px;   /* rotulo de secao, metadado */
      --fs-sm:  14px;   /* apoio, descricao — ancora */
      --fs-base:16px;   /* corpo, chat, leitura biblica */
      --fs-md:  19px;   /* H3, titulo de card */
      --fs-lg:  23px;   /* H2, versiculo do devocional */
      --fs-xl:  28px;   /* H1 de tela */
      --fs-2xl: 40px;   /* display — raro */

      /* Pesos — so os tres que tem arquivo */
      --fw-regular: 400;   /* corpo longo, texto biblico */
      --fw-medium:  500;   /* interface, rotulo, navegacao */
      --fw-semi:    600;   /* titulo, CTA, enfase */

      /* Familias — duas. Serif na Palavra, sans na interface */
      --font-word: 'Newsreader', Georgia, serif;
      --font-ui:   'Inter', system-ui, -apple-system, sans-serif;

      /* Espacamento — base 4px que ja existia e ninguem declarou */
      --sp-1:  4px;
      --sp-2:  8px;
      --sp-3: 12px;   /* o mais usado do app */
      --sp-4: 16px;
      --sp-5: 20px;
      --sp-6: 24px;
      --sp-8: 32px;
      --sp-10:40px;

      /* Movimento — 200ms e o padrao de facto (57 usos), nao 250 */
      --dur-fast:   150ms;
      --dur-base:   200ms;
      --dur-slow:   400ms;
      --dur-breath: 1000ms;

      --ease-hover:  cubic-bezier(0.4, 0, 0.2, 1);
      --ease-enter:  cubic-bezier(0.16, 1, 0.3, 1);
      --ease-exit:   cubic-bezier(0.4, 0, 1, 1);
      --ease-gentle: cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* ============================================
       CSS VARIABLES - DARK THEME (Oceano Celestial)
    ============================================ */
    [data-theme="dark"] {
      --bg-primary: #0C1929;
      --bg-secondary: #1E3A5F;
      --bg-tertiary: #1E40AF;
      --bg-input: #1E3A5F;
      --bg-hover: #2563EB;
      --bg-chat: #0F172A;

      --text-primary: #EFF6FF;
      --text-secondary: #93C5FD;
      --text-muted: #64748B;

      --accent: #60A5FA;
      --accent-light: #93C5FD;
      --accent-dark: #3B82F6;
      --accent-bg: rgba(96, 165, 250, 0.15);
      --accent-glow: rgba(96, 165, 250, 0.3);

      --gold: #FACC15;
      --gold-light: #FDE047;
      --gold-dark: #EAB308;
      --secondary: #FACC15;

      --border: #1E40AF;
      --border-light: #3B82F6;

      --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

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

    html, body {
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* ============================================
       APP LAYOUT
    ============================================ */
    .app {
      display: flex;
      height: 100vh;
      height: 100dvh;
    }

    /* ============================================
       SIDEBAR - LIGHT
    ============================================ */
    .sidebar {
      width: var(--sidebar-width);
      background: var(--bg-secondary);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      transition: width 0.3s ease, transform 0.3s ease;
      position: relative;
      flex-shrink: 0;
    }

    .sidebar-header {
      padding: 16px;
      border-bottom: 1px solid var(--border);
    }

    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .sidebar-logo-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      object-fit: contain;
    }

    .sidebar-logo-text {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .new-chat-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
      box-shadow: var(--shadow);
    }

    .new-chat-btn:hover {
      background: var(--bg-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    .new-chat-btn svg {
      width: 18px;
      height: 18px;
    }

    .sidebar-content {
      flex: 1;
      overflow-y: auto;
      padding: 8px;
    }

    .sidebar-section {
      margin-bottom: 16px;
    }

    .sidebar-section-title {
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .conversation-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background var(--transition);
      color: var(--text-secondary);
    }

    .conversation-item:hover {
      background: var(--bg-hover);
    }

    .conversation-item.active {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    .conversation-item svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .conversation-title {
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    .conversation-actions {
      display: none;
      gap: 4px;
    }

    .conversation-item:hover .conversation-actions {
      display: flex;
    }

    .conversation-action-btn {
      width: 24px;
      height: 24px;
      border: none;
      background: transparent;
      border-radius: 4px;
      cursor: pointer;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .conversation-action-btn:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    .conversation-action-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Modal de edição de conversa */
    .edit-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
    }

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

    .edit-modal-content {
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      padding: 24px;
      width: 90%;
      max-width: 400px;
      box-shadow: var(--shadow-lg);
    }

    .edit-modal-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .edit-modal-input {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      margin-bottom: 16px;
      outline: none;
    }

    .edit-modal-input:focus {
      border-color: var(--accent);
    }

    .edit-modal-buttons {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .edit-modal-btn {
      padding: 10px 20px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

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

    .edit-modal-btn.cancel:hover {
      background: var(--bg-hover);
    }

    .edit-modal-btn.save {
      background: var(--accent-dark);
      border: none;
      color: white;
    }

    .edit-modal-btn.save:hover {
      background: var(--accent-dark);
    }

    .edit-modal-btn.delete {
      background: #dc3545;
      border: none;
      color: white;
      margin-right: auto;
    }

    .edit-modal-btn.delete:hover {
      background: #c82333;
    }

    /* Profile Settings Modal */
    .profile-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
    }

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

    .profile-modal-content {
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      padding: 24px;
      width: 90%;
      max-width: 500px;
      max-height: 85vh;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
    }

    .profile-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .profile-modal-title {
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .profile-modal-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--text-secondary);
      padding: 4px 8px;
      border-radius: var(--radius-sm);
    }

    .profile-modal-close:hover {
      background: var(--bg-hover);
      color: var(--text-primary);
    }

    .profile-section {
      margin-bottom: 24px;
    }

    .profile-section-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .profile-field {
      margin-bottom: 16px;
    }

    .profile-field label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .profile-field input,
    .profile-field select {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      outline: none;
      transition: border-color 0.2s;
    }

    .profile-field input:focus,
    .profile-field select:focus {
      border-color: var(--accent);
    }

    .profile-field input::placeholder {
      color: var(--text-secondary);
      opacity: 0.7;
    }

    .profile-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .profile-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px;
      background: var(--bg-secondary);
      border-radius: var(--radius-sm);
      margin-bottom: 12px;
    }

    .profile-toggle-label {
      font-size: 14px;
      color: var(--text-primary);
    }

    .profile-toggle-switch {
      position: relative;
      width: 48px;
      height: 26px;
      background: var(--border);
      border-radius: 13px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .profile-toggle-switch.active {
      background: var(--accent-dark);
    }

    .profile-toggle-switch::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 20px;
      height: 20px;
      background: white;
      border-radius: 50%;
      transition: transform 0.2s;
    }

    .profile-toggle-switch.active::after {
      transform: translateX(22px);
    }

    .profile-modal-footer {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .profile-btn {
      padding: 12px 24px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

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

    .profile-btn.cancel:hover {
      background: var(--bg-hover);
    }

    .profile-btn.save {
      background: var(--accent-dark);
      border: none;
      color: white;
    }

    .profile-btn.save:hover {
      background: var(--accent-dark);
    }

    .profile-btn.save:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .profile-photo-preview {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      overflow: hidden;
      transition: opacity 0.2s;
    }

    .profile-photo-preview:hover {
      opacity: 0.8;
    }

    .profile-photo-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-photo-initial {
      font-size: 28px;
      font-weight: 600;
      color: white;
    }

    .profile-photo-btn {
      background: none;
      border: none;
      color: var(--accent);
      font-size: 13px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
    }

    .profile-photo-btn:hover {
      background: var(--bg-secondary);
    }

    .profile-photo-remove-btn {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 12px;
      cursor: pointer;
      padding: 2px 8px;
    }

    .profile-photo-remove-btn:hover {
      color: #e74c3c;
    }

    /* Settings Modal */
    .settings-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
    }

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

    .settings-modal-content {
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      width: 90%;
      max-width: 500px;
      max-height: 85vh;
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      display: flex;
      flex-direction: column;
    }

    .settings-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }

    .settings-title {
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .settings-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--text-secondary);
      padding: 4px 8px;
      border-radius: var(--radius-sm);
    }

    .settings-close:hover {
      background: var(--bg-hover);
      color: var(--text-primary);
    }

    .settings-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }

    .settings-section {
      margin-bottom: 28px;
    }

    .settings-section:last-child {
      margin-bottom: 0;
    }

    .settings-section-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .settings-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: var(--bg-secondary);
      border-radius: var(--radius-sm);
      margin-bottom: 10px;
    }

    .settings-item:last-child {
      margin-bottom: 0;
    }

    .settings-item-info {
      flex: 1;
    }

    .settings-item-label {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 2px;
    }

    .settings-item-desc {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .settings-toggle {
      position: relative;
      width: 48px;
      height: 26px;
      background: var(--border);
      border-radius: 13px;
      cursor: pointer;
      transition: background 0.2s;
      flex-shrink: 0;
      margin-left: 12px;
    }

    .settings-toggle.active {
      background: var(--accent-dark);
    }

    .settings-toggle::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 20px;
      height: 20px;
      background: white;
      border-radius: 50%;
      transition: transform 0.2s;
    }

    .settings-toggle.active::after {
      transform: translateX(22px);
    }

    .settings-select {
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-primary);
      color: var(--text-primary);
      font-size: 13px;
      cursor: pointer;
      min-width: 140px;
      margin-left: 12px;
    }

    .settings-btn-danger {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 14px 16px;
      background: var(--bg-secondary);
      border: 1px solid #dc3545;
      border-radius: var(--radius-sm);
      color: #dc3545;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .settings-btn-danger:hover {
      background: #dc3545;
      color: white;
    }

    .settings-btn-secondary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 12px 16px;
      margin-top: 12px;
      background: var(--bg-secondary);
      border: 1px solid var(--accent);
      border-radius: var(--radius-sm);
      color: var(--accent);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .settings-btn-secondary:hover {
      background: var(--accent-dark);
      color: white;
    }

    .settings-btn-secondary svg {
      width: 16px;
      height: 16px;
    }

    .settings-link {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 14px 16px;
      background: var(--bg-secondary);
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .settings-link:hover {
      background: var(--bg-hover);
    }

    .settings-link svg,
    .settings-btn-danger svg {
      width: 18px;
      height: 18px;
    }

    .sidebar-footer {
      padding: 12px;
      border-top: 1px solid var(--border);
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: background var(--transition);
    }

    .user-profile:hover {
      background: var(--bg-hover);
    }

    .user-avatar {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
      color: white;
      overflow: hidden;
      flex-shrink: 0;
    }

    .user-avatar img,
    .dropdown-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .user-info {
      flex: 1;
      min-width: 0;
    }

    .user-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-plan {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* Sidebar Upgrade Button */
    .sidebar-upgrade-btn {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .sidebar-upgrade-btn:hover {
      background: var(--bg-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ============================================
       USER DROPDOWN MENU
    ============================================ */
    .sidebar-footer {
      position: relative;
    }

    .user-dropdown {
      position: absolute;
      bottom: 100%;
      left: 12px;
      right: 12px;
      margin-bottom: 8px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.2s ease;
      z-index: 1000;
      overflow: hidden;
    }

    .user-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-header {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .dropdown-avatar {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 600;
      color: white;
      overflow: hidden;
      flex-shrink: 0;
    }

    .dropdown-user-info {
      flex: 1;
    }

    .dropdown-user-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .dropdown-user-email {
      font-size: 12px;
      color: var(--text-muted);
    }

    .dropdown-menu {
      padding: 8px 0;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      color: var(--text-primary);
      font-size: 14px;
      cursor: pointer;
      transition: background var(--transition);
      border: none;
      background: none;
      width: 100%;
      text-align: left;
    }

    .dropdown-item:hover {
      background: var(--bg-hover);
    }

    .dropdown-item svg {
      width: 18px;
      height: 18px;
      color: var(--text-secondary);
    }

    .dropdown-item.upgrade {
      color: var(--accent-dark);
    }

    .dropdown-item.upgrade svg {
      color: var(--accent);
    }

    .dropdown-divider {
      height: 1px;
      background: var(--border);
      margin: 8px 0;
    }

    .dropdown-item.logout {
      color: #dc3545;
    }

    .dropdown-item.logout svg {
      color: #dc3545;
    }

    .dropdown-item.install-app {
      color: #0d6efd;
    }

    .dropdown-item.install-app svg {
      color: #0d6efd;
    }

    .user-profile .chevron {
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      transition: transform 0.2s ease;
    }

    .user-profile.active .chevron {
      transform: rotate(180deg);
    }

    /* ============================================
       MAIN CONTENT
    ============================================ */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      background: var(--bg-primary);
    }

    /* ============================================
       HEADER - LIGHT
    ============================================ */
    .header {
      height: var(--header-height);
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      background: var(--bg-primary);
      position: relative;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      cursor: pointer;
      transition: background var(--transition);
    }

    .menu-btn:hover {
      background: var(--bg-hover);
    }

    .menu-btn svg {
      width: 24px;
      height: 24px;
    }

    /* Sidebar Toggle Button (inside sidebar) */
    .sidebar-toggle {
      position: absolute;
      top: 12px;
      right: -14px;
      width: 28px;
      height: 28px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      transition: all var(--transition);
      z-index: 10;
      box-shadow: var(--shadow);
    }

    .sidebar-toggle:hover {
      background: var(--bg-hover);
      color: var(--text-primary);
    }

    .sidebar-toggle svg {
      width: 16px;
      height: 16px;
      transition: transform 0.3s ease;
    }

    /* Sidebar Collapsed State (Desktop) */
    .sidebar.collapsed {
      width: 0;
      min-width: 0;
      overflow: hidden;
      border-right: none;
    }

    .sidebar.collapsed .sidebar-toggle {
      right: -40px;
    }

    .sidebar.collapsed .sidebar-toggle svg {
      transform: rotate(180deg);
    }

    /* Main content expands when sidebar collapsed */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100vh;
      height: 100dvh;
      transition: margin-left 0.3s ease;
    }

    .header-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .header-logo {
      display: inline-flex;
      align-items: center;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 4px 14px 4px 4px;
      gap: 8px;
    }

    .header-logo img {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      object-fit: cover;
    }

    .header-logo-text {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      letter-spacing: -0.3px;
    }

    .header-text {
      font-size: 17px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .header-center {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .header-upgrade-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .header-upgrade-btn:hover {
      background: var(--bg-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    .header-upgrade-btn svg {
      width: 14px;
      height: 14px;
      color: var(--accent);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .header-btn {
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
    }

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

    .header-btn svg {
      width: 20px;
      height: 20px;
    }

    /* ============================================
       CHAT AREA
    ============================================ */
    .chat-container {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      background: var(--bg-primary);
    }

    .chat-messages {
      flex: 1;
      padding: 24px 16px;
      max-width: 768px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
    }

    /* Welcome Screen */
    .welcome-screen {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      width: 100%;
      padding: 24px;
      text-align: center;
      box-sizing: border-box;
    }

    .welcome-logo {
      height: 60px;
      width: auto;
      margin-bottom: 24px;
    }

    .welcome-logo img {
      height: 100%;
      width: auto;
      object-fit: contain;
    }

    .welcome-icon {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
      box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    }

    .welcome-icon img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .welcome-title {
      font-size: 26px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .welcome-subtitle {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 32px;
      max-width: 400px;
    }

    .welcome-content {
      width: 100%;
      max-width: 500px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      overflow: hidden;
    }

    .quick-prompts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      min-width: 0;
    }

    .quick-prompt {
      padding: 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      cursor: pointer;
      text-align: left;
      transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      display: flex;
      min-width: 0;
      overflow: hidden;
      align-items: flex-start;
      gap: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .quick-prompt:hover {
      border-color: var(--accent);
      background: var(--bg-primary);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      transform: translateY(-2px);
    }

    .quick-prompt:active {
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      transform: translateY(0);
    }

    .quick-prompt-icon {
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .quick-prompt-icon svg {
      width: 18px;
      height: 18px;
    }

    /* Quick prompt icon colors */
    .quick-prompt-icon.icon-heart {
      background: rgba(244, 63, 94, 0.12);
    }
    .quick-prompt-icon.icon-heart svg {
      color: #F43F5E;
    }

    .quick-prompt-icon.icon-compass {
      background: rgba(59, 130, 246, 0.12);
    }
    .quick-prompt-icon.icon-compass svg {
      color: #3B82F6;
    }

    .quick-prompt-icon.icon-star {
      background: rgba(234, 179, 8, 0.12);
    }
    .quick-prompt-icon.icon-star svg {
      color: #EAB308;
    }

    .quick-prompt-icon.icon-book {
      background: rgba(34, 197, 94, 0.12);
    }
    .quick-prompt-icon.icon-book svg {
      color: #22C55E;
    }

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

    .quick-prompt-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .quick-prompt-desc {
      font-size: 13px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Daily Verse Card */
    .verse-card {
      min-height: 160px;
      border-radius: var(--radius-lg);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      margin-bottom: 24px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
    }

    .verse-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .verse-card-bg {
      /* Versículo tipográfico: gradiente estável no card (a foto do dia fica
         só no modal fullscreen). Legibilidade não depende mais da imagem. */
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(160deg, #3A4254 0%, #232936 55%, #14181F 100%) !important;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .verse-card-overlay {
      display: none;
    }

    .verse-card-content {
      position: relative;
      z-index: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 20px 24px;
      color: white;
    }

    .verse-card-reference {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #C7CEDD;
      margin-bottom: 10px;
    }

    .verse-card-text {
      font-family: 'Newsreader', Georgia, serif;
      font-size: 18px;
      line-height: 1.45;
      font-weight: 600;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .verse-card-hint {
      font-size: 10px;
      opacity: 0.6;
      margin-top: 12px;
    }

    /* Verse Modal (Fullscreen) */
    .verse-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 10000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

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

    .verse-modal-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
      background-size: cover;
      background-position: center;
    }

    .verse-modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
    }

    .verse-modal-content {
      position: relative;
      z-index: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      color: white;
      padding: 20px;
      padding-top: env(safe-area-inset-top, 20px);
      padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .verse-modal-header {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 10;
    }

    .verse-modal-close {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease;
    }

    .verse-modal-close:hover {
      background: rgba(255,255,255,0.3);
    }

    .verse-modal-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 40px 30px;
    }

    .verse-modal-reference {
      font-size: 14px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      opacity: 0.9;
      margin-bottom: 20px;
    }

    .verse-modal-text {
      font-size: 24px;
      line-height: 1.5;
      font-weight: 500;
      max-width: 600px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .verse-modal-footer {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: auto;
      padding-top: 20px;
    }

    .verse-modal-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 24px;
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.3);
      color: white;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .verse-modal-btn:hover {
      background: rgba(255,255,255,0.3);
    }

    .verse-modal-btn svg {
      width: 18px;
      height: 18px;
    }

    /* Estados do botão Ouvir */
    .verse-modal-btn .btn-icon-loading,
    .verse-modal-btn .btn-icon-playing {
      display: none;
    }

    .verse-modal-btn.loading {
      background: rgba(255,255,255,0.35);
      pointer-events: none;
    }

    .verse-modal-btn.loading .btn-icon-normal { display: none; }
    .verse-modal-btn.loading .btn-icon-loading { display: block; }
    .verse-modal-btn.loading .btn-icon-loading svg {
      animation: spin 1s linear infinite;
    }

    .verse-modal-btn.playing {
      background: rgba(255,255,255,0.4);
      border-color: rgba(255,255,255,0.6);
    }

    .verse-modal-btn.playing .btn-icon-normal { display: none; }
    .verse-modal-btn.playing .btn-icon-playing { display: flex; align-items: center; gap: 2px; height: 18px; }

    .verse-modal-btn.playing .sound-bar {
      width: 3px;
      background: white;
      border-radius: 2px;
      animation: soundBars 0.6s ease-in-out infinite alternate;
    }

    .verse-modal-btn.playing .sound-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
    .verse-modal-btn.playing .sound-bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
    .verse-modal-btn.playing .sound-bar:nth-child(3) { height: 8px; animation-delay: 0.3s; }
    .verse-modal-btn.playing .sound-bar:nth-child(4) { height: 14px; animation-delay: 0.1s; }
    .verse-modal-btn.playing .sound-bar:nth-child(5) { height: 6px; animation-delay: 0.25s; }

    @keyframes soundBars {
      0% { transform: scaleY(0.4); }
      100% { transform: scaleY(1); }
    }

    .verse-modal-attribution {
      font-size: 10px;
      opacity: 0.5;
      margin-top: 16px;
      text-align: center;
    }

    /* Messages */
    .message {
      display: flex;
      gap: 16px;
      padding: 24px 0;
      border-bottom: 1px solid var(--border);
    }

    .message:last-child {
      border-bottom: none;
    }

    .message-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
    }

    .message.user .message-avatar {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    .message.assistant .message-avatar {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      color: white;
    }

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

    .message-role {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text-primary);
    }

    .message.assistant .message-role {
      color: var(--accent-dark);
    }

    .message-text {
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-primary);
    }

    .message-text p {
      margin-bottom: 12px;
    }

    .message-text p:last-child {
      margin-bottom: 0;
    }

    .message-text strong {
      font-weight: 600;
    }

    .message-text em {
      color: var(--accent-dark);
      font-style: italic;
    }

    .message-text ul {
      margin: 8px 0;
      padding-left: 20px;
    }

    .message-text li {
      margin-bottom: 6px;
    }

    .message-text a {
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid var(--accent);
      transition: all 0.2s;
    }

    .message-text a:hover {
      color: var(--accent-dark);
      border-bottom-color: var(--accent-dark);
    }

    /* Typing Indicator */
    .typing-indicator {
      display: flex;
      gap: 4px;
      padding: 8px 0;
    }

    .typing-indicator span {
      width: 8px;
      height: 8px;
      background: var(--accent-dark);
      border-radius: 50%;
      animation: typing 1.4s infinite ease-in-out;
    }

    .typing-indicator span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-indicator span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes typing {
      0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
      }
      30% {
        transform: translateY(-8px);
        opacity: 1;
      }
    }

    /* Web Search Indicator */
    .web-search-indicator {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 10px 14px;
      margin: 8px 0;
      background: var(--accent-bg);
      border-left: 3px solid var(--accent);
      border-radius: 0 8px 8px 0;
      font-size: 13px;
      color: var(--text-primary);
      animation: fadeInSearch 0.3s ease;
      transition: opacity 0.3s ease;
    }

    .web-search-indicator svg {
      color: var(--accent);
      flex-shrink: 0;
    }

    .web-search-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
    }

    .web-search-sources {
      margin-top: 4px;
      padding-top: 6px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .web-search-sources a {
      color: var(--accent);
      text-decoration: none;
      transition: color 0.2s;
      margin-right: 4px;
    }

    .web-search-sources a:hover {
      color: var(--accent-light);
      text-decoration: underline;
    }

    @keyframes fadeInSearch {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    @keyframes slideDown {
      from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
      to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }
    }

    /* ============================================
       FEEDBACK BUTTON
    ============================================ */
    .message-actions {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      transition: opacity 0.2s ease;
    }

    /* Botão Ouvir visível por padrão */
    .message-actions .listen-btn {
      opacity: 1;
    }

    /* Botão Ouvir esconde após ser usado */
    .message-actions .listen-btn.listened {
      opacity: 0;
      pointer-events: none;
    }

    /* Botão Reportar escondido por padrão */
    .message-actions .feedback-btn {
      opacity: 0;
      pointer-events: none;
    }

    /* Ao clicar na mensagem, mostra todos os botões */
    .message.show-actions .message-actions .listen-btn.listened,
    .message.show-actions .message-actions .feedback-btn {
      opacity: 1;
      pointer-events: auto;
    }

    .feedback-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      font-size: 12px;
      color: var(--text-muted);
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

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

    .feedback-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Listen button (TTS) */
    .listen-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      font-size: 12px;
      color: var(--text-muted);
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

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

    .listen-btn svg {
      width: 14px;
      height: 14px;
    }

    .listen-btn.playing {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-bg);
    }

    .listen-btn.loading .listen-icon {
      display: none;
    }

    .listen-btn.loading .loading-icon {
      display: block !important;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* Feedback Modal */
    .feedback-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 2000;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .feedback-modal-overlay.show {
      display: flex;
    }

    .feedback-modal {
      background: var(--bg-primary);
      border-radius: 16px;
      max-width: 480px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .feedback-modal-header {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }

    .feedback-modal-header h3 {
      margin: 0 0 4px 0;
      font-size: 18px;
      color: var(--text-primary);
    }

    .feedback-modal-header p {
      margin: 0;
      font-size: 14px;
      color: var(--text-secondary);
    }

    .feedback-modal-body {
      padding: 20px 24px;
    }

    .feedback-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .feedback-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: var(--bg-secondary);
      border: 2px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .feedback-option:hover {
      background: var(--bg-tertiary);
    }

    .feedback-option.selected {
      border-color: var(--accent);
      background: var(--accent-bg);
    }

    .feedback-option input {
      display: none;
    }

    .feedback-option-icon {
      font-size: 20px;
    }

    .feedback-option-text {
      flex: 1;
    }

    .feedback-option-text strong {
      display: block;
      font-size: 14px;
      color: var(--text-primary);
      margin-bottom: 2px;
    }

    .feedback-option-text span {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .feedback-details {
      margin-top: 16px;
    }

    .feedback-details label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .feedback-details textarea {
      width: 100%;
      min-height: 80px;
      padding: 12px;
      background: var(--bg-input);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: inherit;
      font-size: 14px;
      color: var(--text-primary);
      resize: vertical;
    }

    .feedback-details textarea:focus {
      outline: none;
      border-color: var(--accent);
    }

    .feedback-modal-footer {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .feedback-cancel-btn {
      padding: 10px 20px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-secondary);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .feedback-cancel-btn:hover {
      background: var(--bg-secondary);
    }

    .feedback-submit-btn {
      padding: 10px 20px;
      background: var(--accent-dark);
      border: none;
      border-radius: 8px;
      color: white;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .feedback-submit-btn:hover {
      background: var(--accent-dark);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px var(--accent-glow);
    }

    .feedback-submit-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .feedback-success {
      text-align: center;
      padding: 40px 20px;
    }

    .feedback-success-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .feedback-success h4 {
      margin: 0 0 8px 0;
      color: var(--text-primary);
    }

    .feedback-success p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 14px;
    }

    /* ============================================
       INPUT AREA
    ============================================ */
    .input-area {
      padding: 16px 24px 24px;
      background: linear-gradient(to top, var(--bg-chat) 0%, transparent 100%);
    }

    .input-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .input-wrapper {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 8px;
      transition: all var(--transition);
      box-shadow: var(--shadow);
    }

    .input-wrapper:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .input-field {
      flex: 1;
      border: none;
      background: transparent;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 15px;
      color: var(--text-primary);
      resize: none;
      outline: none;
      min-height: 24px;
      max-height: 200px;
      padding: 8px 4px;
      line-height: 1.5;
    }

    .input-field::placeholder {
      color: var(--text-muted);
    }

    .send-btn {
      width: 40px;
      height: 40px;
      background: var(--accent-dark);
      border: none;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
    }

    .send-btn.visible {
      display: flex;
    }

    .send-btn:hover {
      background: var(--accent-dark);
      transform: scale(1.05);
    }

    .send-btn:disabled {
      background: var(--bg-tertiary);
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .send-btn svg {
      width: 18px;
      height: 18px;
    }

    /* Input actions container */
    .input-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    /* Attach image button */
    .attach-btn {
      width: 40px;
      height: 40px;
      background: var(--bg-secondary);
      border: none;
      border-radius: 50%;
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
    }

    .attach-btn:hover {
      background: var(--accent-bg);
      color: var(--accent);
    }

    .attach-btn svg {
      width: 20px;
      height: 20px;
    }

    .attach-btn.has-image {
      background: var(--accent-dark);
      color: white;
    }

    /* Attach Container */
    .attach-container {
      position: relative;
    }

    /* Attach Modal */
    .attach-modal {
      position: absolute;
      bottom: 100%;
      left: 0;
      margin-bottom: 8px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 4px;
      min-width: 200px;
      z-index: 100;
    }

    .attach-modal.show {
      display: flex;
      animation: fadeIn 0.2s ease-out;
    }

    .attach-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      color: var(--text-primary);
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 500;
      transition: all var(--transition);
      text-align: left;
    }

    .attach-option:hover {
      background: var(--bg-hover);
    }

    .attach-option svg {
      width: 20px;
      height: 20px;
      color: var(--accent);
      flex-shrink: 0;
    }

    .attach-option-info {
      display: flex;
      flex-direction: column;
    }

    .attach-option-label {
      font-weight: 500;
    }

    .attach-option-hint {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 400;
    }

    /* Image preview */
    /* Container para múltiplas imagens */
    .images-preview-container {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 8px;
      max-width: 100%;
    }

    .image-preview {
      position: relative;
      display: inline-block;
      border-radius: var(--radius-sm);
      overflow: hidden;
      max-width: 100px;
      flex-shrink: 0;
    }

    .image-preview img {
      width: 80px;
      height: 60px;
      object-fit: cover;
      border-radius: var(--radius-sm);
      display: block;
    }

    .image-preview-remove {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 20px;
      height: 20px;
      background: rgba(0, 0, 0, 0.7);
      border: none;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
    }

    .image-preview-remove:hover {
      background: #dc3545;
    }

    .image-preview-remove svg {
      width: 14px;
      height: 14px;
    }

    /* Microphone/Voice button */
    .mic-btn,
    .voice-btn {
      width: 40px;
      height: 40px;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
    }

    .mic-btn:hover,
    .voice-btn:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
    }

    .mic-btn.recording,
    .voice-btn.recording {
      background: #dc3545;
      border-color: #dc3545;
      color: white;
      animation: pulse-recording 1.5s infinite;
    }

    .mic-btn.recording:hover,
    .voice-btn.recording:hover {
      background: #c82333;
      border-color: #c82333;
    }

    .mic-btn svg,
    .voice-btn svg {
      width: 18px;
      height: 18px;
    }

    .mic-btn.recording .mic-icon {
      display: none;
    }

    .mic-btn.recording .mic-stop-icon {
      display: block !important;
    }

    @keyframes pulse-recording {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    /* Voice indicator */
    .voice-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: var(--accent-bg);
      border-radius: var(--radius-sm);
      margin-top: 8px;
      font-size: 13px;
      color: var(--accent-dark);
    }

    .voice-pulse {
      width: 10px;
      height: 10px;
      background: #dc3545;
      border-radius: 50%;
      animation: voice-pulse 1s infinite;
    }

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

    /* Hide mic button if not supported */
    .mic-btn.hidden,
    .voice-mode-btn.hidden {
      display: none;
    }

    /* Voice Mode Button - diferente do ditar */
    .voice-mode-btn {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border: none;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
      box-shadow: 0 2px 8px var(--accent-glow);
    }

    .voice-mode-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 16px var(--accent-glow);
    }

    .voice-mode-btn.active {
      background: #dc3545;
      animation: pulse-recording 1.5s infinite;
    }

    .voice-mode-btn svg {
      width: 18px;
      height: 18px;
    }

    .voice-mode-btn.active .voice-icon {
      display: none;
    }

    .voice-mode-btn.active .voice-stop-icon {
      display: block !important;
    }

    /* Voice Status Toast */
    .voice-toast {
      position: fixed;
      top: 80px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 12px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: var(--shadow-lg);
      z-index: 9999;
      animation: toast-in 0.3s ease;
      max-width: 90%;
    }

    .voice-toast.hiding {
      animation: toast-out 0.3s ease forwards;
    }

    @keyframes toast-in {
      from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    @keyframes toast-out {
      from { opacity: 1; transform: translateX(-50%) translateY(0); }
      to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    }

    .voice-toast-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .voice-toast-icon.recording {
      background: #dc3545;
      animation: pulse-recording 1.5s infinite;
    }

    .voice-toast-icon.recording::after {
      content: '';
      width: 8px;
      height: 8px;
      background: white;
      border-radius: 50%;
    }

    .voice-toast-icon.processing {
      background: var(--accent-dark);
    }

    .voice-toast-icon.processing::after {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid white;
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    .voice-toast-icon.success {
      background: #28a745;
      color: white;
    }

    .voice-toast-icon.success svg {
      width: 14px;
      height: 14px;
    }

    .voice-toast-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .voice-toast-title {
      font-weight: 600;
      font-size: 14px;
      color: var(--text);
    }

    .voice-toast-subtitle {
      font-size: 12px;
      color: var(--text-muted);
    }

    .voice-toast-close {
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
      margin-left: auto;
    }

    .voice-toast-close:hover {
      color: var(--text);
    }

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

    /* ============================================ */
    /* IMMERSIVE VOICE MODE OVERLAY                 */
    /* ============================================ */
    .voice-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      z-index: 10000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .voice-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .voice-overlay-header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .voice-overlay-cancel {
      background: rgba(255,255,255,0.1);
      border: none;
      color: white;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
    }

    .voice-overlay-cancel:hover {
      background: rgba(255,255,255,0.2);
    }

    .voice-overlay-cancel svg {
      width: 24px;
      height: 24px;
    }

    .voice-overlay-timer {
      font-size: 18px;
      color: rgba(255,255,255,0.8);
      font-weight: 500;
      font-family: monospace;
    }

    .voice-overlay-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 40px;
      flex: 1;
      width: 100%;
      padding: 20px;
    }

    .voice-overlay-status {
      font-size: 20px;
      color: white;
      font-weight: 500;
      text-align: center;
    }

    /* Waveform Animation */
    .voice-waveform {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      height: 120px;
    }

    .voice-waveform-bar {
      width: 6px;
      background: linear-gradient(to top, #667eea, #764ba2);
      border-radius: 3px;
      animation: waveform-idle 1.5s ease-in-out infinite;
    }

    .voice-waveform-bar:nth-child(1) { height: 30px; animation-delay: 0s; }
    .voice-waveform-bar:nth-child(2) { height: 50px; animation-delay: 0.1s; }
    .voice-waveform-bar:nth-child(3) { height: 70px; animation-delay: 0.2s; }
    .voice-waveform-bar:nth-child(4) { height: 90px; animation-delay: 0.3s; }
    .voice-waveform-bar:nth-child(5) { height: 100px; animation-delay: 0.4s; }
    .voice-waveform-bar:nth-child(6) { height: 90px; animation-delay: 0.5s; }
    .voice-waveform-bar:nth-child(7) { height: 70px; animation-delay: 0.6s; }
    .voice-waveform-bar:nth-child(8) { height: 50px; animation-delay: 0.7s; }
    .voice-waveform-bar:nth-child(9) { height: 30px; animation-delay: 0.8s; }

    .voice-overlay.recording .voice-waveform-bar {
      /* Animação controlada pelo JavaScript VAD */
      animation: none;
      transition: height 0.1s ease-out;
    }

    .voice-overlay.processing .voice-waveform-bar {
      animation: waveform-processing 0.8s ease-in-out infinite;
    }

    .voice-overlay.playing .voice-waveform-bar {
      animation: waveform-playing 0.4s ease-in-out infinite alternate;
    }

    @keyframes waveform-idle {
      0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
      50% { transform: scaleY(0.6); opacity: 0.7; }
    }

    @keyframes waveform-active {
      0% { transform: scaleY(0.3); }
      100% { transform: scaleY(1); }
    }

    @keyframes waveform-processing {
      0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
      50% { transform: scaleY(0.8); opacity: 1; }
    }

    @keyframes waveform-playing {
      0% { transform: scaleY(0.4); background: linear-gradient(to top, #28a745, #20c997); }
      100% { transform: scaleY(1); background: linear-gradient(to top, #20c997, #28a745); }
    }

    /* Pulse Circle (alternative to waveform) */
    .voice-pulse-container {
      position: relative;
      width: 180px;
      height: 180px;
      display: none;
    }

    .voice-overlay.recording .voice-pulse-container {
      display: flex;
    }

    .voice-overlay.recording .voice-waveform {
      display: flex;
    }

    .voice-pulse {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea, #764ba2);
      animation: voice-pulse 2s ease-in-out infinite;
    }

    .voice-pulse::before,
    .voice-pulse::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      border: 2px solid rgba(102, 126, 234, 0.5);
    }

    .voice-pulse::before {
      width: 130px;
      height: 130px;
      animation: pulse-ring 2s ease-out infinite;
    }

    .voice-pulse::after {
      width: 160px;
      height: 160px;
      animation: pulse-ring 2s ease-out infinite 0.5s;
    }

    @keyframes voice-pulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); }
      50% { transform: translate(-50%, -50%) scale(1.1); }
    }

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

    /* Transcription Display */
    .voice-transcription {
      max-width: 80%;
      text-align: center;
      color: rgba(255,255,255,0.9);
      font-size: 18px;
      line-height: 1.6;
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .voice-transcription.user-text {
      font-style: italic;
      color: rgba(255,255,255,0.7);
    }

    .voice-transcription.ai-text {
      color: white;
      font-weight: 500;
    }

    .voice-transcription.hint {
      font-size: 14px;
      color: rgba(255,255,255,0.5);
      font-style: italic;
    }

    /* Voice Action Buttons */
    .voice-overlay-actions {
      position: absolute;
      bottom: 40px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 40px;
      padding: 20px;
    }

    .voice-action-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: none;
      border: none;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .voice-action-btn:hover {
      transform: scale(1.1);
    }

    .voice-action-btn:active {
      transform: scale(0.95);
    }

    .voice-action-btn .btn-circle {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .voice-action-btn .btn-circle svg {
      width: 28px;
      height: 28px;
    }

    .voice-action-btn .btn-label {
      font-size: 14px;
      color: rgba(255,255,255,0.8);
    }

    .voice-action-btn.cancel .btn-circle {
      background: rgba(255,255,255,0.15);
      color: white;
    }

    .voice-action-btn.cancel:hover .btn-circle {
      background: rgba(255,255,255,0.25);
    }

    .voice-action-btn.send .btn-circle {
      background: #dc3545;
      color: white;
    }

    .voice-action-btn.send:hover .btn-circle {
      background: #c82333;
    }

    .voice-action-btn.send.disabled {
      opacity: 0.5;
      pointer-events: none;
    }

    /* Processing State */
    .voice-overlay.processing .voice-action-btn.send .btn-circle {
      background: var(--accent-dark);
      animation: pulse-btn 1s infinite;
    }

    @keyframes pulse-btn {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }

    @keyframes pulse-glow {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
      }
      50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
      }
    }

    /* Mobile Adjustments */
    @media (max-width: 480px) {
      .voice-overlay-status {
        font-size: 18px;
      }

      .voice-waveform-bar {
        width: 5px;
        gap: 4px;
      }

      .voice-transcription {
        font-size: 16px;
        max-width: 90%;
      }

      .voice-action-btn .btn-circle {
        width: 56px;
        height: 56px;
      }

      .voice-action-btn .btn-circle svg {
        width: 24px;
        height: 24px;
      }

      .input-hint {
        font-size: 9px;
      }
    }

    .input-hint {
      text-align: center;
      margin-top: 12px;
      font-size: 12px;
      color: var(--text-muted);
    }

    /* ============================================
       MOBILE OVERLAY
    ============================================ */
    .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3);
      z-index: 998;
    }

    /* ============================================
       RESPONSIVE - MOBILE
    ============================================ */
    @media (max-width: 768px) {
      /* Hide sidebar by default on mobile */
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px !important;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .sidebar-overlay.open {
        display: block;
      }

      /* Hide sidebar toggle button on mobile - use menu button instead */
      .sidebar-toggle {
        display: none;
      }

      /* Main content takes full width */
      .main {
        margin-left: 0 !important;
        width: 100% !important;
      }

      .menu-btn {
        display: flex !important;
      }

      .header-text {
        display: none;
      }

      /* Header upgrade button - smaller on mobile */
      .header-center {
        position: static;
        transform: none;
        flex: 1;
        display: flex;
        justify-content: center;
      }

      .header-upgrade-btn {
        padding: 4px 10px;
        font-size: 11px;
      }

      .header-upgrade-btn svg {
        width: 11px;
        height: 11px;
      }

      /* Hide header right buttons on small screens */
      .header-right {
        display: none;
      }

      .chat-messages {
        padding: 12px;
      }

      .message {
        padding: 12px 0;
      }

      .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
        flex-shrink: 0;
      }

      .message-content {
        font-size: 14px;
        line-height: 1.5;
      }

      /* Welcome screen mobile */
      .welcome-screen {
        padding: 20px 16px;
      }

      .welcome-logo {
        height: 50px;
        margin-bottom: 12px;
      }

      .header-logo {
        height: 28px;
      }

      .welcome-title {
        font-size: 18px;
        margin-bottom: 8px;
      }

      .welcome-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 10px;
      }

      .welcome-content {
        max-width: none;
        padding: 0 8px;
      }

      /* Verse Card Mobile */
      .verse-card {
        min-height: 140px;
        margin-bottom: 16px;
        border-radius: 12px;
      }

      .verse-card-content {
        padding: 16px;
      }

      .verse-card-reference {
        font-size: 11px;
        margin-bottom: 8px;
      }

      .verse-card-text {
        font-size: 16px;
        line-height: 1.4;
        -webkit-line-clamp: 4;
      }

      .verse-card-hint {
        font-size: 9px;
        margin-top: 10px;
      }

      /* Verse Modal Mobile */
      .verse-modal-header {
        padding: 16px;
      }

      .verse-modal-close {
        width: 36px;
        height: 36px;
      }

      .verse-modal-content {
        padding: 24px 20px;
      }

      .verse-modal-reference {
        font-size: 14px;
        margin-bottom: 16px;
      }

      .verse-modal-text {
        font-size: 18px;
        line-height: 1.6;
      }

      .verse-modal-actions {
        padding: 16px;
        gap: 12px;
      }

      .verse-modal-btn {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 120px;
      }

      .quick-prompts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .quick-prompt {
        padding: 10px;
        gap: 10px;
      }

      .quick-prompt-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
      }

      .quick-prompt-icon svg {
        width: 16px;
        height: 16px;
      }

      .quick-prompt-title {
        font-size: 12px;
      }

      .quick-prompt-desc {
        font-size: 10px;
      }

      /* Input area mobile - estilo similar ao ChatGPT */
      .input-area {
        padding: 12px 16px 16px;
      }

      .input-container {
        padding: 0;
      }

      .input-wrapper {
        padding: 6px 8px;
        gap: 8px;
        border-radius: 28px;
      }

      .input-field {
        font-size: 16px;
        padding: 10px 4px;
        min-height: 28px;
      }

      .input-field::placeholder {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .attach-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
      }

      .attach-btn svg {
        width: 18px;
        height: 18px;
      }

      .voice-btn,
      .voice-mode-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
      }

      .voice-btn svg,
      .voice-mode-btn svg {
        width: 18px;
        height: 18px;
      }

      .send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
      }

      .send-btn svg {
        width: 16px;
        height: 16px;
      }

      .chat-disclaimer {
        font-size: 9px;
        padding: 4px 8px;
      }

      /* User profile in sidebar footer */
      .user-profile {
        padding: 8px 10px;
        gap: 8px;
      }

      .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
      }

      .user-name {
        font-size: 13px;
      }

      .user-plan {
        font-size: 11px;
      }

      .sidebar-upgrade-btn {
        padding: 3px 8px;
        font-size: 10px;
      }

      .chevron {
        width: 14px;
        height: 14px;
      }

      /* Conversation list */
      .conversation-item {
        padding: 10px 12px;
        font-size: 13px;
      }

      /* Upgrade modal mobile */
      .upgrade-modal {
        padding: 0;
        align-items: flex-end;
      }

      .upgrade-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
      }

      .upgrade-header {
        padding: 20px 16px;
      }

      .upgrade-header h2 {
        font-size: 20px;
      }

      .upgrade-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
      }

      .upgrade-icon svg {
        width: 24px;
        height: 24px;
      }

      .upgrade-content {
        padding: 16px;
      }

      .upgrade-price .price {
        font-size: 36px;
      }

      .upgrade-price .price span {
        font-size: 16px;
      }

      .upgrade-price {
        margin-bottom: 16px;
        padding-bottom: 16px;
      }

      .upgrade-features {
        margin-bottom: 16px;
      }

      .upgrade-features h3 {
        font-size: 12px;
        margin-bottom: 12px;
      }

      .feature-item {
        margin-bottom: 10px;
        gap: 10px;
      }

      .feature-check {
        width: 18px;
        height: 18px;
      }

      .feature-check svg {
        width: 10px;
        height: 10px;
      }

      .feature-text strong {
        font-size: 13px;
      }

      .feature-text p {
        font-size: 11px;
      }

      .upgrade-btn {
        padding: 12px 20px;
        font-size: 14px;
      }

      .upgrade-footer {
        padding: 12px 16px;
        font-size: 10px;
      }
    }

    /* Extra small screens (phones) */
    @media (max-width: 480px) {
      .sidebar {
        width: 85vw !important;
        max-width: 280px;
      }

      .welcome-title {
        font-size: 16px;
      }

      .welcome-subtitle {
        font-size: 12px;
      }

      .welcome-content {
        padding: 0 4px;
      }

      /* Verse Card Extra Small */
      .verse-card {
        min-height: 120px;
        margin-bottom: 12px;
      }

      .verse-card-content {
        padding: 14px 12px;
      }

      .verse-card-reference {
        font-size: 10px;
      }

      .verse-card-text {
        font-size: 15px;
        -webkit-line-clamp: 3;
      }

      .verse-card-hint {
        font-size: 8px;
        margin-top: 8px;
      }

      /* Verse Modal Extra Small */
      .verse-modal-content {
        padding: 20px 16px;
      }

      .verse-modal-text {
        font-size: 16px;
      }

      .verse-modal-actions {
        flex-direction: column;
        padding: 12px;
      }

      .verse-modal-btn {
        width: 100%;
        justify-content: center;
      }

      .quick-prompts {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
      }

      .quick-prompt {
        padding: 10px 12px;
        gap: 8px;
      }

      .quick-prompt-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 6px;
      }

      .quick-prompt-icon svg {
        width: 14px;
        height: 14px;
      }

      .header-upgrade-btn {
        padding: 3px 8px;
        font-size: 10px;
        gap: 4px;
      }

      .header-upgrade-btn svg {
        width: 10px;
        height: 10px;
      }
    }

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

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--text-muted);
    }

    /* ============================================
       AUTH MODAL - LIGHT THEME
    ============================================ */
    .auth-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 20px 0;
    }

    .auth-container {
      width: 100%;
      max-width: 400px;
      padding: 32px 24px;
      padding-bottom: 40px;
      text-align: center;
      min-height: min-content;
    }

    .auth-header {
      margin-bottom: 32px;
    }

    .auth-logo {
      width: 100%;
      max-width: 72px;
      margin: 0 auto 24px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .auth-logo img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 20px;
    }

    .auth-header h1 {
      font-size: 28px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 8px;
    }

    .auth-header p {
      color: #666666;
      font-size: 15px;
      line-height: 1.5;
    }

    /* Social Login Buttons */
    .social-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 20px;
    }

    .social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      padding: 14px 20px;
      background: #ffffff;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      color: #1f2937;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
    }

    .social-btn:hover {
      background: #f9fafb;
      border-color: #9ca3af;
    }

    .social-btn svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    /* Divider */
    .auth-divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 24px 0;
      color: #9ca3af;
      font-size: 13px;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #e5e7eb;
    }

    /* Email Form */
    .email-form {
      margin-bottom: 20px;
    }

    .email-input-group {
      display: flex;
      gap: 8px;
    }

    .email-input-group input {
      flex: 1;
      padding: 14px 16px;
      background: #ffffff;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      color: #1f2937;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .email-input-group input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-glow);
    }

    .email-input-group input::placeholder {
      color: #9ca3af;
    }

    .continue-btn {
      padding: 14px 24px;
      background: var(--accent-dark);
      border: none;
      border-radius: 8px;
      color: white;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
      white-space: nowrap;
    }

    .continue-btn:hover {
      background: var(--accent-dark);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px var(--accent-glow);
    }

    /* Terms */
    .auth-terms {
      margin-top: 32px;
      font-size: 12px;
      color: #9ca3af;
      line-height: 1.6;
    }

    .auth-terms a {
      color: #6e7681;
      text-decoration: underline;
    }

    .auth-terms a:hover {
      color: var(--accent);
    }

    /* Hidden forms */
    .auth-form-hidden {
      display: none;
    }

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

    .back-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      background: transparent;
      border: none;
      color: #6e7681;
      font-size: 14px;
      cursor: pointer;
      margin-bottom: 24px;
      font-family: inherit;
    }

    .back-btn:hover {
      color: var(--accent);
    }

    .back-btn svg {
      width: 16px;
      height: 16px;
    }

    .form-group {
      margin-bottom: 16px;
      text-align: left;
    }

    .form-group label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #374151;
      margin-bottom: 6px;
    }

    .form-group input {
      width: 100%;
      padding: 12px 14px;
      background: #ffffff;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      color: #1f2937;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-glow);
    }

    .form-group input::placeholder {
      color: #9ca3af;
    }

    /* Password field with toggle */
    .password-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .password-wrapper input {
      padding-right: 44px;
    }

    .password-toggle {
      position: absolute;
      right: 12px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #9ca3af;
      transition: color 0.2s;
    }

    .password-toggle:hover {
      color: #6b7280;
    }

    .password-toggle svg {
      width: 20px;
      height: 20px;
    }

    /* Health Disclaimer */
    .health-disclaimer {
      background: rgba(231, 76, 60, 0.08);
      border: 1px solid rgba(231, 76, 60, 0.2);
      border-radius: 8px;
      padding: 12px;
      margin: 16px 0;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .health-disclaimer .disclaimer-icon {
      font-size: 18px;
      flex-shrink: 0;
    }

    .health-disclaimer p {
      font-size: 12px;
      color: #666;
      line-height: 1.5;
      margin: 0;
      text-align: left;
    }

    .health-disclaimer strong {
      color: #333;
    }

    /* Terms Checkbox */
    .terms-checkbox {
      margin: 16px 0;
    }

    .checkbox-container {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      cursor: pointer;
      font-size: 13px;
      line-height: 1.4;
    }

    .checkbox-container input[type="checkbox"] {
      display: none;
    }

    .checkbox-container .checkmark {
      width: 18px;
      height: 18px;
      border: 2px solid #d1d5db;
      border-radius: 4px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      margin-top: 2px;
    }

    .checkbox-container input[type="checkbox"]:checked + .checkmark {
      background: var(--accent-dark);
      border-color: var(--accent);
    }

    .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
      content: '';
      width: 5px;
      height: 9px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    .checkbox-text {
      color: #666;
    }

    .checkbox-text a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
    }

    .checkbox-text a:hover {
      text-decoration: underline;
    }

    .auth-btn {
      width: 100%;
      padding: 14px;
      background: var(--accent-dark);
      border: none;
      border-radius: 8px;
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 8px;
      font-family: inherit;
    }

    .auth-btn:hover {
      background: var(--accent-dark);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px var(--accent-glow);
    }

    .auth-link {
      margin-top: 16px;
      font-size: 14px;
      color: #6e7681;
    }

    .auth-link button {
      background: none;
      border: none;
      color: var(--accent);
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      font-size: 14px;
    }

    .auth-link button:hover {
      text-decoration: underline;
    }

    .login-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: -4px 0 16px 0;
    }

    .remember-me {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-size: 13px;
      color: #666;
    }

    .remember-me input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .forgot-link {
      background: none;
      border: none;
      color: var(--accent);
      font-size: 13px;
      cursor: pointer;
      font-family: inherit;
    }

    .forgot-link:hover {
      text-decoration: underline;
    }

    .success-icon {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, #22c55e, #16a34a);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .success-icon svg {
      width: 32px;
      height: 32px;
      color: white;
      stroke: white;
    }

    /* Welcome buttons (Entrar / Cadastrar) */
    .welcome-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: 320px;
      margin: 24px auto 0;
    }

    .auth-btn.primary {
      background: #1a1a1a;
      color: white;
    }

    .auth-btn.primary:hover {
      background: #333;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .auth-btn.primary:disabled {
      background: #ccc;
      color: #888;
      cursor: not-allowed;
      box-shadow: none;
    }

    .auth-btn.primary:disabled:hover {
      background: #ccc;
      box-shadow: none;
    }

    .auth-btn.secondary {
      background: white;
      color: #1a1a1a;
      border: 1px solid #d0d0d0;
    }

    .auth-btn.secondary:hover {
      background: #f5f5f5;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Close button */
    .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      cursor: pointer;
      color: #666;
      border-radius: 50%;
      transition: all 0.2s;
    }

    .close-btn:hover {
      background: #f0f0f0;
      color: #333;
    }

    .close-btn svg {
      width: 20px;
      height: 20px;
    }

    /* Full width email input */
    .email-input-full {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #d0d0d0;
      border-radius: 8px;
      font-size: 15px;
      font-family: inherit;
      margin-bottom: 12px;
      transition: border-color 0.2s;
    }

    .email-input-full:focus {
      outline: none;
      border-color: #1a1a1a;
    }

    /* Field error message */
    .field-error {
      display: block;
      color: #dc3545;
      font-size: 12px;
      margin-top: 4px;
    }

    /* Confirm Modal (Logout) */
    .confirm-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
    }

    .confirm-modal.active {
      display: flex;
    }

    .confirm-container {
      background: white;
      border-radius: 16px;
      padding: 32px;
      max-width: 360px;
      width: 100%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .confirm-container h2 {
      font-size: 20px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 12px;
    }

    .confirm-container p {
      font-size: 14px;
      color: #666;
      margin-bottom: 24px;
    }

    .confirm-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .confirm-btn {
      width: 100%;
      padding: 12px;
      border-radius: 24px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }

    .confirm-btn.primary {
      background: #1a1a1a;
      color: white;
      border: none;
    }

    .confirm-btn.primary:hover {
      background: #333;
    }

    .confirm-btn.secondary {
      background: white;
      color: #1a1a1a;
      border: 1px solid #d0d0d0;
    }

    .confirm-btn.secondary:hover {
      background: #f5f5f5;
    }

    /* Mobile responsive for auth */
    @media (max-width: 768px) {
      .auth-modal {
        align-items: flex-start;
        padding: 0;
      }

      .auth-container {
        padding: 24px 20px;
        padding-bottom: 40px;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
      }

      .auth-header {
        margin-bottom: 28px;
      }

      .auth-header h1 {
        font-size: 24px;
      }

      .auth-header p {
        font-size: 15px;
        padding: 0 8px;
      }

      .auth-logo {
        max-width: 64px;
        margin-bottom: 20px;
      }

      .social-buttons {
        gap: 10px;
      }

      .social-btn {
        padding: 14px 16px;
        font-size: 15px;
      }

      .email-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .email-input-full {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
      }

      .auth-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
      }

      .auth-divider {
        margin: 20px 0;
      }

      .form-group input {
        padding: 14px;
        font-size: 16px;
      }

      .health-disclaimer {
        padding: 14px;
        font-size: 13px;
      }

      .terms-checkbox {
        font-size: 14px;
      }

      .welcome-buttons {
        gap: 12px;
      }

      .back-btn {
        margin-bottom: 8px;
      }
    }

    @media (max-width: 380px) {
      .auth-container {
        padding: 20px 16px;
      }

      .auth-header h1 {
        font-size: 22px;
      }

      .auth-header p {
        font-size: 14px;
      }

      .social-btn {
        padding: 12px 14px;
        font-size: 14px;
      }

      .auth-btn {
        padding: 12px 16px;
        font-size: 15px;
      }
    }

    /* ============================================
       UPGRADE MODAL
    ============================================ */
    .upgrade-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

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

    .upgrade-container {
      background: white;
      border-radius: 20px;
      max-width: 480px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      transform: scale(0.9) translateY(20px);
      transition: transform 0.3s ease;
    }

    .upgrade-modal.active .upgrade-container {
      transform: scale(1) translateY(0);
    }

    .upgrade-header {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      padding: 32px 24px;
      text-align: center;
      color: white;
      position: relative;
    }

    .upgrade-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .upgrade-close:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .upgrade-close svg {
      width: 18px;
      height: 18px;
    }

    .upgrade-icon {
      width: 64px;
      height: 64px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
    }

    .upgrade-icon svg {
      width: 32px;
      height: 32px;
    }

    .upgrade-header h2 {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .upgrade-header p {
      font-size: 14px;
      opacity: 0.9;
    }

    .upgrade-content {
      padding: 24px;
    }

    .upgrade-price {
      text-align: center;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border);
    }

    .upgrade-price .price {
      font-size: 48px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .upgrade-price .price span {
      font-size: 18px;
      font-weight: 400;
      color: var(--text-secondary);
    }

    .upgrade-price .period {
      font-size: 14px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .upgrade-features {
      margin-bottom: 24px;
    }

    .upgrade-features h3 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 16px;
    }

    .feature-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 14px;
    }

    .feature-check {
      width: 20px;
      height: 20px;
      background: #dcfce7;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .feature-check svg {
      width: 12px;
      height: 12px;
      color: #16a34a;
    }

    .feature-text {
      flex: 1;
    }

    .feature-text strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 2px;
    }

    .feature-text span {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .upgrade-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border: none;
      border-radius: 12px;
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-bottom: 12px;
    }

    .upgrade-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px var(--accent-glow);
    }

    .upgrade-trial {
      text-align: center;
      font-size: 13px;
      color: var(--text-muted);
    }

    .upgrade-trial strong {
      color: var(--text-secondary);
    }

    .upgrade-footer {
      padding: 16px 24px;
      background: var(--bg-secondary);
      border-top: 1px solid var(--border);
      text-align: center;
    }

    .upgrade-footer p {
      font-size: 12px;
      color: var(--text-muted);
    }

    .upgrade-footer a {
      color: var(--accent);
      text-decoration: none;
    }

    .upgrade-footer a:hover {
      text-decoration: underline;
    }

    @media (max-width: 480px) {
      .upgrade-modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
      }

      .upgrade-container {
        max-height: none;
        border-radius: 16px;
        margin: 20px 0;
      }

      .upgrade-header {
        padding: 24px 20px;
      }

      .upgrade-header h2 {
        font-size: 20px;
      }

      .upgrade-price .price {
        font-size: 40px;
      }

      .upgrade-content {
        padding: 20px;
      }

      .upgrade-footer {
        padding: 16px 20px;
      }
    }

    /* Toast animations */
    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    @keyframes toastOut {
      from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
      to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }
    }

    /* ============================================
       BIBLE READER - STYLES
    ============================================ */

    /* Bible Navigation Button in Sidebar */
    .bible-nav-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      margin-top: 8px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-nav-btn:hover {
      background: var(--bg-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    .bible-nav-btn svg {
      width: 18px;
      height: 18px;
      stroke: #B45309;  /* Amber-700 - cor dourada/marrom de Bíblia */
    }

    .bible-nav-btn:hover svg {
      stroke: var(--accent);
    }

    /* Bible Screen Container */
    .bible-screen {
      display: none;
      flex-direction: column;
      height: 100%;
      background: var(--bg-chat);
    }

    .bible-screen.active {
      display: flex;
    }

    /* ============================================
       DEVOCIONAL — tela de leitura do dia
       Usa os tokens do app (claro/escuro). Serif Newsreader no versiculo
       para separar a Palavra do texto de interface, como na landing.
    ============================================ */
    .dev-screen { display: none; flex-direction: column; height: 100%; background: var(--bg-chat); }
    .dev-screen.active { display: flex; }

    .dev-header {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 16px; background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
    }
    .dev-back-btn {
      display: flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; flex-shrink: 0;
      background: transparent; border: none; border-radius: var(--radius-sm);
      color: var(--text-primary); cursor: pointer;
      transition: background 150ms var(--lp-ease-hover);
    }
    .dev-back-btn:hover { background: var(--bg-hover); }
    .dev-back-btn svg { width: 20px; height: 20px; }
    .dev-header-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
    .dev-header-date { font-size: 13px; color: var(--text-muted); margin-left: auto; }

    .dev-body { flex: 1; overflow-y: auto; padding: 28px 20px 56px; -webkit-overflow-scrolling: touch; }
    .dev-inner { max-width: 620px; margin: 0 auto; }

    .dev-note {
      font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--accent-dark); margin-bottom: 18px;
    }

    .dev-verse {
      font-family: 'Newsreader', Georgia, serif;
      font-size: 25px; line-height: 1.4; font-weight: 500;
      color: var(--text-primary); margin: 0 0 12px;
    }
    .dev-ref {
      font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
      color: var(--accent-dark); margin-bottom: 32px;
    }

    .dev-section-label {
      font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-muted); margin: 0 0 10px;
    }
    .dev-text { font-size: 17px; line-height: 1.72; color: var(--text-secondary); margin: 0 0 32px; white-space: pre-wrap; }

    .dev-prayer {
      border-left: 2px solid var(--gold);
      padding: 4px 0 4px 18px; margin: 0 0 36px;
    }
    .dev-prayer .dev-text { margin: 0; font-style: italic; color: var(--text-secondary); }

    .dev-actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .dev-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 11px 18px; border-radius: 999px;
      font-family: inherit; font-size: 14px; font-weight: 600;
      cursor: pointer; transition: background 150ms var(--lp-ease-hover), border-color 150ms var(--lp-ease-hover), color 150ms var(--lp-ease-hover);
    }
    .dev-btn svg { width: 16px; height: 16px; }
    .dev-btn-primary { background: var(--accent-dark); border: 1px solid var(--accent); color: #fff; }
    .dev-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
    .dev-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
    .dev-btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
    .dev-btn[disabled] { opacity: 0.55; cursor: default; }

    .dev-loading { padding: 8px 0; }
    .dev-skel { background: var(--bg-tertiary); border-radius: 6px; opacity: 0.5; animation: devPulse 1.4s ease-in-out infinite; }
    @keyframes devPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.65; } }
    .dev-loading-msg { font-size: 14px; color: var(--text-muted); margin-top: 22px; }

    .dev-error { font-size: 16px; color: var(--text-secondary); margin-bottom: 18px; }

    @media (max-width: 640px) {
      .dev-body { padding: 22px 18px 48px; }
      .dev-verse { font-size: 22px; }
      .dev-text { font-size: 16px; }
      .dev-actions .dev-btn { flex: 1 1 auto; justify-content: center; }
    }

    .dev-nav-btn svg { stroke: var(--gold-dark); }
    .pray-nav-btn svg { stroke: #7C6BB0; }
    /* ============================================
       ORACAO — pedidos guardados e respondidos
       Reusa a estrutura de tela do Devocional; o que muda e a lista.
    ============================================ */
    .pray-actions-top { margin-bottom: 26px; }

    .pray-form {
      display: none;
      border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 20px; margin-bottom: 28px; background: var(--bg-input);
    }
    .pray-form.open { display: block; }
    .pray-field { margin-bottom: 16px; }
    .pray-label {
      display: block; font-size: 13px; font-weight: 600;
      color: var(--text-secondary); margin-bottom: 7px;
    }
    .pray-input, .pray-textarea {
      width: 100%; box-sizing: border-box;
      padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
      background: var(--bg-primary); color: var(--text-primary);
      font-family: inherit; font-size: 15px; line-height: 1.5;
      transition: border-color 150ms var(--lp-ease-hover);
    }
    .pray-input:focus, .pray-textarea:focus { outline: none; border-color: var(--accent); }
    .pray-textarea { resize: vertical; min-height: 84px; }

    .pray-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .pray-chip {
      padding: 7px 14px; border-radius: 999px;
      border: 1px solid var(--border); background: transparent;
      color: var(--text-secondary); font-family: inherit; font-size: 13px; font-weight: 500;
      cursor: pointer; transition: all 150ms var(--lp-ease-hover);
    }
    .pray-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
    .pray-chip.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-dark); }

    .pray-form-actions { display: flex; gap: 10px; margin-top: 20px; }

    .pray-group { margin-bottom: 40px; }
    .pray-group-title {
      font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--text-muted); margin: 0 0 14px;
    }

    .pray-card {
      border: 1px solid var(--border); border-radius: var(--radius-md);
      padding: 17px 18px; margin-bottom: 12px; background: var(--bg-input);
    }
    .pray-card.answered { border-left: 2px solid var(--gold); }
    .pray-card-top { display: flex; align-items: baseline; gap: 12px; }
    .pray-card-title {
      font-size: 16px; font-weight: 600; color: var(--text-primary);
      margin: 0; flex: 1; line-height: 1.4;
    }
    .pray-card-age { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
    .pray-card-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 9px 0 0; white-space: pre-wrap; }
    .pray-card-cat {
      display: inline-block; margin-top: 11px; padding: 3px 10px; border-radius: 999px;
      background: var(--bg-tertiary); color: var(--text-secondary);
      font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    }
    .pray-card-testimony {
      margin: 13px 0 0; padding-left: 14px; border-left: 2px solid var(--border-light);
      font-size: 14px; line-height: 1.65; color: var(--text-secondary); font-style: italic;
      white-space: pre-wrap;
    }
    .pray-card-actions { display: flex; gap: 14px; margin-top: 14px; }
    .pray-link {
      background: none; border: none; padding: 0;
      font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
      color: var(--accent-dark); transition: color 150ms var(--lp-ease-hover);
    }
    .pray-link:hover { color: var(--accent); }
    .pray-link.danger { color: var(--text-muted); }
    .pray-link.danger:hover { color: #B91C1C; }

    .pray-testimony-box { margin-top: 14px; }

    .pray-empty { padding: 8px 0 0; }
    .pray-empty-title { font-family: 'Newsreader', Georgia, serif; font-size: 21px; color: var(--text-primary); margin: 0 0 8px; }
    .pray-empty-body { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin: 0; max-width: 42ch; }

    @media (max-width: 640px) {
      .pray-card-top { flex-direction: column; gap: 4px; }
      .pray-form-actions .dev-btn { flex: 1 1 auto; justify-content: center; }
    }

    /* Bible Header */
    .bible-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
      gap: 12px;
    }

    .bible-header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .bible-back-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-back-btn:hover {
      background: var(--bg-hover);
      color: var(--accent);
    }

    .bible-back-btn svg {
      width: 20px;
      height: 20px;
    }

    .bible-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .bible-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .bible-action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-action-btn:hover {
      background: var(--bg-hover);
      color: var(--accent);
    }

    .bible-action-btn svg {
      width: 20px;
      height: 20px;
    }

    .bible-version-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-version-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .bible-version-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Bible Content Area */
    .bible-content {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      padding-bottom: 100px;
    }

    .bible-chapter-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .bible-book-name {
      font-size: 28px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .bible-chapter-number {
      font-size: 48px;
      font-weight: 400;
      color: var(--text-muted);
    }

    /* Bible Verses */
    .bible-verses {
      max-width: 680px;
      margin: 0 auto;
      line-height: 1.8;
    }

    .bible-verse {
      display: inline;
      cursor: pointer;
      transition: background 0.15s ease;
      border-radius: 4px;
      padding: 2px 0;
    }

    .bible-verse:hover {
      background: var(--accent-bg);
    }

    .bible-verse.selected {
      background: var(--accent-bg);
    }

    .bible-verse.bookmarked::after {
      content: '🔖';
      font-size: 12px;
      margin-left: 2px;
    }

    .bible-verse-number {
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
      vertical-align: super;
      margin-right: 4px;
      user-select: none;
    }

    .bible-verse-text {
      font-size: var(--bible-font-size, 18px);
      color: var(--text-primary);
    }

    /* Font Size Control */
    .bible-font-size-wrapper {
      position: relative;
    }

    .bible-font-control {
      display: none;
      position: absolute;
      top: 44px;
      right: 0;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 10px 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      z-index: 200;
      white-space: nowrap;
    }

    .bible-font-control.active {
      display: block;
    }

    .bible-font-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: block;
      margin-bottom: 8px;
    }

    .bible-font-options {
      display: flex;
      gap: 6px;
    }

    .bible-font-option {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
      padding: 0 8px;
      background: var(--bg-primary);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      font-family: inherit;
      font-weight: 500;
      transition: all var(--transition);
    }

    .bible-font-option:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .bible-font-option.active {
      background: var(--accent-dark);
      border-color: var(--accent);
      color: white;
    }

    /* Karaoke-style word highlighting during TTS playback */
    .bible-word {
      transition: background-color 0.15s ease, color 0.15s ease;
      border-radius: 3px;
      padding: 1px 2px;
      margin: 0 -1px;
    }

    .bible-word.speaking {
      background-color: #2563eb !important;
      color: white !important;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
      transform: scale(1.02);
    }

    .bible-word.spoken {
      color: #9ca3af !important;
    }

    /* Audio loading overlay */
    .bible-audio-loading {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.95);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 100;
      gap: 16px;
    }

    .bible-audio-loading-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid #e5e7eb;
      border-top-color: #2563eb;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    .bible-audio-loading-text {
      color: #4b5563;
      font-size: 16px;
      text-align: center;
    }

    .bible-audio-loading-subtext {
      color: #9ca3af;
      font-size: 13px;
      margin-top: -8px;
    }

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

    /* Highlight colors */
    .bible-verse.highlight-yellow {
      background: rgba(250, 204, 21, 0.3);
    }
    .bible-verse.highlight-green {
      background: rgba(34, 197, 94, 0.3);
    }
    .bible-verse.highlight-blue {
      background: rgba(59, 130, 246, 0.3);
    }
    .bible-verse.highlight-pink {
      background: rgba(236, 72, 153, 0.3);
    }
    .bible-verse.highlight-orange {
      background: rgba(249, 115, 22, 0.3);
    }

    /* Bible Footer Navigation */
    .bible-footer {
      position: fixed;
      bottom: 0;
      left: var(--sidebar-width);
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 12px 20px;
      background: var(--bg-secondary);
      border-top: 1px solid var(--border);
      z-index: 100;
    }

    .bible-nav-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 50%;
      color: var(--text-primary);
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-nav-arrow:hover:not(:disabled) {
      background: var(--bg-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    .bible-nav-arrow:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .bible-nav-arrow svg {
      width: 20px;
      height: 20px;
    }

    .bible-chapter-selector {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: var(--text-primary);
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-chapter-selector:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .bible-play-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: var(--accent-dark);
      border: none;
      border-radius: 50%;
      color: white;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-play-btn:hover {
      background: var(--accent-dark);
      transform: scale(1.05);
    }

    .bible-play-btn svg {
      width: 20px;
      height: 20px;
    }

    /* Book Picker Modal */
    .bible-picker-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      align-items: flex-end;
      justify-content: center;
    }

    .bible-picker-modal.active {
      display: flex;
    }

    .bible-picker {
      width: 100%;
      max-width: 500px;
      max-height: 85vh;
      background: var(--bg-primary);
      border-radius: var(--radius-xl) var(--radius-xl) 0 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }

    #booksTabContent,
    #myBibleTabContent {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    #myBibleTabContent {
      display: none;
    }

    #myBibleTabContent.active {
      display: flex;
    }

    @keyframes slideUp {
      from {
        transform: translateY(100%);
      }
      to {
        transform: translateY(0);
      }
    }

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

    .bible-picker-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .bible-picker-close {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
    }

    .bible-picker-close:hover {
      background: var(--bg-hover);
      color: var(--text-primary);
    }

    .bible-picker-close svg {
      width: 20px;
      height: 20px;
    }

    .bible-picker-search {
      padding: 12px 20px;
      border-bottom: 1px solid var(--border);
    }

    .bible-picker-search input {
      width: 100%;
      padding: 10px 14px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 14px;
    }

    .bible-picker-search input:focus {
      outline: none;
      border-color: var(--accent);
    }

    .bible-picker-search input::placeholder {
      color: var(--text-muted);
    }

    .bible-picker-content {
      flex: 1;
      overflow-y: auto;
      padding: 12px;
    }

    .bible-testament-title {
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .bible-book-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-book-item:hover {
      background: var(--bg-hover);
    }

    .bible-book-item.expanded {
      background: var(--bg-secondary);
    }

    .bible-book-name-item {
      font-size: 15px;
      font-weight: 500;
      color: var(--text-primary);
    }

    .bible-book-chapters {
      font-size: 12px;
      color: var(--text-muted);
    }

    .bible-chapter-grid {
      display: none;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
      padding: 12px 16px;
      background: var(--bg-secondary);
      border-radius: var(--radius-md);
      margin: 4px 0 8px 0;
    }

    .bible-book-item.expanded + .bible-chapter-grid {
      display: grid;
    }

    .bible-chapter-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-chapter-btn:hover {
      background: var(--accent-dark);
      border-color: var(--accent);
      color: white;
    }

    /* Verse Actions - Fixed Bottom Toolbar */
    .verse-actions-toolbar {
      display: none;
      position: fixed;
      bottom: 70px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 12px 16px;
      box-shadow: var(--shadow-lg);
      z-index: 500;
      animation: toolbarSlideUp 0.2s ease;
      flex-direction: row;
      align-items: center;
      gap: 12px;
    }

    .verse-actions-toolbar.active {
      display: flex;
    }

    @keyframes toolbarSlideUp {
      from { opacity: 0; transform: translateX(-50%) translateY(20px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    @media (max-width: 768px) {
      .verse-actions-toolbar {
        bottom: 90px;
        left: 12px;
        right: 12px;
        transform: none;
        flex-direction: column;
        padding: 12px;
        gap: 10px;
      }

      .verse-toolbar-colors {
        padding-right: 0 !important;
        border-right: none !important;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
        width: 100%;
        justify-content: center;
      }

      .verse-toolbar-actions {
        padding-left: 0 !important;
        width: 100%;
        justify-content: center;
      }
    }

    .verse-toolbar-colors {
      display: flex;
      align-items: center;
      gap: 8px;
      padding-right: 12px;
      border-right: 1px solid var(--border);
    }

    .verse-color-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }

    .verse-color-btn:hover {
      transform: scale(1.1);
    }

    .verse-color-btn.active {
      border-color: var(--text-primary);
      box-shadow: 0 0 0 2px var(--bg-primary);
    }

    .verse-color-btn.yellow { background: #FDE047; }
    .verse-color-btn.green { background: #4ADE80; }
    .verse-color-btn.blue { background: #60A5FA; }
    .verse-color-btn.pink { background: #F472B6; }
    .verse-color-btn.orange { background: #FB923C; }
    .verse-color-btn.remove {
      background: var(--bg-secondary);
      border: 2px dashed var(--border);
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .verse-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 2px;
      padding-left: 12px;
    }

    .verse-toolbar-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all var(--transition);
    }

    .verse-toolbar-btn:hover {
      background: var(--bg-hover);
      color: var(--accent);
    }

    .verse-toolbar-btn.active {
      color: var(--accent);
      background: var(--accent-bg);
    }

    .verse-toolbar-btn svg {
      width: 22px;
      height: 22px;
    }

    /* Note indicator on verse */
    .bible-verse.has-note::before {
      content: '📝';
      font-size: 10px;
      margin-right: 2px;
    }

    /* Note Modal */
    .note-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1100;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .note-modal.active {
      display: flex;
    }

    .note-modal-content {
      width: 100%;
      max-width: 400px;
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      animation: modalFadeIn 0.2s ease;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

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

    .note-modal-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .note-modal-close {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
    }

    .note-modal-close:hover {
      background: var(--bg-hover);
    }

    .note-modal-close svg {
      width: 20px;
      height: 20px;
    }

    .note-modal-body {
      padding: 20px;
    }

    .note-verse-ref {
      font-size: 14px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .note-textarea {
      width: 100%;
      min-height: 120px;
      padding: 12px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      resize: vertical;
    }

    .note-textarea:focus {
      outline: none;
      border-color: var(--accent);
    }

    .note-modal-footer {
      display: flex;
      gap: 12px;
      padding: 16px 20px;
      border-top: 1px solid var(--border);
    }

    .note-btn {
      flex: 1;
      padding: 12px 20px;
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

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

    .note-btn-cancel:hover {
      background: var(--bg-hover);
    }

    .note-btn-save {
      background: var(--accent-dark);
      border: none;
      color: white;
    }

    .note-btn-save:hover {
      background: var(--accent-dark);
    }

    .note-btn-delete {
      background: #EF4444;
      border: none;
      color: white;
    }

    .note-btn-delete:hover {
      background: #DC2626;
    }

    /* Minha Bíblia Tabs */
    .bible-picker-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
    }

    .bible-picker-tab {
      flex: 1;
      padding: 14px 16px;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all var(--transition);
    }

    .bible-picker-tab:hover {
      color: var(--text-primary);
      background: var(--bg-hover);
    }

    .bible-picker-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* My Bible Items */
    .my-bible-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background var(--transition);
    }

    .my-bible-item:hover {
      background: var(--bg-hover);
    }

    .my-bible-color {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-top: 6px;
      flex-shrink: 0;
    }

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

    .my-bible-ref {
      font-size: 14px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 4px;
    }

    .my-bible-text {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .my-bible-note {
      font-size: 12px;
      color: var(--text-muted);
      font-style: italic;
      margin-top: 6px;
      padding: 8px;
      background: var(--bg-secondary);
      border-radius: var(--radius-sm);
    }

    .my-bible-empty {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
    }

    .my-bible-empty-icon {
      font-size: 48px;
      margin-bottom: 12px;
    }

    /* Legacy verse-actions-sheet for backdrop */
    .verse-actions-sheet {
      display: none;
      position: fixed;
      inset: 0;
      background: transparent;
      z-index: 99;
    }

    .verse-actions-sheet.active {
      display: block;
    }

    .verse-action-btn svg {
      width: 24px;
      height: 24px;
    }

    /* Bible Search Modal */
    .bible-search-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--bg-primary);
      z-index: 1000;
      flex-direction: column;
    }

    .bible-search-modal.active {
      display: flex;
    }

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

    .bible-search-back {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: transparent;
      border: none;
      color: var(--text-primary);
      cursor: pointer;
    }

    .bible-search-back svg {
      width: 20px;
      height: 20px;
    }

    .bible-search-input-wrapper {
      flex: 1;
    }

    .bible-search-input {
      width: 100%;
      padding: 10px 14px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 15px;
    }

    .bible-search-input:focus {
      outline: none;
      border-color: var(--accent);
    }

    .bible-search-results {
      flex: 1;
      overflow-y: auto;
      padding: 12px;
    }

    .bible-search-item {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background var(--transition);
    }

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

    .bible-search-ref {
      font-size: 14px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 4px;
    }

    .bible-search-text {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .bible-search-text mark {
      background: var(--gold-light);
      color: var(--text-primary);
      padding: 0 2px;
      border-radius: 2px;
    }

    .bible-search-empty {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .bible-footer {
        left: 0;
      }

      .bible-content {
        padding: 16px;
        padding-bottom: 100px;
      }

      .bible-book-name {
        font-size: 24px;
      }

      .bible-chapter-number {
        font-size: 40px;
      }

      .bible-verse-text {
        font-size: var(--bible-font-size, 16px);
      }

      .bible-font-control {
        right: -40px;
      }

      .bible-chapter-grid {
        grid-template-columns: repeat(5, 1fr);
      }
    }
  

/* ================= bloco seguinte ================= */


      .mobile-tabbar { display: none; }
      @media (max-width: 768px) {
        .mobile-tabbar {
          display: flex;
          position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
          background: var(--bg-primary);
          border-top: 1px solid var(--border);
          padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
        }
        .mtab-item {
          flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
          background: none; border: none; cursor: pointer;
          color: var(--text-muted); font-family: inherit; font-size: 10px; font-weight: 600;
          padding: 6px 0; min-height: 44px;
        }
        .mtab-item svg { width: 22px; height: 22px; }
        .mtab-item.active { color: var(--accent); }
        .input-area { padding-bottom: 74px; }
        .bible-footer { bottom: 64px !important; }
      }
    

/* ================= bloco seguinte ================= */


              .welcome-upgrade {
                display: none;
                align-items: center;
                gap: 14px;
                background: var(--bg-secondary);
                border: 1px solid var(--border);
                border-radius: var(--radius-lg);
                padding: 14px 18px;
                margin-bottom: 24px;
                text-align: left;
              }
              .welcome-upgrade-info { flex: 1; min-width: 0; }
              .welcome-upgrade-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
              .welcome-upgrade-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
              .welcome-upgrade-btn {
                flex: none;
                background: var(--accent-dark);
                color: #fff;
                border: none;
                border-radius: 999px;
                padding: 10px 20px;
                font-family: inherit;
                font-size: 13px;
                font-weight: 600;
                cursor: pointer;
                transition: background 0.2s ease;
              }
              .welcome-upgrade-btn:hover { background: var(--accent-dark); }
            