/* Cores do site: laranja + azul-escuro (modo claro) / branco (modo escuro) */
:root { --rp-neutro: #151a2d; --rp-neutro-rgb: 21, 26, 45; }
html[data-theme="dark"] { --rp-neutro: #ffffff; --rp-neutro-rgb: 255, 255, 255; }

/* =========================================================
   RADAR PLUS — desbloqueio, anúncio, personalizar (Pro),
   Rendi (Ultimate) e animações extras do Ultimate
   ========================================================= */

/* ---------- Selo no card ---------- */
.rp-selo {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1.4;
  color: #fff; background: rgba(21, 26, 45, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.rp-selo--ok { background: rgba(22, 163, 74, .9); }
.radar-produto-card.is-liberado { border-color: rgba(22, 163, 74, .35); }
.radar-produto-card__share.is-loading { opacity: .6; pointer-events: none; animation: rpGira 0.9s linear infinite; }
@keyframes rpGira { to { transform: rotate(360deg); } }

/* ---------- Botões ---------- */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700;
  color: var(--text); background: var(--panel); border: 1px solid var(--border);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.rp-btn:active:not(:disabled) { transform: scale(.97); }
.rp-btn:disabled { opacity: .6; cursor: not-allowed; }
.rp-btn--primario { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 18px -10px rgba(255, 106, 19, .8); }
.rp-btn--primario:hover:not(:disabled) { filter: brightness(1.06); }
.rp-btn--anuncio { color: #fff; border: none; background: linear-gradient(110deg, var(--accent), #ffb020 50%, var(--accent)); background-size: 200% 100%; animation: rpBrilho 3s linear infinite; }
.rp-btn--fantasma { background: transparent; border-color: currentColor; color: inherit; text-decoration: none; }
.rp-btn__cont { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; }
.rp-link { padding: 0; border: none; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--accent); }
@keyframes rpBrilho { to { background-position: -200% 0; } }

/* ---------- Conteúdo bloqueado no modal ---------- */
.rp-box-lock { overflow: hidden; }
.rp-lock { position: relative; min-height: 190px; display: grid; place-items: center; }
.rp-lock__fundo { position: absolute; inset: 4px 0 0; display: flex; flex-direction: column; gap: 10px; filter: blur(5px); opacity: .55; pointer-events: none; }
.rp-lock__fundo span { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--border), var(--border-strong, #d5d9e4)); }
.rp-lock__fundo span:nth-child(1) { width: 94%; } .rp-lock__fundo span:nth-child(2) { width: 81%; }
.rp-lock__fundo span:nth-child(3) { width: 88%; } .rp-lock__fundo span:nth-child(4) { width: 58%; }
.rp-lock__conteudo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px 8px; }
.rp-lock__icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent); }
.rp-lock__titulo { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.rp-lock__nota { margin: 0; max-width: 320px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.rp-mini-load { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */
.rp-toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 10050;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; color: #fff; background: #151a2d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, .61, .36, 1);
}
.rp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.rp-toast--ok { background: #14532d; }
.rp-toast--aviso { background: #7c2d12; }

/* ---------- Modal genérico ---------- */
.rp-modal { position: fixed; inset: 0; z-index: 10040; display: grid; place-items: center; padding: 16px; background: rgba(10, 13, 20, .55); opacity: 0; transition: opacity .22s ease; }
.rp-modal.is-open { opacity: 1; }
.rp-modal__caixa { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.22, .61, .36, 1); }
.rp-modal.is-open .rp-modal__caixa { transform: none; }
.rp-modal__fechar { margin-left: auto; width: 34px; height: 34px; border: none; border-radius: 10px; background: var(--field); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Anúncio ---------- */
.rp-anuncio__topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.rp-anuncio__tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--field); }
.rp-anuncio__tempo { font-size: 13px; font-weight: 700; color: var(--muted); }
.rp-anuncio__palco { position: relative; min-height: 260px; margin: 0 16px; border-radius: 16px; overflow: hidden; background: var(--field); display: flex; flex-direction: column; }
.rp-anuncio__midia { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.rp-anuncio__texto { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.rp-anuncio__texto b { font-size: 16px; }
.rp-anuncio__texto p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rp-anuncio__msg { margin: auto; padding: 24px; text-align: center; color: var(--muted); }
.rp-anuncio__rodape { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.rp-anuncio__barra { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.rp-anuncio__barra span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffb020); transition: width .25s linear; }
.rp-promo { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 22px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #ff8a3d 0%, transparent 55%), linear-gradient(150deg, #1b2130, #0b0e14); overflow: hidden; }
.rp-promo__orb { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .55), transparent 65%); animation: rpFlutua 5s ease-in-out infinite; }
.rp-promo__kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb020; }
.rp-promo__titulo { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; }
.rp-promo__titulo span { color: #ff8a3d; }
.rp-promo__lista { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: #e7eaf2; }
.rp-promo__lista li::before { content: "✓"; margin-right: 8px; color: #34d399; font-weight: 800; }
.rp-promo .rp-btn--fantasma { align-self: flex-start; color: #fff; }
@keyframes rpFlutua { 50% { transform: translate(-14px, 12px) scale(1.06); } }

/* Botão "Assistir anúncio" no card de desbloqueios */
#radarAnuncioBtn { width: 100%; margin-top: 10px; min-height: 38px; font-size: 13px; }
#radarAnuncioBtn.is-destaque { animation: rpBrilho 3s linear infinite, rpPulso 2s ease-in-out infinite; }
@keyframes rpPulso { 50% { box-shadow: 0 0 0 6px rgba(255, 106, 19, .18); } }

/* ---------- Personalizar (Pro) ---------- */
.rp-personalizar { position: relative; }
.rp-tag-pro { position: absolute; top: -7px; right: -6px; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); }
.rp-pers { width: min(880px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.rp-modal__caixa.rp-pers { overflow: hidden; display: flex; }
.rp-pers__topo { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.rp-pers__selo { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ffb020); box-shadow: 0 8px 18px -8px rgba(255, 106, 19, .7); }
.rp-pers__titulo { margin: 0; font-size: 17px; font-weight: 800; }
.rp-pers__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* abas */
.rp-pers__abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 20px; padding: 5px; border-radius: 16px; background: var(--field); border: 1px solid var(--border); }
.rp-pers__aba { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: none; border-radius: 12px; background: transparent; color: var(--muted);
  font: inherit; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.rp-pers__aba > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rp-pers__aba b { font-size: 13.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pers__aba small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pers__aba-ico { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--panel); font-size: 16px; }
.rp-pers__aba:hover { color: var(--text); }
.rp-pers__aba.is-on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 16px -10px rgba(16, 24, 40, .35); }
.rp-pers__aba.is-on .rp-pers__aba-ico { background: var(--accent-soft); }
.rp-pers__aba.is-on b { color: var(--accent); }

.rp-pers__corpo { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; }
.rp-pers__painel { display: flex; flex-direction: column; gap: 12px; animation: rpPainelIn .22s ease both; }
.rp-pers__painel[hidden] { display: none; }
@keyframes rpPainelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rp-pers__painel--zap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rp-pers__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-pers__campo { display: flex; flex-direction: column; gap: 6px; }
.rp-pers__rot { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rp-pers__dica { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.rp-pers__linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.rp-blocos { padding: 12px; }
.rp-blocos .sk2-blocos__grupo { grid-template-columns: 96px minmax(0, 1fr); }
.rp-blocos .sk2-bloco { height: 30px; font-size: 12px; padding-right: 12px; }
.rp-pers #rpModeloZap { padding: 12px 13px; min-height: 230px; font-size: 13.5px; line-height: 1.55; resize: vertical; }
.rp-pers #rpModeloZap:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* prévia com cara de WhatsApp */
.rp-pers__col--previa { position: sticky; top: 0; }
.rp-zap { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 14px 30px -18px rgba(16, 24, 40, .45); }
.rp-zap__topo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #075e54; color: #fff; }
.rp-zap__topo span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.rp-zap__topo b { font-size: 13px; }
.rp-zap__topo small { font-size: 11px; opacity: .8; }
.rp-zap__avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ffb020); }
.rp-zap__chat { padding: 14px 12px 16px; min-height: 240px; max-height: 420px; overflow: auto; background-color: #efe7dd;
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1.2px); background-size: 14px 14px; }
.rp-zap__bolha { position: relative; max-width: 94%; padding: 8px 10px 18px; border-radius: 10px 10px 10px 2px; background: #fff; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.rp-zap__bolha pre { margin: 0; font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: pre-wrap; word-break: break-word; }
.rp-zap__hora { position: absolute; right: 8px; bottom: 4px; font-size: 10.5px; color: #667781; }
html[data-theme="dark"] .rp-zap__chat { background-color: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.2px); }
html[data-theme="dark"] .rp-zap__bolha { background: #202c33; color: #e9edef; }
html[data-theme="dark"] .rp-zap__topo { background: #202c33; }

/* estilos do prompt mãe */
.rp-maes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rp-mae { position: relative; margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--panel);
  color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.rp-mae:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 10px 20px -16px rgba(16, 24, 40, .5); }
.rp-mae input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.rp-mae__ico { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--field); font-size: 19px; transition: background .15s ease; }
.rp-mae__corpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 18px; }
.rp-mae__corpo b { font-size: 13.5px; }
.rp-mae__corpo small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.rp-mae__check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); color: transparent; transition: all .15s ease; }
.rp-mae:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rp-mae:has(input:checked) .rp-mae__ico { background: var(--panel); }
.rp-mae:has(input:checked) .rp-mae__check { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-mae:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-pers .rp-mae-texto { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--field); color: var(--text); font: 13px/1.5 inherit; resize: vertical; }
.rp-pers .rp-mae-texto:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--panel); }
.rp-mae-ver summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); }
.rp-mae-ver pre { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: var(--field); font: 11.5px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; color: var(--muted); max-height: 160px; overflow: auto; }

.rp-pers__rodape { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--border); background: var(--panel); }
.rp-pers__msg { flex: 1; margin: 0; font-size: 12.5px; }
.rp-pers__msg.is-erro { color: var(--error); }

@media (max-width: 760px) {
  .rp-pers__painel--zap { grid-template-columns: 1fr; }
  .rp-pers__col--previa { position: static; }
  .rp-maes { grid-template-columns: 1fr; }
  .rp-modal { align-items: end; padding: 0; }
  .rp-modal__caixa { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .rp-pers__topo { padding: 16px 16px 12px; }
  .rp-pers__abas { margin: 0 16px; }
  .rp-pers__aba { padding: 8px; gap: 8px; }
  .rp-pers__aba small { display: none; }
  .rp-pers__aba-ico { width: 28px; height: 28px; font-size: 14px; }
  .rp-pers__corpo { padding: 14px 16px; }
  .rp-pers__rodape { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .rp-pers__rodape .rp-pers__msg:empty { display: none; }
  .rp-pers__rodape .rp-btn { flex: 1; }
  .rp-blocos .sk2-blocos__grupo { grid-template-columns: 1fr; gap: 6px; }
  .rp-zap__chat { min-height: 0; }
}

/* Celular: Personalizar e Criar vídeo lado a lado */
@media (max-width: 639px) {
  #screen-radar .page-head__side { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  #screen-radar .page-head__side > .flow-btn { flex: 1 1 0; min-width: 0; justify-content: flex-start; gap: 9px; padding: 10px 10px 10px 9px; border-radius: 14px; }
  #screen-radar .page-head__side > .flow-btn .flow-btn__icon { width: 32px; height: 32px; border-radius: 10px; }
  #screen-radar .page-head__side > .flow-btn .flow-btn__text { min-width: 0; }
  #screen-radar .page-head__side > .flow-btn .flow-btn__text b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #screen-radar .page-head__side > .flow-btn .flow-btn__text small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #screen-radar .page-head__side > :not(.flow-btn) { flex: 1 1 100%; }
}

/* Botão Salvar destacado quando o Rendi preenche um agendamento */
.rp-pulsar { animation: rpPulso 1.2s ease-in-out infinite; }

/* ---------- Confete ---------- */
.rp-confete { position: fixed; left: 0; right: 0; top: 55%; height: 0; z-index: 10060; pointer-events: none; }
.rp-confete i { position: absolute; top: 0; width: 9px; height: 13px; border-radius: 2px; opacity: 0; animation: rpConfete 1.5s cubic-bezier(.17, .67, .35, 1) forwards; }
@keyframes rpConfete {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 520px)) rotate(var(--rot)); }
}

/* =========================================================
   RENDI — ajudante IA (Ultimate)
   ========================================================= */
.rendi-orb {
  position: fixed; right: 20px; bottom: 24px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 18px 0 8px; border: none; border-radius: 999px; cursor: pointer;
  color: #fff; font: 800 14px/1 var(--font-head, inherit); letter-spacing: .01em;
  background: linear-gradient(120deg, var(--accent) 0%, #ff8a3d 60%, #ffb020 100%);
  box-shadow: 0 12px 30px -8px rgba(255, 106, 19, .6), 0 0 0 0 rgba(255, 106, 19, .45);
  animation: rendiRespira 2.8s ease-in-out infinite;
}
.rendi-orb[hidden] { display: none; }
.rendi-orb__txt { background: none; }
.rendi-orb__nucleo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.rendi-orb__nucleo svg { animation: rendiGira 6s linear infinite; }
@keyframes rendiRespira { 50% { box-shadow: 0 12px 30px -8px rgba(255, 106, 19, .6), 0 0 0 10px rgba(255, 106, 19, 0); transform: translateY(-2px); } }
@keyframes rendiGira { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .rendi-orb { bottom: 86px; right: 14px; height: 48px; padding-right: 14px; } .rendi-orb__nucleo { width: 34px; height: 34px; } }

.rendi-painel {
  position: fixed; right: 20px; bottom: 90px; z-index: 9995;
  width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(16, 24, 40, .28);
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transform-origin: bottom right;
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
}
.rendi-painel.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) { .rendi-painel { right: 12px; bottom: 144px; height: min(560px, calc(100vh - 170px)); } }
.rendi-painel__topo { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; color: #fff; background: #151a2d; }
.rendi-painel__topo div { flex: 1; display: flex; flex-direction: column; }
.rendi-painel__topo b { font-size: 15px; }
.rendi-painel__topo small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.rendi-painel__avatar { width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(from 0deg, #ffffff, #ff6a13, #ffb020, #ffffff); animation: rendiGira 5s linear infinite; box-shadow: inset 0 0 0 4px rgba(21, 26, 45, .55); }
.rendi-painel__limpar, .rendi-painel__fechar { display: grid; place-items: center; width: 32px; height: 32px; border: none; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; cursor: pointer; }
.rendi-painel__msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.rendi-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; animation: rendiEntra .25s ease both; word-break: break-word; }
.rendi-msg--eu { align-self: flex-end; color: #fff; background: var(--accent); border-bottom-right-radius: 4px; }
.rendi-msg--ia { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
@keyframes rendiEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rendi-digitando { display: inline-flex; gap: 4px; }
.rendi-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: rendiPonto 1.2s ease-in-out infinite; }
.rendi-digitando i:nth-child(2) { animation-delay: .15s; } .rendi-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes rendiPonto { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.rendi-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rendi-acao { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--rp-neutro); background: rgba(var(--rp-neutro-rgb), .1); }
.rendi-prods { display: grid; gap: 6px; margin-top: 10px; }
.rendi-prod { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--field); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s ease, transform .15s ease; }
.rendi-prod:hover { border-color: var(--accent); transform: translateY(-1px); }
.rendi-prod img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.rendi-prod span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rendi-prod b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rendi-prod small { font-size: 11.5px; color: var(--muted); }
.rendi-boas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: auto 0; padding: 20px 10px; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.rendi-boas b { color: var(--text); font-size: 15px; }
.rendi-boas__orb { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(from 0deg, var(--rp-neutro), #ff6a13, #ffb020, var(--rp-neutro)); animation: rendiGira 6s linear infinite; box-shadow: 0 0 40px rgba(255, 106, 19, .4), inset 0 0 0 8px var(--bg); }
.rendi-painel__sug { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; background: var(--bg); scrollbar-width: none; }
.rendi-painel__sug[hidden] { display: none; }
.rendi-sug { flex-shrink: 0; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 12px/1.3 inherit; cursor: pointer; white-space: nowrap; }
.rendi-sug:hover { border-color: var(--rp-neutro); color: var(--rp-neutro); }
.rendi-painel__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; background: var(--bg); border-top: 1px solid var(--border); }
.rendi-painel__form textarea { flex: 1 1 auto; width: auto; min-width: 0; min-height: 42px; max-height: 120px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 13.5px/1.4 inherit; resize: none; }
.rendi-painel__form textarea:focus { outline: none; border-color: var(--rp-neutro); box-shadow: 0 0 0 3px rgba(var(--rp-neutro-rgb), .15); }
.rendi-painel__form .rendi-painel__enviar { display: grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; flex: 0 0 42px; border: none; border-radius: 14px; cursor: pointer; color: #fff; background: var(--accent); }

/* =========================================================
   ANIMAÇÕES EXTRAS — Ultimate
   ========================================================= */
@property --rp-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
body.rp-ultimate .radar-produto-card { position: relative; }
body.rp-ultimate .radar-produto-card::before {
  content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--rp-ang), transparent 0deg, var(--rp-neutro) 60deg, #ff6a13 120deg, #ffb020 170deg, transparent 230deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
body.rp-ultimate .radar-produto-card:hover::before { opacity: 1; animation: rpAngulo 2.2s linear infinite; }
@keyframes rpAngulo { to { --rp-ang: 360deg; } }
body.rp-ultimate #screen-radar .page-head { position: relative; isolation: isolate; }
body.rp-ultimate #screen-radar .page-head::after {
  content: ""; position: absolute; inset: -20px -10px auto auto; width: 260px; height: 160px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 106, 19, .18), transparent), radial-gradient(closest-side, rgba(255, 176, 32, .14), transparent);
  background-position: 0 0, 80px 30px; background-repeat: no-repeat; filter: blur(8px); animation: rpAurora 9s ease-in-out infinite alternate;
}
@keyframes rpAurora { to { transform: translate(-60px, 14px) scale(1.15); } }
body.rp-ultimate .produto-detalhe__cta { background-image: linear-gradient(110deg, var(--accent), #ff9f43 50%, var(--accent)); background-size: 200% 100%; animation: rpBrilho 3.2s linear infinite; }
body.rp-ultimate .radar-produto-card.is-liberado .rp-selo--ok { background: linear-gradient(110deg, #16a34a, #22c55e, #16a34a); background-size: 200% 100%; animation: rpBrilho 2.6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .rendi-orb, .rendi-orb__nucleo svg, .rendi-painel__avatar, .rendi-boas__orb, .rp-btn--anuncio, #radarAnuncioBtn.is-destaque,
  .rp-promo__orb, body.rp-ultimate .radar-produto-card:hover::before, body.rp-ultimate #screen-radar .page-head::after,
  body.rp-ultimate .produto-detalhe__cta, .rp-pulsar { animation: none !important; }
}

/* ---------- Rendi: cartão de confirmação (ações fortes) ---------- */
.rendi-card { margin-top: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(var(--rp-neutro-rgb), .35); background: linear-gradient(180deg, rgba(var(--rp-neutro-rgb), .07), transparent 70%), var(--field); }
.rendi-card--feito { border-color: rgba(22, 163, 74, .45); }
.rendi-card--cancelado { opacity: .65; border-style: dashed; }
.rendi-card--erro { border-color: rgba(229, 72, 77, .5); }
.rendi-card__titulo { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.rendi-card__lin { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 5px; font-size: 12.5px; }
.rendi-card__lin span { color: var(--muted); flex-shrink: 0; }
.rendi-card__lin b { text-align: right; }
.rendi-card__msg { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: #e7f6ec; color: #0f2a19; font: 12.5px/1.45 system-ui, sans-serif; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
html[data-theme="dark"] .rendi-card__msg { background: #12261a; color: #d7f5e1; }
.rendi-card__link { padding: 1px 6px; border-radius: 6px; background: rgba(22, 163, 74, .18); font-weight: 700; }
.rendi-card__btns { display: flex; gap: 8px; margin-top: 10px; }
.rendi-card__btns .rp-btn { flex: 1; min-height: 38px; font-size: 13px; }
.rendi-card__ok { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--success); }
.rendi-card__nao { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.rendi-card__erro { margin: 10px 0 0; font-size: 12.5px; color: var(--error); }

/* ---------- Agente virtual: nada estoura pro lado ---------- */
.rendi-painel__msgs { overflow-x: hidden; }
.rendi-msg { min-width: 0; overflow-wrap: anywhere; }
.rendi-msg--ia { width: 88%; box-sizing: border-box; }
.rendi-prods, .rendi-prod { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rendi-prod { width: 100%; overflow: hidden; }
.rendi-prod span { flex: 1; min-width: 0; overflow: hidden; }
.rendi-card { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.rendi-card__msg { overflow-wrap: anywhere; }

/* Botão do agente some enquanto a janela de um produto está aberta */
body.no-scroll .rendi-orb { display: none; }

/* Ícone do botão Personalizar no laranja do site */
.rp-personalizar .flow-btn__icon { background: var(--accent); color: #fff; }
