/* Naldo — assistente de filmes da Cine Stream */
.nd-root { --nd-bg: #121212; --nd-soft: #1a1a1a; --nd-border: rgba(255,255,255,.1); --nd-orange: #e50914; --nd-orange-2: #ff2a35; --nd-text: #fff; --nd-muted: rgba(255,255,255,.65); font-family: Roboto, Arial, sans-serif; }
.nd-ava { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; }
.nd-ava img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 2px solid #e50914; box-sizing: border-box; }

/* Botão flutuante */
.nd-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 9500; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 1px solid rgba(255,42,53,.45); border-radius: 999px; background: rgba(18,18,18,.96); color: var(--nd-text); cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: transform .2s ease, border-color .2s ease; }
.nd-launcher:hover { transform: translateY(-2px); border-color: var(--nd-orange-2); }
.nd-launcher-txt { display: flex; flex-direction: column; text-align: left; font-size: 11px; line-height: 1.3; color: var(--nd-muted); }
.nd-launcher-txt strong { color: var(--nd-text); font-size: 14px; }
.nd-open .nd-launcher { display: none; }

/* Janela da conversa */
.nd-panel { position: fixed; right: 20px; bottom: 20px; z-index: 10000001; width: 380px; height: 600px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nd-border); border-radius: 18px; background: var(--nd-bg); color: var(--nd-text); box-shadow: 0 28px 80px rgba(0,0,0,.6); }
.nd-panel[hidden] { display: none; }
.nd-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: radial-gradient(circle at top left, rgba(229,9,20,.28), transparent 60%), var(--nd-soft); border-bottom: 1px solid var(--nd-border); }
.nd-head-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nd-head-txt strong { font-size: 16px; }
.nd-head-txt span { font-size: 12px; color: var(--nd-muted); }
.nd-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22c55e; vertical-align: middle; }
.nd-close { border: 0; background: none; color: var(--nd-text); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .8; }
.nd-close:hover { opacity: 1; }

.nd-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.nd-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.nd-bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--nd-border); border-bottom-left-radius: 4px; }
.nd-user { align-self: flex-end; background: linear-gradient(90deg, var(--nd-orange), var(--nd-orange-2)); color: #fff; border-bottom-right-radius: 4px; }

.nd-typing { display: flex; gap: 4px; padding: 13px 15px; }
.nd-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--nd-muted); animation: nd-pulse 1s infinite ease-in-out; }
.nd-typing span:nth-child(2) { animation-delay: .15s; }
.nd-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nd-pulse { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.nd-card { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--nd-border); border-left: 3px solid var(--nd-orange); border-radius: 10px; background: rgba(0,0,0,.25); }
.nd-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nd-card-top strong { font-size: 14px; line-height: 1.3; }
.nd-tag { flex: 0 0 auto; padding: 3px 7px; border-radius: 5px; background: rgba(229,9,20,.16); color: #ff5a62; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.nd-meta { margin-top: 3px; color: var(--nd-muted); font-size: 12px; }
.nd-note { margin: 12px 0 2px; color: #ff5a62; font-size: 13px; line-height: 1.45; }
.nd-note:first-child { margin-top: 0; margin-bottom: 8px; }
.nd-poster { display: block; width: 150px; max-width: 60%; aspect-ratio: 2 / 3; object-fit: cover; margin: 10px 0 4px; border-radius: 8px; background: #1c1c1c; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.nd-card p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.45; }

.nd-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; max-height: 140px; overflow-y: auto; }
.nd-chips:empty { display: none; }
.nd-chip { padding: 8px 12px; border: 1px solid rgba(255,42,53,.5); border-radius: 999px; background: transparent; color: #ffc2c5; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.nd-chip:hover { background: rgba(229,9,20,.18); }

.nd-hint { padding: 9px 16px 0; border-top: 1px solid var(--nd-border); background: var(--nd-soft); color: var(--nd-muted); font-size: 12px; }
.nd-form { display: flex; gap: 8px; padding: 7px 12px 12px; background: var(--nd-soft); }
.nd-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--nd-border); border-radius: 999px; background: rgba(0,0,0,.3); color: #fff; font-size: 14px; outline: none; }
.nd-form input:focus { border-color: var(--nd-orange-2); }
.nd-form input::placeholder { color: rgba(255,255,255,.45); }
.nd-form button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--nd-orange); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
/* O CSS antigo do site força campos de texto com 70px de altura e botões com 50px de margem interna.
   Estas regras mais específicas mantêm o campo e o botão do Naldo no tamanho certo. */
.nd-root .nd-form input[type="text"] { width: auto; max-width: none; height: 44px; margin: 0; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--nd-border); color: #fff; font-family: inherit; }
.nd-root .nd-form input[type="text"]:focus { border-color: var(--nd-orange-2); }
.nd-root .nd-form button[type="submit"] { width: 44px; height: 44px; padding: 0; margin: 0; font-size: 0; }
.nd-form button svg { width: 20px; height: 20px; }

/* Arte grande da seção do Naldo na página */
.ofl-alfred-photo img.naldo-hero-photo { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 25%; }

/* Itens dos planos */
.ofl-plans-grid .ofl-plan-features li.cs-plus { color: #ffc2c5; font-weight: 700; }
.ofl-plans-grid .ofl-plan-features li.cs-plus:before { content: '+'; color: #ff2a35; }
/* Planos: emoji ✅ (verde) no que o plano tem e ❌ (vermelho) no que não tem.
   O #planos deixa estas regras mais fortes que as do estilo antigo da página. */
#planos .ofl-plan-features li { padding-left: 28px; }
#planos .ofl-plan-features li:before { content: '\2705'; top: 1px; font-size: 14px; line-height: 1.4; font-weight: 400; }
#planos .ofl-plan-features li.cs-no:before { content: '\274C'; font-size: 13px; }
#planos .ofl-plan-features li.cs-plus:before { content: '+'; top: -1px; font-size: 18px; color: #ff2a35; font-weight: 900; }

/* Prévia animada do Naldo (seção "Veja o Naldo em ação") */
.ndp-wrap { max-width: 580px; margin: 0 auto; }
.ndp-window { position: relative; height: 560px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nd-border); border-radius: 20px; background: var(--nd-bg); color: var(--nd-text); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 90px rgba(229,9,20,.18); }
.ndp-body { flex: 1; min-height: 0; overflow: hidden; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: opacity .4s ease; }
.ndp-body.ndp-sumindo { opacity: 0; }
.ndp-body .nd-msg { animation: ndp-in .35s ease both; }
.ndp-body .ndp-wide { max-width: 100%; }
@keyframes ndp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ndp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ndp-cards.ndp-um { grid-template-columns: minmax(0, 150px); }
.ndp-card { opacity: 0; animation: ndp-in .4s ease forwards; }
.ndp-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #1c1c1c; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.ndp-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: 12px; line-height: 1.3; }
.ndp-card span { display: block; margin-top: 2px; color: var(--nd-muted); font-size: 11px; }
.ndp-input { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--nd-border); background: var(--nd-soft); }
.ndp-field { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--nd-border); border-radius: 999px; background: rgba(0,0,0,.3); color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ndp-typed:empty::before { content: 'Digite um gênero, época ou humor…'; color: rgba(255,255,255,.4); }
.ndp-caret { width: 1px; height: 18px; margin-left: 1px; background: #fff; animation: ndp-blink 1s steps(1) infinite; }
@keyframes ndp-blink { 50% { opacity: 0; } }
.ndp-send { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--nd-orange); color: #fff; transition: transform .15s ease; }
.ndp-send svg { width: 20px; height: 20px; }
.ndp-send.ativo { transform: scale(.85); }
.ndp-note { margin: 22px 0 0; text-align: center; color: rgba(255,255,255,.6); font-size: 14px; }
.ndp-note strong { color: #fff; }
@media (max-width: 767px) {
  .ndp-window { height: 520px; border-radius: 16px; }
  .ndp-body { padding: 14px; }
  .ndp-cards { gap: 8px; }
}

/* Destaque rápido no plano trimestral quando a pessoa chega pelo botão do Naldo. */
@keyframes cs-pulse { 0%, 100% { box-shadow: 0 18px 50px rgba(0,0,0,.34); } 50% { box-shadow: 0 0 0 4px rgba(229,9,20,.55), 0 18px 60px rgba(229,9,20,.45); } }
.cs-destaque { animation: cs-pulse .9s ease-in-out 3; }

@media (max-width: 767px) {
  .nd-launcher { right: 12px; bottom: 84px; padding-right: 14px; }
  .nd-launcher-txt { font-size: 10px; }
  .nd-launcher-txt strong { font-size: 13px; }
  .nd-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
}
