:root {
  --noite: #170F2C;
  --ameixa: #251944;
  --linha: #3B2D68;
  --texto: #F4EFFF;
  --nevoa: #A99BD3;
  --chiclete: #FF4F8B;
  --chiclete-escuro: #D93A72;
  --mel: #FFC24B;
  --verde: #4BE0A0;
  --on-chiclete: #fff;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --vvh: 100dvh;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--noite); color: var(--texto); font: 16px/1.5 var(--body); }
body { overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mel); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { height: var(--vvh); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- Marca ---------- */
.brand-mark { display: flex; align-items: center; gap: .5rem; }
.brand-mark img { height: 36px; width: auto; }
.brand-name { font: 800 1.75rem/1 var(--display); letter-spacing: -.02em; }
.brand-name::before { content: ''; display: inline-block; width: .55em; height: .55em; margin-right: .3em; background: var(--chiclete); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); vertical-align: .05em; }
.brand-mark.small .brand-name { font-size: 1.25rem; }

/* ---------- Entrada ---------- */
#screen-login { overflow-y: auto; }
.login-wrap { width: min(100%, 420px); margin: auto; padding: 2rem 1.25rem; display: flex; flex-direction: column; gap: 1.1rem; }
.login-title { font: 700 clamp(2rem, 8vw, 2.75rem)/1.02 var(--display); letter-spacing: -.03em; margin: .25rem 0 .75rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field .label { font-size: .9rem; color: var(--nevoa); font-weight: 500; }
input, select { background: var(--ameixa); border: 1px solid var(--linha); border-radius: 12px; padding: .75rem .9rem; width: 100%; }
input::placeholder { color: var(--nevoa); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { background: transparent; border: 1px solid var(--linha); border-radius: 999px; padding: .5rem .9rem; }
.chips button[aria-checked="true"] { background: var(--texto); color: var(--noite); border-color: var(--texto); font-weight: 600; }
.check { display: flex; gap: .6rem; font-size: .9rem; color: var(--nevoa); align-items: flex-start; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--chiclete); }
.check a { color: var(--texto); }
.login-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
#google-btn:empty { display: none; }
#google-btn { display: flex; justify-content: center; }
.error { color: color-mix(in srgb, var(--chiclete) 60%, var(--texto)); min-height: 1.5em; margin: 0; font-size: .9rem; }

.btn { border: 0; border-radius: 14px; padding: .85rem 1.2rem; font-weight: 700; }
.btn-primary { background: var(--chiclete); color: #fff; }
.btn-primary:active { background: var(--chiclete-escuro); }
.btn-ghost { background: transparent; border: 1px solid var(--linha); }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Topo ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; flex: none; }
.topbar-right { display: flex; gap: .5rem; }
.pill { border: 1px solid var(--linha); background: var(--ameixa); border-radius: 999px; padding: .4rem .8rem; display: flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; }
.pill-vip .crown { color: var(--mel); }
.pill-vip.is-vip { background: var(--mel); color: var(--noite); border-color: var(--mel); }
.pill-vip.is-vip .crown { color: var(--noite); }
.coin { width: .9em; height: .9em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--mel) 45%, #fff), var(--mel) 60%, color-mix(in srgb, var(--mel) 70%, #000)); display: inline-block; }

/* ---------- Palco de vídeo ---------- */
.stage { position: relative; flex: 1; min-height: 0; margin: 0 .5rem; border-radius: 22px; overflow: hidden; background: var(--ameixa); contain: strict; isolation: isolate; }
#remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ameixa); transition: filter .2s; }
#remote.blurred { filter: blur(28px) brightness(.6); }
#local { position: absolute; top: .75rem; right: .75rem; width: 28%; max-width: 180px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.18); transform: scaleX(-1); z-index: 3; background: #000; }
.partner-tag { position: absolute; top: .75rem; left: .75rem; z-index: 3; background: color-mix(in srgb, var(--noite) 70%, transparent); backdrop-filter: blur(8px); padding: .35rem .7rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
/* Só os vídeos da chamada ignoram toques (evita o menu de "pressionar e segurar").
   Antes valia para TODOS os vídeos e travava o play dos vídeos enviados nas salas e mensagens. */
#remote, #local, #bot-video { user-select: none; -webkit-user-select: none; pointer-events: none; }

/* Estado ocioso com o botão-radar */
.idle { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--chiclete) 12%, transparent), transparent 60%); }
.spark-btn { position: relative; width: 164px; height: 164px; border-radius: 50%; border: 0; background: var(--chiclete); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--chiclete) 15%, transparent); }
.spark-label { font: 800 1.5rem/1 var(--display); letter-spacing: -.02em; position: relative; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--chiclete); opacity: 0; }
.searching .ring { animation: radar 1.8s ease-out infinite; }
.searching .r2 { animation-delay: .6s; } .searching .r3 { animation-delay: 1.2s; }
.searching .spark-btn { background: var(--ameixa); border: 2px solid var(--chiclete); }
@keyframes radar { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.idle-hint { color: var(--nevoa); margin: 0; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; max-width: 420px; }
.seg { display: flex; background: var(--noite); border-radius: 999px; padding: 3px; border: 1px solid var(--linha); }
.seg button { border: 0; background: none; padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--texto); color: var(--noite); font-weight: 600; }
.filters select { width: auto; padding: .45rem .7rem; border-radius: 999px; font-size: .9rem; background: var(--noite); }
.filters.locked .seg, .filters.locked select { opacity: .5; }
.lock { color: var(--mel); font-size: .85rem; font-weight: 600; width: 100%; text-align: center; }

/* Mensagens sobrepostas ao vídeo */
.chat-log { position: absolute; left: .75rem; right: 35%; bottom: .75rem; z-index: 3; display: flex; flex-direction: column; gap: .35rem; max-height: 45%; overflow: hidden; justify-content: flex-end; mask-image: linear-gradient(to top, #000 70%, transparent); }
.msg { align-self: flex-start; max-width: 100%; background: color-mix(in srgb, var(--noite) 72%, transparent); backdrop-filter: blur(6px); padding: .4rem .75rem; border-radius: 14px 14px 14px 4px; font-size: .95rem; overflow-wrap: anywhere; animation: pop .18s ease-out; }
.msg.me { align-self: flex-end; background: color-mix(in srgb, var(--chiclete) 85%, transparent); border-radius: 14px 14px 4px 14px; }
.msg.sys { align-self: center; background: none; color: var(--nevoa); font-size: .85rem; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }

/* Corações e presentes flutuantes */
.fx-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.heart-fx { position: absolute; bottom: 10%; font-size: 2rem; color: var(--chiclete); animation: floatUp 2.4s ease-out forwards; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
@keyframes floatUp {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: 1; transform: translate(0, -20px) scale(1.1); }
  100% { transform: translate(var(--dx), -70vh) scale(.9) rotate(var(--rot)); opacity: 0; }
}
.gift-fx { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); text-align: center; animation: giftIn 2.8s cubic-bezier(.2,.9,.3,1.2) forwards; }
.gift-fx .g { font-size: 6rem; line-height: 1; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.gift-fx .t { font: 700 1.1rem var(--display); background: color-mix(in srgb, var(--noite) 80%, transparent); padding: .3rem .8rem; border-radius: 999px; }
@keyframes giftIn {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}

/* ---------- Barra inferior ---------- */
.dock { flex: none; padding: .6rem .5rem .5rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-input { display: flex; gap: .4rem; }
.chat-input input { border-radius: 999px; padding: .65rem 1rem; }
.controls { display: flex; gap: .35rem; align-items: center; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--linha); background: var(--ameixa); display: grid; place-items: center; font-size: 1.15rem; }
.icon-btn[aria-pressed="false"] { background: color-mix(in srgb, var(--chiclete) 30%, var(--ameixa)); border-color: color-mix(in srgb, var(--chiclete) 55%, var(--ameixa)); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn.heart { color: var(--chiclete); font-size: 1.4rem; }
.btn-next { flex: 0 0 auto; margin-left: auto; padding: 0 1.1rem; min-height: 42px; background: var(--texto); color: var(--noite);
  font: 700 .95rem var(--display); border-radius: 999px; white-space: nowrap; }

/* ---------- Folhas ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--noite) 70%, #000 30%); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 85dvh; overflow-y: auto; background: var(--ameixa); border-radius: 24px 24px 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); animation: sheetUp .22s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-close { position: absolute; top: .8rem; right: .8rem; background: none; border: 0; font-size: 1.1rem; color: var(--nevoa); padding: .5rem; }
.sheet h2 { font: 800 1.6rem/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 .25rem; }
.sheet .sub { color: var(--nevoa); margin: 0 0 1.25rem; }
.balance { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.balance b { font: 800 2rem/1 var(--display); display: block; }
.balance span { color: var(--nevoa); font-size: .85rem; }
.pkg-list { display: flex; flex-direction: column; gap: .6rem; }
.pkg { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--linha); border-radius: 16px; background: var(--noite); text-align: left; width: 100%; }
.pkg[aria-pressed="true"] { border-color: var(--mel); }
.pkg .amt { font: 700 1.2rem var(--display); }
.pkg .bonus { color: var(--verde); font-size: .85rem; font-weight: 600; }
.pkg .price { font-weight: 700; white-space: nowrap; }
.pay-methods { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gift-grid button { background: var(--noite); border: 1px solid var(--linha); border-radius: 16px; padding: .8rem .4rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.gift-grid .e { font-size: 2.2rem; line-height: 1.1; }
.gift-grid .c { color: var(--mel); font-size: .85rem; font-weight: 600; }
.cat-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.history { margin-top: 1.25rem; font-size: .9rem; color: var(--nevoa); }
.history div { display: flex; justify-content: space-between; padding: .4rem 0; border-top: 1px solid var(--linha); }
textarea { width: 100%; background: var(--noite); border: 1px solid var(--linha); border-radius: 12px; padding: .75rem; min-height: 80px; resize: vertical; font: inherit; color: inherit; }

.toast { position: fixed; left: 50%; bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--texto); color: var(--noite); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; opacity: 0; transition: .2s; z-index: 30; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  #screen-call { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .stage { margin: 0 0 1rem 1rem; }
  .dock { padding: 0 1rem 1rem; justify-content: flex-end; flex-direction: column-reverse; }
  .chat-log { right: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Pix ---------- */
.pix { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.pix img { width: min(240px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; }
.pix .code { width: 100%; font-size: .8rem; word-break: break-all; background: var(--noite); border: 1px solid var(--linha); border-radius: 12px; padding: .6rem; max-height: 4.5rem; overflow: auto; text-align: left; }
.pix .wait { color: var(--nevoa); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.pix .wait::before { content: ''; width: .7rem; height: .7rem; border-radius: 50%; background: var(--mel); animation: blinkdot 1.2s infinite; }
@keyframes blinkdot { 50% { opacity: .25; } }
.pix-btn { background: #32BCAD; color: #fff; }
.steps-ios { text-align: left; color: var(--nevoa); line-height: 1.7; }

/* ---------- Entrada: abas, senha, links ---------- */
.tabs { display: flex; background: var(--ameixa); border: 1px solid var(--linha); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { flex: 1; border: 0; background: none; padding: .6rem .3rem; font-size: .92rem; white-space: nowrap; border-radius: 10px; font-weight: 600; color: var(--nevoa); }
.tabs button[aria-selected="true"] { background: var(--texto); color: var(--noite); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 3rem; }
.pass-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.1rem; padding: .4rem; opacity: .7; }
.link { background: none; border: 0; color: var(--mel); padding: .2rem 0; font-size: .9rem; align-self: flex-start; text-decoration: underline; text-underline-offset: 3px; }
.or { text-align: center; color: var(--nevoa); margin: .2rem 0; font-size: .9rem; }
.account-info { background: var(--noite); border: 1px solid var(--linha); border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; }
.account-info b { display: block; font-size: 1.1rem; }
.account-info span { color: var(--nevoa); font-size: .9rem; }
.stack { display: flex; flex-direction: column; gap: .6rem; }

/* Indicador de qualidade da conexão */
.q-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .4rem; vertical-align: .05em; background: var(--verde); }
.q-dot[data-q="media"] { background: var(--mel); }
.q-dot[data-q="ruim"] { background: var(--chiclete); animation: blinkdot 1s infinite; }

/* ---------- Chamada só de voz ---------- */
.voice-ph { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--linha) 70%, var(--chiclete) 12%), var(--ameixa) 70%); text-align: center; padding: 1rem; }
.voice-ph b { font: 800 1.5rem var(--display); }
.voice-ph span { color: var(--nevoa); font-size: .95rem; }
.voice-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--chiclete); display: grid; place-items: center;
  font: 800 3.2rem var(--display); color: #fff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--chiclete) 50%, transparent); transition: box-shadow .15s; margin-bottom: .5rem; }
.voice-ph.talking .voice-avatar { box-shadow: 0 0 0 14px color-mix(in srgb, var(--chiclete) 25%, transparent), 0 0 0 28px color-mix(in srgb, var(--chiclete) 12%, transparent); }
.local-ph { position: absolute; top: .75rem; right: .75rem; width: 28%; max-width: 180px; aspect-ratio: 3/4; z-index: 3; border-radius: 14px;
  border: 2px solid rgba(255,255,255,.18); background: var(--noite); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; font-size: .85rem; color: var(--nevoa); }
.local-ph .mic { font-size: 1.8rem; }
.voice-toggle { border: 1px solid var(--linha); background: var(--noite); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .9rem; }
.voice-toggle[aria-pressed="true"] { background: var(--texto); color: var(--noite); border-color: var(--texto); }
.searching .voice-toggle { display: none; }

/* ---------- Perfil automático ---------- */
#bot-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #000; }
.bot-badge { background: var(--mel); color: var(--noite); border-radius: 999px; padding: .1rem .5rem; font-size: .8rem; font-weight: 700; margin-right: .2rem; }
.bot-banner { position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%); z-index: 3; background: color-mix(in srgb, var(--noite) 80%, transparent);
  backdrop-filter: blur(6px); color: var(--nevoa); font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.bot-banner::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mel); margin-right: .4rem; animation: blinkdot 1.2s infinite; }
.bot-sound { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4; border: 0; border-radius: 999px; padding: .7rem 1.1rem;
  background: color-mix(in srgb, var(--noite) 85%, transparent); color: var(--texto); font-weight: 700; }

/* ---------- Abas Vídeo / Salas ---------- */
.nav-tabs { display: flex; background: var(--ameixa); border: 1px solid var(--linha); border-radius: 999px; padding: 3px; gap: 2px; }
.nav-tabs button { border: 0; background: none; border-radius: 999px; padding: .38rem .75rem; font-weight: 600; font-size: .88rem; color: var(--nevoa); white-space: nowrap; }
.nav-tabs button[aria-pressed="true"] { background: var(--texto); color: var(--noite); }
.topbar { gap: .5rem; }
@media (max-width: 699px) {
  .top-brand, #vip-label { display: none; }
  .topbar { padding: .5rem .5rem; gap: .35rem; }
  .topbar-right { gap: .3rem; }
  .topbar-right .pill { padding: .38rem .55rem; white-space: nowrap; }
  .nav-tabs button { padding: .36rem .6rem; font-size: .85rem; }
}
.pill { white-space: nowrap; }
.code-row input::placeholder { text-transform: none; letter-spacing: 0; }
.partner-tag { cursor: pointer; }
.voice-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- Avatares e etiquetas ---------- */
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--linha); }
.av-letter { background: var(--chiclete); color: #fff; font: 800 1.05rem var(--display); }
.av-sm { width: 34px; height: 34px; font-size: .95rem; }
.av-xl { width: 96px; height: 96px; font-size: 2.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags.center { justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--noite); border: 1px solid var(--linha); border-radius: 999px; padding: .25rem .65rem; font-size: .88rem; }
.tag button { background: none; border: 0; color: var(--nevoa); font-size: 1rem; line-height: 1; padding: 0 .1rem; }
.chips.sugg button { font-size: .85rem; padding: .3rem .7rem; }
.label-sm { font-size: .85rem; color: var(--nevoa); margin-top: .35rem; }
.muted-sm { color: var(--nevoa); font-size: .85rem; }
.prof-photo { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.file-btn { cursor: pointer; text-align: center; }
.prof-view { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.prof-view h2 { margin: .4rem 0 0; }
.prof-view .bio { margin: .4rem 0; max-width: 34ch; }
.crown-sm { color: var(--mel); }
.btn.danger { color: color-mix(in srgb, var(--chiclete) 60%, var(--texto)); border-color: color-mix(in srgb, var(--chiclete) 45%, var(--ameixa)); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; border-radius: 10px; }

/* ---------- Salas ---------- */
.rooms { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 .5rem .5rem; }
.rooms-list { flex: 1; overflow-y: auto; padding: .25rem .25rem 1.5rem; }
.rooms-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: .25rem 0 .75rem; }
.rooms-head h2 { font: 800 1.6rem/1 var(--display); margin: 0; letter-spacing: -.02em; }
.rooms h3 { font: 700 1rem var(--display); color: var(--nevoa); margin: 1.25rem 0 .6rem; }
.code-row { display: flex; gap: .5rem; }
.code-row input { text-transform: uppercase; letter-spacing: .08em; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.room-card { text-align: left; background: var(--ameixa); border: 1px solid var(--linha); border-radius: 16px; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.room-card:hover { border-color: var(--chiclete); }
.rc-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.rc-top b { font: 700 1.05rem var(--display); overflow-wrap: anywhere; }
.rc-online { font-size: .8rem; color: var(--nevoa); white-space: nowrap; }
.rc-online.on { color: var(--verde); }
.rc-online.on::before { content: '● '; }
.rc-topic { color: var(--texto); opacity: .85; font-size: .92rem; }
.rc-owner { color: var(--nevoa); font-size: .82rem; }

.room { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ameixa); border-radius: 22px; overflow: hidden; }
.room-head { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border-bottom: 1px solid var(--linha); }
.room-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.room-title b { font: 700 1.05rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title span { color: var(--nevoa); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: .8rem .7rem; display: flex; flex-direction: column; gap: .45rem; overscroll-behavior: contain; }
.rmsg { display: flex; gap: .5rem; align-items: flex-end; max-width: 88%; }
.rmsg.me { align-self: flex-end; flex-direction: row-reverse; }
.rmsg.sys { align-self: center; color: var(--nevoa); font-size: .82rem; text-align: center; max-width: 100%; }
.rm-av, .rm-name, .mb-who { background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.rm-body { background: var(--noite); border-radius: 16px 16px 16px 4px; padding: .45rem .75rem .35rem; min-width: 0; }
.rmsg.me .rm-body { background: var(--chiclete); border-radius: 16px 16px 4px 16px; }
.rm-name { font-size: .8rem; font-weight: 700; color: var(--mel); display: block; margin-bottom: .1rem; }
.rm-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.rm-text i { opacity: .6; }
.rm-time { display: block; text-align: right; font-size: .7rem; opacity: .6; margin-top: .1rem; }
.rmsg[data-can-delete] { cursor: pointer; }
.room-input { display: flex; gap: .4rem; padding: .55rem; border-top: 1px solid var(--linha); background: var(--ameixa); }
.room-input input { border-radius: 999px; padding: .65rem 1rem; }
.member-list { display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--linha); }
.mb-who { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.mb-who em { color: var(--mel); font-style: normal; font-size: .8rem; margin-left: .3rem; }
.code { letter-spacing: .1em; color: var(--mel); }
@media (min-width: 900px) {
  #screen-call.in-rooms .rooms { grid-column: 1 / -1; margin: 0 1rem 1rem; }
}

/* Pessoas online */
.online-now { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--nevoa); font-size: .92rem; }
.online-now b { color: var(--texto); }
.online-now .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 color-mix(in srgb, var(--verde) 60%, transparent); animation: pulseOn 2s infinite; }
@keyframes pulseOn { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--verde) 55%, transparent); } 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--verde) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--verde) 0%, transparent); } }
.idle .online-now { justify-content: center; }
.login-title + .online-now { margin: -.4rem 0 .4rem; }

/* ---------- Aba de mensagens ---------- */
.nav-tabs button { position: relative; }
.badge { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--chiclete); color: #fff; font: 700 .7rem/1 var(--body); }
.nav-tabs .badge { position: absolute; top: -.25rem; right: -.2rem; }
.dm-threads { display: flex; flex-direction: column; background: var(--ameixa); border-radius: 18px; overflow: hidden; }
.dm-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; background: none; border: 0; border-bottom: 1px solid var(--linha); text-align: left; width: 100%; }
.dm-row:last-child { border-bottom: 0; }
.dm-av { position: relative; flex: none; }
.dm-av .av { width: 46px; height: 46px; }
.on-dot { position: absolute; right: 0; bottom: 0; width: .8rem; height: .8rem; border-radius: 50%; background: var(--verde); border: 2px solid var(--ameixa); }
.dm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-mid b { font-weight: 700; }
.dm-prev { color: var(--nevoa); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.dm-time { color: var(--nevoa); font-size: .78rem; }
.dm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; background: none; border: 0; text-align: left; padding: 0; }
.dm-who span { display: flex; flex-direction: column; min-width: 0; }
.dm-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-who small { color: var(--nevoa); font-size: .78rem; }
.seen { opacity: .9; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.pv-actions .btn { padding: .7rem .4rem; font-size: .9rem; }

/* ---------- Fotos e áudios nas mensagens ---------- */
.room-input .attach { cursor: pointer; }
.room-input .icon-btn { width: 40px; height: 40px; font-size: 1rem; }
.icon-btn.recording { width: auto; padding: 0 .7rem; border-radius: 999px; background: color-mix(in srgb, var(--chiclete) 30%, var(--ameixa)); border-color: var(--chiclete); color: #fff; font-size: .85rem; font-weight: 700; animation: none; }
.msg-img { display: block; border: 0; padding: 0; background: none; margin: .1rem 0 .25rem; }
.msg-img img { display: block; width: min(240px, 60vw); max-height: 320px; object-fit: cover; border-radius: 12px; background: var(--linha); }
.msg-audio { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 .2rem; }
.msg-audio audio { width: min(230px, 58vw); height: 36px; }
.msg-audio span { font-size: .75rem; opacity: .75; }
.viewer { display: block; max-width: 100%; max-height: 70dvh; margin: 0 auto; border-radius: 12px; }

/* ---------- Chamada recebida ---------- */
.incoming { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--linha) 70%, var(--chiclete) 12%), var(--noite) 70%); padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
.incoming .av-xl { width: 128px; height: 128px; font-size: 3.4rem; box-shadow: 0 0 0 0 color-mix(in srgb, var(--chiclete) 50%, transparent); animation: ringPulse 1.6s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chiclete) 50%, transparent); } 100% { box-shadow: 0 0 0 36px color-mix(in srgb, var(--chiclete) 0%, transparent); } }
.incoming b { font: 800 1.8rem var(--display); margin-top: 1rem; }
.incoming > span { color: var(--nevoa); }
.in-actions { display: flex; gap: 1.5rem; margin-top: 3rem; }
.in-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; color: #fff; font-size: 1.6rem; display: grid; place-items: center; position: relative; }
.in-btn span { position: absolute; top: calc(100% + .45rem); font-size: .8rem; color: var(--nevoa); white-space: nowrap; font-weight: 600; }
.in-btn.decline { background: #E0405A; }
.in-btn.accept { background: #22B573; }
.in-btn.voice { background: var(--linha); }

/* ---------- Abas: só ícones no celular ---------- */
@media (max-width: 520px) { .nav-tabs .tl { display: none; } .nav-tabs button { padding: .36rem .65rem; font-size: 1rem; } }

/* ---------- Pessoas online ---------- */
#online-view #on-q { margin-bottom: .6rem; }
.on-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.on-filters select { width: auto; padding: .45rem .7rem; border-radius: 999px; font-size: .9rem; background: var(--noite); }
.on-filters.locked .seg, .on-filters.locked select { opacity: .5; }
.on-filters .lock { width: auto; text-align: left; }
.on-list { display: flex; flex-direction: column; background: var(--ameixa); border-radius: 18px; overflow: hidden; }
.on-row { display: flex; align-items: center; gap: .4rem; padding: .6rem .7rem; border-bottom: 1px solid var(--linha); }
.on-row:last-child { border-bottom: 0; }
.on-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; background: none; border: 0; padding: 0; text-align: left; }
.on-actions { display: flex; gap: .3rem; flex: none; }
.on-actions .icon-btn { width: 38px; height: 38px; font-size: .95rem; }
.on-dot.busy { background: var(--mel); }
.st { font-size: .75rem; }
.st-on { color: var(--verde); } .st-busy { color: var(--mel); }

/* ---------- Anúncios (sempre fora da chamada e longe dos botões) ---------- */
.ad-slot { flex: none; margin-top: .5rem; padding: .4rem .5rem .5rem; background: var(--ameixa); border-radius: 14px; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: .68rem; color: var(--nevoa); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.ad-box { min-height: 50px; }
.ad-box img { max-width: 100%; height: auto; }
.auth-card .ad-slot { margin-top: 1.25rem; }
#room:not([hidden]) ~ .ad-slot, #dm-thread:not([hidden]) ~ .ad-slot { display: none !important; } /* nada de anúncio dentro de conversas */

/* Sala pausada (VIP do dono vencido) */
.room-card.paused { opacity: .7; border-style: dashed; }
.rc-paused { font-size: .8rem; color: var(--mel); white-space: nowrap; font-weight: 600; }

/* ---------- YouTube e links nas mensagens ---------- */
.rm-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rmsg:not(.me) .rm-text a { color: var(--mel); }
.yt { position: relative; display: block; width: min(280px, 64vw); aspect-ratio: 16/9; border: 0; padding: 0; margin: .3rem 0 .2rem; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 38px; border-radius: 10px; background: #FF0033; color: #fff; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-tag { position: absolute; left: .45rem; bottom: .4rem; font-size: .68rem; font-weight: 700; background: rgba(0,0,0,.65); color: #fff; padding: .1rem .4rem; border-radius: 6px; }
.yt-frame { display: block; width: min(280px, 64vw); aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: .3rem 0 .2rem; background: #000; }
.yt-frame.shorts { width: min(200px, 50vw); aspect-ratio: 9/16; }
@media (min-width: 700px) { .yt, .yt-frame { width: 360px; } .yt-frame.shorts { width: 240px; } }

/* ---------- Vídeos nas mensagens ---------- */
.msg-video { margin: .1rem 0 .25rem; }
.msg-video video { display: block; width: min(260px, 62vw); max-height: 360px; border-radius: 12px; background: #000; }
.msg-video span { display: block; font-size: .75rem; opacity: .75; margin-top: .2rem; }

/* ---------- Selos de dono e moderação ---------- */
.rbadge { display: inline-block; margin-left: .35rem; padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 700; vertical-align: .1em; }
.rbadge.owner { background: var(--mel); color: var(--noite); }
.rbadge.mod { background: #2E5BFF; color: #fff; }
.rbadge.staff { background: #22B573; color: #fff; }
.prof-view .rbadge { margin: .2rem 0 0; font-size: .78rem; }
.member { flex-wrap: wrap; }
.mb-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.mod-box { margin-top: 1rem; padding: .8rem; border: 1px dashed #22B573; border-radius: 14px; display: flex; flex-direction: column; gap: .3rem; }
.mod-box .pv-actions { margin-top: .3rem; }

/* ---------- Nick colorido (VIP) ---------- */
.nick.styled { font-weight: 800; }
.nick-box { background: var(--noite); border: 1px solid var(--linha); border-radius: 14px; padding: .7rem; display: flex; flex-direction: column; gap: .6rem; }
.nick-box.locked { opacity: .75; }
.nick-preview { text-align: center; font: 800 1.5rem var(--display); padding: .4rem; }
.nick-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.nick-presets button { background: var(--ameixa); border: 1px solid var(--linha); border-radius: 999px; padding: .3rem .65rem; font-size: .85rem; }
.nick-custom { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.nick-custom input[type=color] { width: 42px; height: 34px; padding: 2px; border-radius: 8px; }
.nick-custom input[type=range] { flex: 1; min-width: 120px; }
.nick-custom .seg button { font-size: .82rem; }
.nk-3 { display: flex; align-items: center; gap: .25rem; font-size: .85rem; color: var(--nevoa); }
.nk-3 input { width: auto; }
.row-btns { display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- Ícone e fundo das salas ---------- */
.room-ic { display: inline-block; margin-right: .35rem; vertical-align: -.15em; }
.room-ic.emoji { font-size: 1.1em; }
img.room-ic { width: 1.35em; height: 1.35em; border-radius: 6px; object-fit: cover; }
.room.has-bg .room-msgs { background: transparent; }
.room.has-bg .room-head, .room.has-bg .room-input { background: color-mix(in srgb, var(--noite) 55%, transparent); backdrop-filter: blur(8px); }
.room.has-bg .rmsg.sys { color: var(--texto); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.emoji-grid { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.emoji-grid button[data-e] { width: 40px; height: 40px; font-size: 1.25rem; background: var(--noite); border: 1px solid var(--linha); border-radius: 10px; }
.emoji-grid button[aria-pressed="true"], .bg-grid button[aria-pressed="true"] { outline: 2px solid var(--mel); outline-offset: 1px; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; }
.bg-grid button, .bg-up { height: 56px; border-radius: 12px; border: 1px solid var(--linha); color: #fff; font-size: .8rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: grid; place-items: center; cursor: pointer; }
.bg-none { background: var(--ameixa); }
.bg-up { background: var(--noite); }
.ap-preview { border-radius: 14px; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; min-height: 110px; border: 1px solid var(--linha); }
.ap-preview span { font: 700 1rem var(--display); }
.ap-msg { align-self: flex-start; background: var(--noite); padding: .4rem .7rem; border-radius: 14px 14px 14px 4px; font-size: .9rem; }

/* =================================================================
   Página de entrada: a conexão entre duas pessoas
   ================================================================= */
.landing { overflow-y: auto; position: relative; isolation: isolate;
  background:
    radial-gradient(60rem 40rem at 18% -10%, color-mix(in srgb, var(--chiclete) 20%, transparent), transparent 60%),
    radial-gradient(50rem 36rem at 110% 30%, color-mix(in srgb, var(--linha) 55%, transparent), transparent 60%),
    var(--noite); }
.landing > * { flex-shrink: 0; } /* rola em vez de espremer (o rodapé ficava por cima da cena) */
.landing-grid { width: min(100%, 1120px); margin: 0 auto; padding: 1.25rem 1.25rem 0; display: grid; gap: 1.5rem; }
.hero { display: flex; flex-direction: column; gap: .9rem; }
.hero .brand-mark .brand-name { font-size: 1.45rem; }
.hero-title { font: 800 clamp(2.15rem, 9vw, 3.9rem)/.98 var(--display); letter-spacing: -.035em; margin: .4rem 0 0; max-width: 14ch; text-wrap: balance; }
.hero-sub { color: color-mix(in srgb, var(--texto) 78%, var(--nevoa)); font-size: 1.05rem; line-height: 1.45; margin: 0; max-width: 34ch; }

/* cena: duas câmeras e a estrela da marca no meio */
.spark-scene { position: relative; height: 210px; margin: .4rem 0 .2rem; }
.cam { position: absolute; top: 18px; width: 118px; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.14); }
.cam-a { left: calc(50% - 150px); background: linear-gradient(165deg, #FF9EC0, #B23CF0 70%, #5A1FA8); transform: rotate(-7deg); }
.cam-b { right: calc(50% - 150px); background: linear-gradient(165deg, #FFD98A, #FF6A8B 60%, #C2185B); transform: rotate(6deg); }
/* silhueta abstrata (cabeça e ombros), sem rosto */
.sil, .sil::after { position: absolute; left: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--noite) 32%, transparent); }
.sil { bottom: -14%; width: 86%; height: 44%; border-radius: 50% 50% 0 0; }
.sil::after { content: ''; bottom: 118%; width: 52%; aspect-ratio: 1; border-radius: 50%; }
.cam-tag { position: absolute; left: .5rem; bottom: .5rem; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--noite) 60%, transparent); backdrop-filter: blur(6px); }
.spark-core { position: absolute; left: 50%; top: 92px; width: 58px; height: 58px; transform: translate(-50%, -50%); }
.spark-core svg { position: relative; width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 10px var(--mel)) drop-shadow(0 0 22px var(--chiclete)); }
.spark-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mel) 55%, transparent), color-mix(in srgb, var(--chiclete) 25%, transparent) 40%, transparent 70%); }
.bubble { position: absolute; font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 14px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.b1 { left: calc(50% - 178px); top: 4px; background: #fff; color: var(--noite); border-bottom-left-radius: 4px; }
.b2 { right: calc(50% - 186px); bottom: 2px; background: var(--chiclete); color: #fff; border-bottom-right-radius: 4px; }

/* uma única sequência de abertura */
@media (prefers-reduced-motion: no-preference) {
  .cam-a { animation: camInA .9s cubic-bezier(.2,.8,.2,1) both; }
  .cam-b { animation: camInB .9s cubic-bezier(.2,.8,.2,1) both; }
  .spark-core { animation: sparkPop .7s cubic-bezier(.3,1.6,.5,1) .75s both; }
  .spark-glow { animation: glowFlash 1.4s ease-out .8s both; }
  .b1 { animation: bubbleIn .45s ease-out 1.25s both; }
  .b2 { animation: bubbleIn .45s ease-out 1.6s both; }
}
@keyframes camInA { from { transform: translateX(-60px) rotate(-14deg); opacity: 0; } }
@keyframes camInB { from { transform: translateX(60px) rotate(13deg); opacity: 0; } }
@keyframes sparkPop { from { transform: translate(-50%, -50%) scale(0) rotate(-45deg); opacity: 0; } }
@keyframes glowFlash { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.35); } 100% { opacity: .55; transform: scale(1); } }
@keyframes bubbleIn { from { transform: translateY(8px) scale(.9); opacity: 0; } }

/* painel do formulário */
.auth-card { background: var(--ameixa); border-radius: 28px; padding: 1.4rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07); }
.auth-title { font: 800 1.35rem/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.auth-card .tabs { background: var(--noite); }
.auth-card input, .auth-card select { background: var(--noite); }
.auth-card .btn-primary { min-height: 52px; font-size: 1.05rem; background: linear-gradient(180deg, color-mix(in srgb, var(--chiclete) 78%, #fff), var(--chiclete)); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--chiclete) 80%, transparent); }
.auth-card .btn-primary:active { transform: translateY(1px); }
.landing-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 1.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .85rem; }
.landing-foot a { color: var(--nevoa); text-decoration: none; }
.landing-foot a:hover { color: var(--texto); text-decoration: underline; }

/* computador: texto e cena à esquerda, formulário à direita */
@media (min-width: 960px) {
  .landing-grid { grid-template-columns: 1fr 440px; align-items: center; min-height: calc(100dvh - 90px); padding-top: 2rem; gap: 3rem; }
  .hero { gap: 1.1rem; }
  .spark-scene { height: 300px; margin-top: 1rem; }
  .cam { width: 170px; top: 22px; border-radius: 28px; }
  .cam-a { left: calc(50% - 210px); } .cam-b { right: calc(50% - 210px); }
  .spark-core { width: 78px; height: 78px; top: 135px; }
  .b1 { left: calc(50% - 250px); top: 0; } .b2 { right: calc(50% - 255px); bottom: 0; }
  .auth-card { padding: 2rem 2rem 2.1rem; }
}
/* celular: cena compacta para o formulário aparecer sem rolar muito */
@media (max-width: 959px) {
  .landing-grid { gap: 1rem; padding-top: 1rem; }
  .hero { gap: .6rem; }
  .hero-title { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero-sub { font-size: .98rem; }
  .spark-scene { height: 152px; margin: .1rem 0 0; }
  .cam { width: 86px; top: 10px; border-radius: 18px; }
  .cam-a { left: calc(50% - 112px); } .cam-b { right: calc(50% - 112px); }
  .spark-core { width: 42px; height: 42px; top: 66px; }
  .spark-glow { inset: -28px; }
  .cam-tag { font-size: .64rem; left: .35rem; bottom: .35rem; }
  .b1 { left: calc(50% - 150px); top: 0; } .b2 { right: calc(50% - 150px); bottom: 0; }
  .bubble { font-size: .75rem; padding: .28rem .6rem; }
  .auth-card { gap: .85rem; }
}
@media (max-width: 959px) and (max-height: 760px) { .hero-sub { display: none; } } /* celulares mais baixos */
@media (max-width: 380px) { .cam { width: 78px; } .cam-a { left: calc(50% - 100px); } .cam-b { right: calc(50% - 100px); } .b1 { left: 4px; } .b2 { right: 4px; } }

/* Logo enviado no painel substitui a estrela padrão */
.brand-mark.has-logo .brand-name::before { display: none; }
.brand-mark img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.top-logo { height: 26px !important; }
.foot-copy { color: var(--nevoa); opacity: .7; }
/* cor principal configurável também nos destaques da entrada */
.b2 { background: var(--chiclete); }

/* Vitrine: foto real (autorizada e aprovada) no lugar da silhueta */
.cam.photo { background-size: cover; background-position: center; }
.cam.photo .sil { display: none; }
.cam.photo::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--noite) 75%, transparent)); }
.cam.photo .cam-tag { z-index: 1; }

/* =================================================================
   Temas: texto legível sobre a cor principal (claro ou escuro, calculado pelo servidor)
   ================================================================= */
.btn-primary, .spark-btn, .spark-label, .msg.me, .rmsg.me .rm-body, .badge, .b2, .icon-btn.recording,
.nick-presets button[aria-pressed="true"], .pix-btn { color: var(--on-chiclete); }
.rmsg.me .rm-name, .rmsg.me .rm-time { color: var(--on-chiclete); }
.searching .spark-btn .spark-label { color: var(--texto); }

/* Escolha de tema no perfil */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; }
.th-card { position: relative; border: 2px solid; border-radius: 14px; padding: .55rem; display: flex; flex-direction: column; gap: .45rem; text-align: left; min-height: 74px; cursor: pointer; }
.th-card[aria-pressed="true"]::after { content: '✓'; position: absolute; top: .3rem; right: .45rem; font-weight: 800; color: var(--verde); }
.th-bar { display: flex; gap: .3rem; padding: .35rem; border-radius: 8px; }
.th-bar i { width: 16px; height: 16px; border-radius: 50%; }
.th-card b { font-size: .85rem; }
.th-lock { position: absolute; right: .4rem; bottom: .35rem; font-size: .68rem; font-weight: 700; color: #f5c542; }

/* ---------- Menu ⋯, curtidas, respostas e menções ---------- */
.rmsg { position: relative; }
.rm-col { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.rmsg.me .rm-col { align-items: flex-end; }
.rm-more { align-self: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--nevoa);
  font-size: 1.1rem; line-height: 1; opacity: .55; cursor: pointer; }
.rm-more:hover, .rm-more:focus-visible { opacity: 1; background: var(--linha); }
.rmsg.me .rm-more { order: -1; }
.rm-likes:empty { display: none; }
.rm-like { margin-top: -.35rem; align-self: flex-start; position: relative; z-index: 1; border: 1px solid var(--linha); background: var(--ameixa); color: var(--texto);
  border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; cursor: pointer; }
.rmsg.me .rm-like { align-self: flex-end; }
.rm-like.on { border-color: var(--chiclete); }
.rm-quote { display: flex; flex-direction: column; gap: .05rem; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--mel); border-radius: 8px;
  background: color-mix(in srgb, var(--noite) 45%, transparent); color: inherit; padding: .3rem .5rem; margin: .1rem 0 .3rem; cursor: pointer; font-size: .82rem; }
.rm-quote b { font-size: .78rem; }
.rm-quote span { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mention { font-weight: 700; color: var(--mel); }
.rmsg.me .mention { color: inherit; text-decoration: underline; }
.mention.me { background: color-mix(in srgb, var(--mel) 25%, transparent); border-radius: 4px; padding: 0 .15rem; }
.rmsg.mentioned .rm-body { box-shadow: inset 3px 0 0 var(--mel); }
.rmsg.flash .rm-body { animation: msgFlash 1.4s ease-out; }
@keyframes msgFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--mel); } 100% { box-shadow: 0 0 0 0 transparent; } }
.reply-bar { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; margin: 0 .6rem; border-left: 3px solid var(--mel);
  background: var(--noite); border-radius: 10px; font-size: .85rem; color: var(--nevoa); }
.reply-bar .rb-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar .rb-text b { color: var(--texto); }
.rb-x { border: 0; background: none; color: var(--nevoa); font-size: 1rem; cursor: pointer; }
.msg-actions { display: flex; flex-direction: column; gap: .4rem; }
.msg-actions button { text-align: left; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--linha); background: var(--noite); color: var(--texto); font-size: 1rem; cursor: pointer; }
.msg-actions button.danger { color: color-mix(in srgb, var(--chiclete) 60%, var(--texto)); }

.video-fail { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px;
  background: color-mix(in srgb, var(--noite) 60%, transparent); font-size: .88rem; max-width: 260px; }
.video-fail a { color: inherit; text-decoration: none; }

/* vídeos e áudios das mensagens sempre recebem o toque no play */
.msg-video video, .msg-audio audio { pointer-events: auto; }

/* Botão de play próprio dos vídeos das mensagens */
.mv-frame { position: relative; display: inline-block; line-height: 0; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.55); color: #fff; font-size: 1.5rem; line-height: 1; padding-left: .3rem;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.vplay:active { transform: translate(-50%, -50%) scale(.94); }

.media-removed { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .6rem; margin: .1rem 0 .25rem; border-radius: 10px;
  border: 1px dashed var(--linha); font-size: .85rem; opacity: .75; }

/* Sessão salva: em vez da tela de entrada, a marca carregando até o site abrir */
#boot-splash { display: none; position: fixed; inset: 0; z-index: 50; background: var(--noite); flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
html.has-session:not(.app-ready) #boot-splash { display: flex; }
html.has-session #screen-login { display: none !important; }
#boot-splash .brand-name { font-size: 1.8rem; }
.boot-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--linha); border-top-color: var(--chiclete); animation: bootSpin .8s linear infinite; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation-duration: 2.4s; } }

/* ---------- IA ---------- */
.rbadge.ai { background: linear-gradient(90deg, #7c4dff, #22c1ee); color: #fff; }
.ai-av { background: linear-gradient(135deg, #7c4dff, #22c1ee) !important; color: #fff; font-size: 1rem; }
.dm-av .ai-av { width: 46px; height: 46px; font-size: 1.4rem; }
.ai-row { background: color-mix(in srgb, #7c4dff 12%, transparent) !important; }
.rmsg.from-ai .rm-body { border: 1px solid color-mix(in srgb, #7c4dff 45%, transparent); }
.rm-name[data-uid=""], .rm-name:not([data-uid]) { cursor: default; }
.ai-typing { display: flex; align-items: center; gap: .5rem; color: var(--nevoa); font-size: .88rem; padding: .3rem .2rem; }
.ai-typing i { font-style: normal; animation: aiDot 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

/* nome também nas suas mensagens (lado direito), alinhado à direita */
.rmsg.me .rm-name.mine { text-align: right; opacity: .92; }
.rmsg.me .rm-name.mine .nick.styled { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)); }
