/* =====================================================================
   CONEXA — sistema visual
   Roxo neon · azul elétrico · preto profundo · branco
   ===================================================================== */
/* Fonte Sora (incluída no projeto, funciona sem internet) */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fontes/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fontes/sora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --void: #05050b;
  --bg: #08080f;
  --painel: rgba(14, 13, 26, 0.52);
  --painel-forte: rgba(20, 19, 36, 0.92);
  --painel-claro: rgba(255, 255, 255, 0.035);
  --borda: rgba(255, 255, 255, 0.07);
  --borda-forte: rgba(255, 255, 255, 0.13);
  --texto: #f2f1ff;
  --suave: #a6a3c6;
  --dim: #6f6b92;
  --roxo: #a855f7;
  --roxo-claro: #d8b4fe;
  --indigo: #6366f1;
  --azul: #3b82f6;
  --ciano: #22d3ee;
  --ok: #34d399;
  --aviso: #fbbf24;
  --perigo: #fb4f7a;
  --grad: linear-gradient(135deg, #b46cff 0%, #7c5cff 45%, #3b82f6 100%);
  --grad-suave: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(59, 130, 246, 0.14));
  --glow: 0 0 24px rgba(168, 85, 247, 0.35);
  --raio: 20px;
  --raio-m: 14px;
  --raio-p: 10px;
  --fonte: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14.5px/1.5 var(--fonte);
    background: var(--void);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: rgba(168, 85, 247, 0.4); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.18); }
.gradiente { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
kbd {
  font: 600 11px/1 var(--fonte); color: var(--suave); padding: 4px 6px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--borda); border-bottom-width: 2px;
}

/* ---------- ambiente ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .6; will-change: transform; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: radial-gradient(circle, rgba(168,85,247,.55), transparent 65%); animation: deriva1 28s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 48vw; height: 48vw; right: -16vw; bottom: -24vw; background: radial-gradient(circle, rgba(59,130,246,.5), transparent 65%); animation: deriva2 34s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 26vw; height: 26vw; left: 46vw; top: 30vh; background: radial-gradient(circle, rgba(99,102,241,.28), transparent 65%); animation: deriva1 40s ease-in-out infinite alternate-reverse; }
@keyframes deriva1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes deriva2 { to { transform: translate(-6vw, -8vh) scale(1.1); } }
.particulas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nota-inline { color: var(--dim); font-size: 12px; }
.grade-fundo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
.vidro {
  background: var(--painel);
  border: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
}
.vidro-forte {
  background: var(--painel-forte);
  border: 1px solid var(--borda-forte);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -12px rgba(0,0,0,.7);
}

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(168,85,247,.45)); }
.logo-txt { font: 700 17px/1 var(--display); letter-spacing: .24em; background: linear-gradient(90deg, #fff, #d8d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca.grande .logo-mark { width: 64px; height: 64px; }
.marca.grande .logo-txt { font-size: 24px; letter-spacing: .3em; }

/* ---------- botões base ---------- */
.icon-btn {
  all: unset; box-sizing: border-box; position: relative; width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border-radius: 12px; color: var(--suave); cursor: pointer;
  transition: background .18s var(--ease), color .18s, transform .12s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--texto); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:focus-visible, .canal:focus-visible, .com-ic:focus-visible, button:focus-visible { outline: 2px solid var(--roxo); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.desligado { color: var(--perigo); }
.icon-btn.ligado { color: var(--ok); }
.icon-btn.perigo:hover { background: rgba(251,79,122,.16); color: var(--perigo); }
.mini-btn {
  all: unset; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px;
  color: var(--dim); cursor: pointer; transition: .18s var(--ease);
}
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn:hover { color: #fff; background: var(--grad); box-shadow: var(--glow); transform: rotate(90deg); }
.btn-neon {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 650; letter-spacing: .01em;
  box-shadow: 0 10px 30px -8px rgba(124,92,255,.7), 0 0 0 1px rgba(255,255,255,.14) inset;
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s;
}
.btn-neon::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(124,92,255,.85), 0 0 0 1px rgba(255,255,255,.2) inset; }
.btn-neon:hover::before { transform: translateX(120%); }
.btn-neon:active { transform: translateY(0) scale(.98); }
.btn-neon i svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn-neon:hover i svg { transform: translateX(3px); }
.btn-neon.p { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn-neon.carregando { pointer-events: none; filter: saturate(.7); }
.btn-neon.carregando span, .btn-neon.carregando i { opacity: 0; }
.btn-neon.carregando::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: gira .8s linear infinite; }
.btn-sutil {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--borda); color: var(--texto); font-weight: 550; font-size: 13.5px;
  transition: .18s var(--ease);
}
.btn-sutil svg { width: 17px; height: 17px; color: var(--roxo-claro); }
.btn-sutil:hover { background: rgba(255,255,255,.08); border-color: var(--borda-forte); }
.link { all: unset; cursor: pointer; color: var(--roxo-claro); font-size: 12.5px; font-weight: 550; }
.link:hover { text-decoration: underline; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- avatares e status ---------- */
.avatar {
  --c: #a855f7; position: relative; width: 36px; height: 36px; flex: none; border-radius: 34%;
  display: grid; place-items: center; font: 650 13px/1 var(--display); color: #fff; letter-spacing: .02em;
  background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 92%, #fff 8%) 0%, color-mix(in srgb, var(--c) 55%, #120f24) 75%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 6px 14px -6px color-mix(in srgb, var(--c) 70%, transparent);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: box-shadow .15s;
}
.avatar.p { width: 24px; height: 24px; font-size: 9.5px; border-radius: 32%; }
.avatar.g { width: 44px; height: 44px; font-size: 16px; }
.avatar.xg { width: 64px; height: 64px; font-size: 22px; }
.avatar.grande { width: 92px; height: 92px; font-size: 32px; border-radius: 32%; }
.avatar[data-status]::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); border: 2.5px solid var(--bg);
}
.avatar[data-status="ausente"]::after { background: var(--aviso); }
.avatar[data-status="ocupado"]::after { background: var(--perigo); }
.falando > .avatar, .avatar.falando { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ok), 0 0 18px rgba(52,211,153,.6); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.online { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.7); }
.dot.ausente { background: var(--aviso); }
.dot.ocupado { background: var(--perigo); }
.ao-vivo {
  display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, #fb4f7a, #f472b6); color: #fff;
  font: 750 9.5px/1 var(--fonte); letter-spacing: .08em; padding: 4px 6px; border-radius: 6px;
  box-shadow: 0 0 12px rgba(251,79,122,.5);
}
.ao-vivo::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: piscar 1.4s ease-in-out infinite; }
@keyframes piscar { 50% { opacity: .25; } }
.ic svg { width: 15px; height: 15px; color: var(--suave); }
.ic.off svg { color: var(--perigo); }
.tag { background: rgba(168,85,247,.16); color: var(--roxo-claro); border-radius: 6px; padding: 0 4px; font-weight: 550; }

/* mensagens */
.erro { color: var(--perigo); margin: 0; font-size: 13.5px; line-height: 1.45; }
.aviso { margin: 8px 0 0; font-size: 13px; color: #fde68a; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.18); border-radius: 12px; padding: 10px 12px; }

/* campos */
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo > span { font-size: 12.5px; font-weight: 600; color: var(--suave); letter-spacing: .01em; }
.campo > span small { color: var(--dim); font-weight: 500; }
.campo input, .campo select, .input-ic {
  height: 46px; width: 100%; padding: 0 14px; border-radius: 12px; outline: none;
  background: rgba(255,255,255,.035); border: 1px solid var(--borda); color: var(--texto); font-size: 14.5px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.campo select option { background: #15142a; }
.campo input::placeholder { color: var(--dim); }
.campo input:focus, .campo select:focus, .input-ic:focus-within {
  border-color: rgba(168,85,247,.55); background: rgba(168,85,247,.05); box-shadow: 0 0 0 4px rgba(168,85,247,.13);
}
.input-ic { display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; }
.input-ic svg { width: 18px; height: 18px; color: var(--roxo-claro); flex: none; }
.input-ic input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 12px 0 0; height: 100%; }

/* =====================================================================
   APLICATIVO
   ===================================================================== */
.app {
  position: relative; z-index: 1; height: 100vh; height: 100dvh; display: grid; gap: 10px;
  padding: 8px 10px 10px;
  grid-template-columns: 66px 268px minmax(0, 1fr);
  grid-template-rows: 54px minmax(0, 1fr);
  grid-template-areas: "topo topo topo" "rail side work";
}

/* ---------- barra superior ---------- */
.topbar { grid-area: topo; display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 8px; }
.topbar .marca { width: 332px; flex: none; }
.busca {
  position: relative; flex: 1; max-width: 560px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--borda);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.busca:focus-within, .busca.aberta { border-color: rgba(168,85,247,.45); background: rgba(20,18,36,.8); box-shadow: 0 0 0 4px rgba(168,85,247,.1), 0 10px 30px -10px rgba(124,92,255,.4); }
.busca-ic svg { width: 18px; height: 18px; color: var(--dim); }
.busca input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; }
.busca input::placeholder { color: var(--dim); }
.busca input::-webkit-search-cancel-button { filter: invert(1) opacity(.4); }
.top-acoes { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ancora { position: relative; }
.pill-voz {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px 0 12px; margin-right: 6px; border-radius: 999px; cursor: pointer;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7f3d0; font-size: 13px; font-weight: 600;
  animation: surge .35s var(--ease);
}
.pill-voz #pillTexto { white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.pill-voz time { font-variant-numeric: tabular-nums; color: rgba(167,243,208,.7); font-weight: 500; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; border-radius: 2px; background: var(--ok); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; } .eq i:nth-child(2) { height: 100%; animation-delay: .2s; } .eq i:nth-child(3) { height: 45%; animation-delay: .4s; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.eq i { transform-origin: bottom; }
.sino .badge {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: linear-gradient(135deg, #f472b6, #a855f7); color: #fff; font: 700 10px/17px var(--fonte); font-style: normal; text-align: center;
  box-shadow: 0 0 0 2.5px var(--void), 0 0 12px rgba(244,114,182,.7); animation: pop .35s var(--ease);
}
.sino.balanca svg { animation: balanca .7s var(--ease); transform-origin: 50% 10%; }
@keyframes balanca { 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.perfil-chip { all: unset; cursor: pointer; padding: 3px; margin-left: 4px; border-radius: 14px; transition: .2s; }
.perfil-chip:hover { background: rgba(255,255,255,.06); }
.perfil-chip .avatar { width: 34px; height: 34px; }
.perfil-chip .avatar[data-status]::after { border-color: var(--void); }

/* dropdowns */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; border-radius: 18px; padding: 8px;
  background: var(--painel-forte); border-color: var(--borda-forte);
  animation: desce .22s var(--ease); transform-origin: top right;
}
@keyframes desce { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.dd-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; }
.dd-cab b { font: 650 14px var(--display); }
.dd-cab small { color: var(--dim); }
.painel-notif { width: 380px; }
.notif-lista { max-height: min(460px, 62vh); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.notif {
  all: unset; box-sizing: border-box; display: flex; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; position: relative;
  transition: background .15s;
}
.notif:hover { background: rgba(255,255,255,.05); }
.notif.nova::after { content: ""; position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--roxo); box-shadow: 0 0 10px var(--roxo); }
.notif.mencao { background: linear-gradient(90deg, rgba(168,85,247,.1), transparent); }
.n-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; padding-right: 14px; }
.n-cab { display: flex; align-items: center; gap: 8px; }
.n-cab time { margin-left: auto; font-size: 11.5px; color: var(--dim); }
.n-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--roxo-claro); }
.n-tag svg { width: 12px; height: 12px; }
.n-txt small { color: var(--dim); font-size: 12px; }
.n-msg { color: var(--suave); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vazio-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; text-align: center; color: var(--dim); font-size: 13px; }
.vazio-mini svg { width: 26px; height: 26px; color: var(--roxo-claro); opacity: .7; margin-bottom: 4px; }
.vazio-mini b { color: var(--texto); font-size: 14px; }
.menu-perfil { width: 270px; }
.mp-cab { display: flex; align-items: center; gap: 12px; padding: 10px; }
.mp-cab b { display: block; font: 650 15px var(--display); }
.mp-cab small { color: var(--suave); }
.mp-status { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; margin: 4px 0; border-block: 1px solid var(--borda); }
.mp-status button, .mp-item {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 10px;
  cursor: pointer; font-size: 13.5px; transition: background .15s;
}
.mp-status button:hover, .mp-item:hover { background: rgba(255,255,255,.05); }
.mp-status button.ativo { background: rgba(168,85,247,.12); }
.mp-status button.ativo::after { content: "✓"; margin-left: auto; color: var(--roxo-claro); font-weight: 700; }
.mp-item svg { width: 18px; height: 18px; color: var(--suave); }
.mp-item.perigo { color: var(--perigo); }
.mp-item.perigo svg { color: var(--perigo); }

/* resultados da busca */
.busca-res { left: 0; right: 0; width: auto; transform-origin: top center; max-height: min(520px, 70vh); overflow-y: auto; }
.res { all: unset; box-sizing: border-box; display: flex; gap: 11px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer; }
.res:hover, .res:focus-visible { background: rgba(255,255,255,.05); }
.res > span:last-child { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.r-cab { display: flex; align-items: center; gap: 8px; }
.r-cab b { font-size: 13.5px; }
.r-cab small { display: flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; }
.r-cab small svg { width: 12px; height: 12px; }
.r-txt { color: var(--suave); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
mark { background: rgba(168,85,247,.32); color: #fff; border-radius: 4px; padding: 0 2px; }

/* ---------- trilho de comunidades ---------- */
.rail {
  grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.com-ic {
  --c: #a855f7; all: unset; box-sizing: border-box; position: relative; width: 48px; height: 48px; border-radius: 16px; cursor: pointer;
  display: grid; place-items: center; font: 700 15px/1 var(--display); color: #fff; letter-spacing: .02em;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 62%, #0b0a16), color-mix(in srgb, var(--c) 18%, #0b0a16));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s var(--ease), border-radius .25s var(--ease), box-shadow .25s;
}
.com-ic:hover { transform: translateY(-2px); border-radius: 18px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c) 80%, transparent); }
.com-ic.ativo { border-radius: 18px; box-shadow: 0 0 0 2px var(--void), 0 0 0 3.5px var(--c), 0 0 26px -2px color-mix(in srgb, var(--c) 70%, transparent); }
.com-ic::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0;
  background: var(--grad); box-shadow: 0 0 12px rgba(168,85,247,.8); transform: translateY(-50%); transition: height .25s var(--ease);
}
.com-ic.nao-lida::before { height: 8px; }
.com-ic.ativo::before { height: 28px; }
.com-ic em {
  position: absolute; right: -5px; bottom: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: linear-gradient(135deg, #f472b6, #a855f7); font: 700 10px/18px var(--fonte); text-align: center; font-style: normal;
  box-shadow: 0 0 0 3px var(--void);
}
.com-ic .na-voz { position: absolute; left: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--ok); color: #052e1f; box-shadow: 0 0 0 3px var(--void); }
.com-ic .na-voz svg { width: 12px; height: 12px; stroke-width: 2.5; }
.rail-sep { width: 28px; height: 1px; background: var(--borda-forte); flex: none; }
.rail-novo {
  all: unset; box-sizing: border-box; width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; cursor: pointer;
  border: 1.5px dashed rgba(168,85,247,.45); color: var(--roxo-claro); transition: .25s var(--ease);
}
.rail-novo svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.rail-novo:hover { border-style: solid; border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.rail-novo:hover svg { transform: rotate(90deg); }

/* ---------- barra lateral ---------- */
.sidebar { grid-area: side; display: flex; flex-direction: column; min-height: 0; border-radius: var(--raio); overflow: hidden; }
.com-cab { --c: #a855f7; position: relative; padding: 18px 16px 16px; border-bottom: 1px solid var(--borda); flex: none; overflow: hidden; }
.com-banner {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--c) 42%, transparent), transparent 55%),
              radial-gradient(90% 120% at 100% 0%, rgba(59,130,246,.18), transparent 60%);
}
.com-banner::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--c), transparent); opacity: .6; }
.com-info { position: relative; }
.com-info .com-nome { display: block; margin: 0 0 4px; font: 650 17px/1.25 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-info p { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--suave); }
.com-info .sep { color: var(--dim); }
.ao-vivo-txt { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
.ao-vivo-txt svg { width: 13px; height: 13px; }
.canais { flex: 1; overflow-y: auto; padding: 6px 10px 14px; }
.secao {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 8px 6px;
  color: var(--dim); font: 650 10.5px/1 var(--fonte); text-transform: uppercase; letter-spacing: .14em;
}
.canais ul, .membros ul { list-style: none; margin: 0; padding: 0; }
.canal {
  all: unset; box-sizing: border-box; position: relative; display: flex; gap: 10px; align-items: center; width: 100%;
  height: 36px; padding: 0 10px; margin: 1px 0; border-radius: 11px; color: var(--suave); cursor: pointer;
  transition: background .18s, color .18s;
}
.canal svg { width: 17px; height: 17px; flex: none; opacity: .7; transition: .2s; }
.canal:hover { background: rgba(255,255,255,.045); color: var(--texto); }
.canal:hover svg { opacity: 1; color: var(--roxo-claro); }
.canal.ativo { color: #fff; background: linear-gradient(90deg, rgba(168,85,247,.2), rgba(59,130,246,.07)); box-shadow: 0 0 0 1px rgba(168,85,247,.18) inset; }
.canal.ativo svg { opacity: 1; color: var(--roxo-claro); filter: drop-shadow(0 0 6px rgba(168,85,247,.8)); }
.canal.ativo::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 10px rgba(168,85,247,.9); }
.canal.novo { color: #fff; font-weight: 600; }
.canal .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.canal em { font-style: normal; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 1px 7px; }
.canal em.mencao { background: linear-gradient(135deg, #f472b6, #a855f7); box-shadow: 0 0 10px rgba(244,114,182,.5); }
.canal small { font-size: 11.5px; color: var(--ok); font-weight: 600; }
.canal .entrar { font-size: 11.5px; font-weight: 600; color: var(--roxo-claro); opacity: 0; transform: translateX(-4px); transition: .18s var(--ease); }
.canal:hover .entrar { opacity: 1; transform: none; }
.sala.minha > .canal { color: #a7f3d0; background: rgba(52,211,153,.08); box-shadow: 0 0 0 1px rgba(52,211,153,.2) inset; }
.sala.minha > .canal svg { color: var(--ok); filter: drop-shadow(0 0 6px rgba(52,211,153,.7)); }
.sala.minha > .canal::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.voz-membros { position: relative; padding: 2px 0 6px 28px; }
.voz-membros::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 10px; width: 1px; background: linear-gradient(var(--borda-forte), transparent); }
.membro { display: flex; align-items: center; gap: 9px; padding: 4px 8px; font-size: 13.5px; color: var(--suave); border-radius: 9px; min-width: 0; }
.membro .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.membro.falando .nome { color: #fff; }
.membro .estado { display: flex; gap: 5px; align-items: center; }

.voz-card {
  margin: 0 10px 10px; padding: 12px; border-radius: var(--raio-m); flex: none;
  background: linear-gradient(160deg, rgba(52,211,153,.1), rgba(52,211,153,.02)); border: 1px solid rgba(52,211,153,.22);
  animation: surge .3s var(--ease);
}
.voz-card.alerta { background: linear-gradient(160deg, rgba(251,191,36,.12), rgba(251,191,36,.02)); border-color: rgba(251,191,36,.3); }
.vc-topo { display: flex; align-items: center; gap: 10px; }
.vc-sinal svg { width: 20px; height: 20px; color: var(--ok); }
.voz-card.alerta .vc-sinal svg, .voz-card.alerta .vc-info b { color: var(--aviso); }
.vc-info { flex: 1; min-width: 0; }
.vc-info b { display: block; color: var(--ok); font-size: 13px; }
.vc-info small { display: block; color: var(--suave); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.vc-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--borda); font-size: 12.5px; font-weight: 600; transition: .18s;
}
.vc-btn svg { width: 16px; height: 16px; }
.vc-btn:hover { background: rgba(255,255,255,.09); }
.vc-btn.ligado { background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.vc-btn.indisponivel, .tb-btn.indisponivel { opacity: .35; }
.user-card { display: flex; align-items: center; gap: 2px; padding: 10px; border-top: 1px solid var(--borda); background: rgba(0,0,0,.18); flex: none; }
.uc-perfil { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 4px 6px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.uc-perfil:hover { background: rgba(255,255,255,.05); }
.uc-perfil .avatar[data-status]::after { border-color: #0e0d19; }
.uc-nome { display: flex; flex-direction: column; min-width: 0; }
.uc-nome b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-nome small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--suave); }
.uc-nome .dot { width: 6px; height: 6px; box-shadow: none; }
.user-card .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
.user-card .icon-btn svg { width: 18px; height: 18px; }

/* ---------- área de trabalho ---------- */
.workspace {
  grid-area: work; display: grid; gap: 10px; min-height: 0; min-width: 0;
  grid-template-columns: minmax(0, 1fr) 276px; grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "main dock";
}
.stage-wrap, .dock-tabs { display: none; }
.chat { grid-area: main; }
.membros { grid-area: dock; }
.app.sem-membros .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.app.sem-membros .membros { display: none; }
.app.em-voz .workspace {
  grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "main tabs" "main dock";
}
.app.em-voz .stage-wrap { display: flex; grid-area: main; }
.app.em-voz .dock-tabs { display: flex; grid-area: tabs; }
.app.em-voz .chat { grid-area: dock; }
.app.em-voz .membros { grid-area: dock; display: none; }
.app.em-voz.aba-membros .chat { display: none; }
.app.em-voz.aba-membros .membros { display: flex; }
.app.em-voz.dock-oculto .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "main"; }
.app.em-voz.dock-oculto .chat, .app.em-voz.dock-oculto .membros, .app.em-voz.dock-oculto .dock-tabs { display: none; }

.painel-cab { display: flex; align-items: center; gap: 12px; height: 62px; flex: none; padding: 0 16px 0 14px; border-bottom: 1px solid var(--borda); }
.cab-ic {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad-suave); border: 1px solid rgba(168,85,247,.22); color: var(--roxo-claro);
}
.cab-ic svg { width: 18px; height: 18px; }
.cab-ic.voz { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); color: var(--ok); }
.cab-titulo { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cab-titulo b { font: 650 15.5px/1.25 var(--display); letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-titulo small { color: var(--suave); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--raio); overflow: hidden; }
.messages { flex: 1; overflow-y: auto; padding: 8px 0 10px; overscroll-behavior: contain; scroll-behavior: auto; }
.carregando-msgs { height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.carregando-msgs i, .pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--roxo-claro); animation: salto 1s ease-in-out infinite; }
.carregando-msgs i:nth-child(2), .pontos i:nth-child(2) { animation-delay: .15s; }
.carregando-msgs i:nth-child(3), .pontos i:nth-child(3) { animation-delay: .3s; }
@keyframes salto { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.boas-vindas { padding: 34px 22px 18px; }
.bv-ic {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--grad); box-shadow: 0 12px 30px -8px rgba(124,92,255,.7), 0 0 0 1px rgba(255,255,255,.18) inset; color: #fff;
}
.bv-ic svg { width: 28px; height: 28px; }
.boas-vindas h3 { margin: 0 0 6px; font: 700 26px/1.15 var(--display); letter-spacing: -.025em; }
.boas-vindas p { margin: 0; color: var(--suave); max-width: 520px; }
.dia { display: flex; align-items: center; gap: 14px; padding: 14px 22px 6px; color: var(--dim); font: 600 11.5px/1 var(--fonte); letter-spacing: .04em; text-transform: capitalize; }
.dia::before, .dia::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--borda-forte), transparent); }
.msg { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 7px 22px 3px 0; transition: background .2s; }
.msg.cont { padding-top: 1px; }
.msg:hover { background: rgba(255,255,255,.022); }
.msg > .avatar { margin: 3px auto 0; }
.msg.nova { animation: entra .32s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.hora-lateral { font-size: 10.5px; color: var(--dim); text-align: center; opacity: 0; padding-top: 4px; font-variant-numeric: tabular-nums; }
.msg:hover .hora-lateral { opacity: 1; }
.cab { display: flex; align-items: baseline; gap: 9px; }
.cab b { font-weight: 650; font-size: 14.5px; }
.cab time { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.texto { overflow-wrap: anywhere; color: #e4e2f6; }
.texto code { background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.15); padding: 1px 6px; border-radius: 6px; font: 12.5px var(--mono); color: #e9d5ff; }
.texto pre { background: rgba(0,0,0,.35); border: 1px solid var(--borda); padding: 12px 14px; border-radius: 12px; overflow-x: auto; margin: 6px 0; position: relative; }
.texto pre::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--grad); }
.texto pre code { padding: 0; background: none; border: 0; white-space: pre; color: #dcd8f5; }
.texto a { color: #93c5fd; text-decoration: none; border-bottom: 1px solid rgba(147,197,253,.35); }
.texto a:hover { border-bottom-color: #93c5fd; }
.msg.mencao { background: linear-gradient(90deg, rgba(168,85,247,.12), rgba(168,85,247,.02) 60%); }
.msg.mencao::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); box-shadow: 0 0 10px rgba(168,85,247,.8); }
.msg.destaque { animation: destaque 2.6s var(--ease); }
@keyframes destaque { 0%, 30% { background: rgba(168,85,247,.24); } }
.anexo-midia { display: block; margin-top: 8px; max-width: min(100%, 440px); }
.anexo-midia img, video.anexo-midia { display: block; max-width: 100%; max-height: 340px; border-radius: 14px; border: 1px solid var(--borda); background: #000; }
.anexo-arq {
  display: inline-flex; gap: 12px; align-items: center; margin-top: 8px; padding: 10px 16px 10px 10px; max-width: 100%;
  background: rgba(255,255,255,.035); border: 1px solid var(--borda); border-radius: 14px; color: var(--texto); text-decoration: none; transition: .18s;
}
.anexo-arq:hover { border-color: rgba(168,85,247,.45); background: rgba(168,85,247,.07); }
.arq-ic { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-suave); color: var(--roxo-claro); flex: none; }
.arq-ic svg { width: 22px; height: 22px; }
.arq-ic em { position: absolute; bottom: -4px; right: -6px; font: 700 8.5px/1 var(--fonte); font-style: normal; padding: 2px 4px; border-radius: 4px; background: var(--azul); color: #fff; }
.anexo-arq span:last-child { display: flex; flex-direction: column; min-width: 0; }
.anexo-arq b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-arq small { color: var(--dim); font-size: 12px; }
.msg audio { margin-top: 8px; max-width: 100%; }

/* feedback de envio */
.msg-estado { display: none; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; }
.msg-estado > * { display: none; }
.msg.enviando .msg-estado, .msg.confirmada .msg-estado, .msg.falhou .msg-estado { display: flex; }
.msg.enviando .texto { opacity: .55; }
.msg.enviando .spin { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); border-top-color: var(--roxo-claro); animation: gira .7s linear infinite; }
.msg.confirmada .ok { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); color: #fff; animation: pop .35s var(--ease); box-shadow: 0 0 10px rgba(168,85,247,.7); }
.msg.confirmada .ok svg { width: 10px; height: 10px; stroke-width: 3; }
.msg.confirmada::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.14), transparent); animation: varre .9s var(--ease) forwards;
}
@keyframes varre { from { transform: translateX(-100%); } to { transform: translateX(100%); opacity: 0; } }
.msg.falhou .texto { opacity: .55; }
.msg.falhou .reenviar { display: inline; all: unset; cursor: pointer; color: var(--perigo); font-weight: 600; }
.msg.falhou .reenviar:hover { text-decoration: underline; }

.typing { height: 22px; padding: 0 22px; font-size: 12px; color: var(--suave); flex: none; display: flex; align-items: center; gap: 8px; }
.pontos { display: inline-flex; gap: 3px; }
.pontos i { width: 5px; height: 5px; }
.composer {
  margin: 0 14px 6px; display: flex; align-items: flex-end; gap: 4px; flex: none; padding: 6px;
  background: rgba(255,255,255,.035); border: 1px solid var(--borda); border-radius: 18px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.composer:focus-within { border-color: rgba(168,85,247,.45); background: rgba(168,85,247,.04); box-shadow: 0 0 0 4px rgba(168,85,247,.1); }
.composer textarea { flex: 1; resize: none; background: none; border: 0; padding: 9px 6px; max-height: 200px; outline: none; min-width: 0; line-height: 1.45; font-size: 14.5px; }
.composer textarea::placeholder { color: var(--dim); }
.btn-enviar {
  all: unset; box-sizing: border-box; width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
  color: var(--dim); background: rgba(255,255,255,.05); transition: background .25s, color .25s, box-shadow .25s, transform .12s;
}
.btn-enviar svg { width: 19px; height: 19px; }
.composer.tem-texto .btn-enviar { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -4px rgba(124,92,255,.8); }
.btn-enviar:active { transform: scale(.9); }
.btn-enviar.disparo svg { animation: disparo .5s var(--ease); }
@keyframes disparo { 40% { transform: translate(14px, -14px) scale(.6); opacity: 0; } 41% { transform: translate(-12px, 12px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dica { padding: 0 22px 10px; font-size: 11px; color: var(--dim); flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dica kbd { padding: 2px 5px; font-size: 10px; }
.dica code { font: 10.5px var(--mono); }

/* ---------- membros ---------- */
.membros { display: flex; flex-direction: column; min-height: 0; border-radius: var(--raio); overflow: hidden; }
.membros-lista { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.membro-item {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 8px; border-radius: 12px; cursor: pointer;
  transition: background .15s, transform .15s var(--ease);
}
.membro-item:hover { background: rgba(255,255,255,.05); }
.membro-item:active { transform: scale(.98); }
.membro-item.eu { cursor: default; }
.av-wrap { position: relative; flex: none; }
.av-wrap .dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border: 2.5px solid #111020; box-shadow: none; }
.mi-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mi-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-txt b small { font-weight: 500; color: var(--dim); font-size: 11px; margin-left: 2px; }
.mi-txt > small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); overflow: hidden; white-space: nowrap; }
.mi-txt > small.na-voz { color: var(--ok); }
.mi-txt > small svg { width: 12px; height: 12px; flex: none; }
.membro-item.falando .avatar { box-shadow: 0 0 0 2px #111020, 0 0 0 4px var(--ok); }
.icon-btn.so-gaveta { display: none; }

/* abas do painel lateral durante chamadas */
.dock-tabs { position: relative; padding: 5px; border-radius: 16px; gap: 4px; height: 50px; }
.dock-tabs button {
  all: unset; box-sizing: border-box; position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--suave); transition: color .2s;
}
.dock-tabs button svg { width: 17px; height: 17px; }
.dock-tabs button.ativo { color: #fff; }
.aba-luz {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 7px); border-radius: 12px; z-index: 0;
  background: var(--grad-suave); border: 1px solid rgba(168,85,247,.3); box-shadow: 0 0 18px -4px rgba(168,85,247,.5);
  transition: transform .3s var(--ease);
}
.dock-tabs[data-aba="membros"] .aba-luz { transform: translateX(calc(100% + 4px)); }

/* ---------- palco da chamada ---------- */
.stage-wrap { flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--raio); overflow: hidden; position: relative; }
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 86px; }
.principal {
  flex: 1; min-height: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--linhas, 1), minmax(0, 1fr));
}
.faixa { display: flex; gap: 10px; overflow-x: auto; height: 112px; flex: none; }
.faixa .tile { width: 190px; flex: none; }
.tile {
  --c: #a855f7; position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; min-height: 0; min-width: 0;
  background: radial-gradient(120% 100% at 50% 30%, color-mix(in srgb, var(--c) 16%, #0e0d1b), #0a0912 70%);
  border: 1px solid var(--borda); transition: border-color .2s, box-shadow .25s, transform .3s var(--ease), opacity .3s;
  opacity: 0; transform: scale(.97);
}
.tile.entrou { opacity: 1; transform: none; }
.tile:hover { border-color: var(--borda-forte); }
.tile.falando { border-color: rgba(52,211,153,.8); box-shadow: 0 0 0 1px rgba(52,211,153,.6), 0 0 28px -6px rgba(52,211,153,.6); }
.tile-tela { border-color: rgba(168,85,247,.25); }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.tile-pessoa video { object-fit: cover; }
.tile.focado.tile-pessoa video { object-fit: contain; }
.tile.espelhado video { transform: scaleX(-1); }
.tile.sem-video video { display: none; }
.tile-avatar { position: absolute; inset: 0; display: none; place-items: center; }
.tile-avatar > * { grid-area: 1 / 1; }
.tile-pessoa.sem-video .tile-avatar { display: grid; }
.pulso { width: 92px; height: 92px; border-radius: 32%; opacity: 0; }
.tile.falando .pulso { animation: pulso 1.3s ease-out infinite; border: 2px solid var(--ok); }
@keyframes pulso { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.faixa .avatar.grande, .faixa .pulso { width: 46px; height: 46px; font-size: 17px; }
.tile-aguarde { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 12px; color: var(--suave); font-size: 13.5px; }
.tile.aguardando .tile-aguarde { display: grid; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--roxo); animation: gira .9s linear infinite; }
.tile-rotulo {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; gap: 7px; align-items: center;
  background: rgba(8,8,16,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08); padding: 5px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
}
.tile-rotulo .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-rotulo .estado:empty { display: none; }
.faixa .tile-rotulo { left: 6px; bottom: 6px; padding: 3px 7px; font-size: 11px; }
.tile-acoes { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: .2s var(--ease); }
.tile:hover .tile-acoes, .tile:focus-within .tile-acoes { opacity: 1; transform: none; }
.tile-btn, .tile-acoes .vol {
  all: unset; box-sizing: border-box; height: 34px; display: flex; align-items: center; gap: 7px; border-radius: 10px; color: #fff; cursor: pointer;
  background: rgba(8,8,16,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1);
}
.tile-btn { width: 34px; justify-content: center; }
.tile-btn:hover { background: rgba(168,85,247,.5); }
.tile-btn svg, .tile-acoes .vol svg { width: 16px; height: 16px; }
.tile-acoes .vol { padding: 0 10px; }
.tile-acoes .vol input { width: 86px; accent-color: var(--roxo); }
.faixa .tile-acoes { display: none; }
.tile:fullscreen { border-radius: 0; border: 0; }
.tile:fullscreen video { object-fit: contain; }

.toolbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 7px; border-radius: 20px; z-index: 2;
}
.tb-btn {
  all: unset; box-sizing: border-box; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--texto); transition: background .2s, transform .12s var(--ease), box-shadow .2s, color .2s;
}
.tb-btn svg { width: 21px; height: 21px; }
.tb-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.tb-btn:active { transform: scale(.92); }
.tb-btn.ligado { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -6px rgba(124,92,255,.85); }
.tb-btn.desligado { background: rgba(251,79,122,.16); color: var(--perigo); }
.tb-btn.perigo { background: linear-gradient(135deg, #fb4f7a, #e11d48); color: #fff; width: 58px; box-shadow: 0 8px 22px -6px rgba(251,79,122,.7); }
.tb-btn.perigo:hover { filter: brightness(1.1); }
.tb-sep { width: 1px; height: 26px; background: var(--borda-forte); margin: 0 4px; }

/* ---------- camadas ---------- */
.popover { position: fixed; z-index: 50; width: 330px; border-radius: 18px; padding: 8px; background: var(--painel-forte); border-color: var(--borda-forte); animation: desce .2s var(--ease); }
.pop-titulo { font: 650 11px/1 var(--fonte); color: var(--dim); padding: 10px 10px 10px; text-transform: uppercase; letter-spacing: .14em; }
.popover button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.popover button:hover, .popover button:focus-visible { background: rgba(255,255,255,.06); }
.popover button > span:first-child { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-suave); color: var(--roxo-claro); }
.popover button svg { width: 20px; height: 20px; }
.popover button > span:last-child { display: flex; flex-direction: column; }
.popover small { color: var(--suave); font-size: 12.5px; }
.pop-nota { font-size: 11.5px; color: var(--dim); padding: 10px 10px 6px; border-top: 1px solid var(--borda); margin-top: 6px; }

.modal-fundo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(3,3,8,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s; }
.modal-fundo.visivel { opacity: 1; }
.modal { width: min(540px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 24px; background: var(--painel-forte); border-color: var(--borda-forte); transform: translateY(10px) scale(.97); transition: transform .25s var(--ease); }
.modal-fundo.visivel .modal { transform: none; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 6px 24px; }
.modal h3 { margin: 0; font: 650 20px/1.2 var(--display); letter-spacing: -.015em; }
.modal-corpo { padding: 10px 24px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; }
.modal-desc { margin: -6px 0 0; color: var(--suave); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 32px; height: 32px; border-radius: 11px; background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 90%, #fff), var(--c)); transition: transform .15s var(--ease), box-shadow .2s; }
.swatches label:hover span { transform: scale(1.1); }
.swatches input:checked + span { box-shadow: 0 0 0 3px #15142a, 0 0 0 5px var(--c), 0 0 18px var(--c); }
.swatches input:focus-visible + span { outline: 2px solid #fff; outline-offset: 4px; }
.cfg-perfil {
  --c: #a855f7; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), rgba(255,255,255,.03);
  border: 1px solid var(--borda); transition: background .3s;
}
.cfg-perfil .avatar { --c: inherit; }
.cfg-perfil b { display: block; font: 650 16px var(--display); }
.cfg-perfil small { color: var(--suave); }
.cfg-sec { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--borda); font: 650 13px var(--display); color: var(--texto); }
.cfg-sec svg { width: 17px; height: 17px; color: var(--roxo-claro); }
.nota { margin: -6px 0 0; font-size: 12px; color: var(--dim); }
.medidor { display: flex; align-items: center; gap: 12px; }
.barra { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--ciano), var(--roxo)); border-radius: 6px; transition: width .08s; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13.5px; color: var(--suave); }
.toggle input { position: absolute; opacity: 0; }
.trilho { position: relative; width: 40px; height: 23px; flex: none; border-radius: 12px; background: rgba(255,255,255,.1); transition: background .2s; }
.trilho::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.toggle input:checked + .trilho { background: var(--grad); box-shadow: 0 0 14px -2px rgba(168,85,247,.7); }
.toggle input:checked + .trilho::after { transform: translateX(17px); }
.toggle input:focus-visible + .trilho { outline: 2px solid var(--roxo); outline-offset: 2px; }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 480px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; font-size: 13.5px;
  background: var(--painel-forte); border: 1px solid var(--borda-forte); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); animation: sobe .3s var(--ease);
}
.toast-ic { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--grad-suave); color: var(--roxo-claro); }
.toast-ic svg { width: 15px; height: 15px; }
.toast.ok .toast-ic { background: rgba(52,211,153,.15); color: var(--ok); }
.toast.erro .toast-ic { background: rgba(251,79,122,.15); color: var(--perigo); }
.toast.saindo { opacity: 0; transform: translateY(6px) scale(.97); transition: .2s; }
@keyframes sobe { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.drop-hint { position: fixed; inset: 0; z-index: 70; background: rgba(5,5,11,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; pointer-events: none; }
.drop-hint div { display: flex; flex-direction: column; align-items: center; gap: 12px; border: 2px dashed rgba(168,85,247,.6); color: var(--roxo-claro); font: 650 19px var(--display); padding: 44px 64px; border-radius: 26px; background: var(--painel-forte); box-shadow: var(--glow); }
.drop-hint svg { width: 42px; height: 42px; }
.veu { display: none; }
.icon-btn.so-compacto, .icon-btn.so-celular { display: none; }


/* =====================================================================
   MENUS, EXCLUSÃO E VÁRIAS TELAS
   ===================================================================== */
.menu-ctx { position: fixed; right: auto; top: 0; left: 0; width: 248px; z-index: 75; padding: 6px; transform-origin: top left; }
.menu-ctx .mp-item { padding: 9px 10px; }
.menu-ctx .mp-item[disabled] { opacity: .45; cursor: default; background: none; }
.menu-ctx .mp-item svg { flex: none; }
.ctx-sep { height: 1px; margin: 5px 6px; background: var(--borda); }
.com-menu { position: absolute; z-index: 2; top: 12px; right: 10px; width: 32px; height: 32px; border-radius: 10px; }
.com-menu svg { width: 18px; height: 18px; }
.com-info { padding-right: 34px; }
.item-canal { position: relative; }
.canal-mais {
  all: unset; box-sizing: border-box; position: absolute; z-index: 1; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: var(--suave); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.canal-mais svg { width: 16px; height: 16px; }
.canal-mais:hover { background: rgba(255,255,255,.1); color: #fff; }
.item-canal:hover > .canal-mais, .canal-mais:focus-visible { opacity: 1; }
.item-canal:hover > .canal { padding-right: 38px; }
.item-canal:hover > .canal .entrar { display: none; }
@media (hover: none) {
  .canal-mais { opacity: .55; }
  .item-canal > .canal { padding-right: 38px; }
  .msg-acoes { display: none !important; }
}
.msg-acoes {
  position: absolute; right: 14px; top: -14px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: var(--painel-forte); border: 1px solid var(--borda-forte); box-shadow: 0 8px 20px -8px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s var(--ease);
}
.msg-acoes:empty { display: none; }
.msg:hover .msg-acoes { opacity: 1; transform: none; pointer-events: auto; }
.msg-acoes button { all: unset; width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--suave); cursor: pointer; }
.msg-acoes button:hover { background: rgba(255,255,255,.08); color: #fff; }
.msg-acoes button.perigo:hover { background: rgba(251,79,122,.18); color: var(--perigo); }
.msg-acoes svg { width: 16px; height: 16px; }
.msg.cont .msg-acoes { top: -16px; }
.btn-neon.perigo { background: linear-gradient(135deg, #fb4f7a, #e11d48); box-shadow: 0 10px 26px -8px rgba(251,79,122,.75), 0 0 0 1px rgba(255,255,255,.14) inset; }
.alerta-perigo { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(251,79,122,.08); border: 1px solid rgba(251,79,122,.25); }
.alerta-perigo svg { width: 22px; height: 22px; color: var(--perigo); flex: none; margin-top: 1px; }
.alerta-perigo p { margin: 0; color: #fbd5df; line-height: 1.5; }
.citacao { margin: 0; padding: 10px 14px; border-left: 3px solid var(--roxo); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.04); color: var(--suave); overflow-wrap: anywhere; }
.tb-btn { position: relative; }
.contador {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font: 700 10.5px/18px var(--fonte); font-style: normal; text-align: center;
  background: #fff; color: #4c1d95; box-shadow: 0 0 0 2.5px #15142a; animation: pop .3s var(--ease);
}
.tile-btn.parar-tela:hover { background: rgba(251,79,122,.75); }
.stage.dividido .principal { gap: 8px; }
.stage.dividido .tile-tela { border-color: rgba(168,85,247,.35); }


/* =====================================================================
   AMIGOS E MENSAGENS DIRETAS
   ===================================================================== */
.campo-dica { font-size: 12px; color: var(--dim); margin-top: -2px; }
.com-ic.home { background: linear-gradient(150deg, rgba(168,85,247,.35), rgba(59,130,246,.18)); color: #fff; flex: none; }
.com-ic.home svg { width: 24px; height: 24px; }
.com-ic.home.ativo { --c: #a855f7; }
.com-ic.home em { right: -5px; bottom: auto; top: -5px; background: linear-gradient(135deg, #fb4f7a, #f472b6); }

/* barra lateral no modo social */
.social-nav { display: none; flex: 1; min-height: 0; flex-direction: column; }
.app.modo-social .social-nav { display: flex; }
.app.modo-social #comCab, .app.modo-social #canais { display: none; }
.social-cab { position: relative; padding: 18px 16px 16px; border-bottom: 1px solid var(--borda); overflow: hidden; }
.social-cab::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 160% at 0% 0%, rgba(168,85,247,.38), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(59,130,246,.2), transparent 60%); pointer-events: none; }
.social-cab h2 { position: relative; margin: 0 0 4px; font: 650 17px/1.25 var(--display); }
.social-cab p { position: relative; margin: 0; font-size: 12.5px; color: var(--suave); }
.social-lista { flex: 1; overflow-y: auto; padding: 10px 10px 14px; }
#socialAmigos em { background: linear-gradient(135deg, #fb4f7a, #f472b6); }
.dm-item {
  all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 10px; margin: 1px 0; border-radius: 12px; cursor: pointer; color: var(--suave); transition: background .15s, color .15s;
}
.dm-item:hover { background: rgba(255,255,255,.045); color: var(--texto); }
.dm-item.ativo { background: linear-gradient(90deg, rgba(168,85,247,.2), rgba(59,130,246,.07)); box-shadow: 0 0 0 1px rgba(168,85,247,.18) inset; color: #fff; }
.dm-item.novo b { color: #fff; }
.dm-item .avatar { width: 32px; height: 32px; font-size: 12px; }
.dm-item em { margin-left: auto; font-style: normal; background: linear-gradient(135deg, #fb4f7a, #f472b6); color: #fff; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 1px 7px; }
#listaDMs { list-style: none; margin: 0; padding: 0; }
.dm-vazio { padding: 8px 10px; font-size: 12.5px; color: var(--dim); list-style: none; }
.av-wrap .dot.offline { background: #4b4866; box-shadow: none; }
.dm-item .av-wrap .dot, .amigo .av-wrap .dot, .ativo-card .av-wrap .dot { border-color: #12111f; }

/* página de amigos */
.amigos-page { display: none; flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--raio); overflow: hidden; grid-area: main; }
.app.modo-social:not(.vendo-dm) .amigos-page { display: flex; }
.app.modo-social:not(.vendo-dm) .chat { display: none !important; }
.app.em-voz .amigos-page { grid-area: dock; }
.app.em-voz.aba-membros .amigos-page { display: none !important; }
.amigos-cab { gap: 14px; }
.amigos-cab .cab-titulo { flex: none; padding-right: 10px; border-right: 1px solid var(--borda); }
.amigos-abas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.amigos-abas::-webkit-scrollbar { display: none; }
.amigos-abas button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--suave); white-space: nowrap; transition: background .15s, color .15s;
}
.amigos-abas button:hover { background: rgba(255,255,255,.05); color: var(--texto); }
.amigos-abas button.ativo { background: rgba(255,255,255,.08); color: #fff; }
.amigos-abas em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(135deg, #fb4f7a, #f472b6); color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; }
.amigos-abas .aba-add { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(124,92,255,.8); }
.amigos-abas .aba-add svg { width: 16px; height: 16px; }
.amigos-abas .aba-add:hover { background: var(--grad); filter: brightness(1.1); }
.amigos-abas .aba-add.ativo { background: transparent; color: #a7f3d0; box-shadow: 0 0 0 1px rgba(52,211,153,.35) inset; }
.amigos-corpo { flex: 1; overflow-y: auto; padding: 14px 18px 20px; }
.amigos-busca { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; margin-bottom: 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--borda); }
.amigos-busca:focus-within { border-color: rgba(168,85,247,.45); box-shadow: 0 0 0 4px rgba(168,85,247,.1); }
.amigos-busca svg { width: 17px; height: 17px; color: var(--dim); }
.amigos-busca input { flex: 1; border: 0; outline: none; background: none; font-size: 14px; }
.amigo {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; border-top: 1px solid var(--borda);
  transition: background .15s;
}
.amigo:hover { background: rgba(255,255,255,.045); border-top-color: transparent; }
.amigo:hover + .amigo { border-top-color: transparent; }
.amigo .mi-txt b { font-size: 14.5px; }
.amigo-acoes { margin-left: auto; display: flex; gap: 8px; }
.acao-redonda {
  all: unset; box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--suave); transition: background .15s, color .15s, transform .12s;
}
.acao-redonda svg { width: 18px; height: 18px; }
.acao-redonda:hover { background: rgba(255,255,255,.12); color: #fff; }
.acao-redonda:active { transform: scale(.9); }
.acao-redonda.ok:hover { background: rgba(52,211,153,.18); color: var(--ok); }
.acao-redonda.nao:hover { background: rgba(251,79,122,.18); color: var(--perigo); }
.nota-lista { color: var(--dim); font-size: 13px; padding: 10px 12px; }
.amigos-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 70px 20px; color: var(--suave); max-width: 420px; margin: 0 auto; }
.amigos-vazio b { color: var(--texto); font: 650 18px var(--display); }
.amigos-vazio .btn-neon { margin-top: 10px; }
.av-ic { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 8px; background: var(--grad-suave); border: 1px solid rgba(168,85,247,.25); color: var(--roxo-claro); }
.av-ic svg { width: 34px; height: 34px; }
.amigos-vazio.mini { padding: 34px 12px; }
.amigos-vazio.mini .av-ic { width: 56px; height: 56px; border-radius: 18px; }
.amigos-vazio.mini .av-ic svg { width: 26px; height: 26px; }
.amigos-vazio.mini b { font-size: 15px; }
.amigos-vazio.mini span { font-size: 13px; }
.adicionar { max-width: 640px; padding: 6px 2px; }
.adicionar h3 { margin: 4px 0 6px; font: 650 20px var(--display); }
.adicionar p { margin: 0 0 16px; color: var(--suave); }
.adicionar-linha { display: flex; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--borda-forte); transition: border-color .2s, box-shadow .2s; }
.adicionar-linha:focus-within { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 4px rgba(168,85,247,.12); }
.adicionar-linha input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; }
.adicionar .retorno { margin: 12px 2px 0; font-size: 13.5px; min-height: 1.2em; }
.adicionar .retorno.ok { color: var(--ok); }
.adicionar .retorno.erro { color: var(--perigo); }
.tremer { animation: tremer .4s; }
@keyframes tremer { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.dica-amigo { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.2); color: var(--suave); font-size: 13.5px; }
.dica-amigo svg { width: 18px; height: 18px; color: var(--roxo-claro); flex: none; }
.dica-amigo b { color: #fff; }
.bv-av { margin-bottom: 14px; }

/* ativo agora */
.ativo-card { margin: 4px 0 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--borda); display: flex; flex-direction: column; gap: 10px; }
.ac-topo { display: flex; align-items: center; gap: 10px; }
.ac-sala { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(52,211,153,.07); color: #a7f3d0; font-size: 13px; font-weight: 600; }
.ac-sala svg { width: 15px; height: 15px; color: var(--ok); }
.ac-avs { margin-left: auto; display: flex; }
.ac-avs .avatar { margin-left: -6px; box-shadow: 0 0 0 2px #12111f; }
.ac-entrar { justify-content: center; }
.ac-junto { font-size: 12px; color: var(--ok); text-align: center; }

@media (max-width: 1279px) {
  .app.modo-social:not(.em-voz) .workspace { grid-template-areas: "main"; }
}
@media (max-width: 600px) {
  .amigos-cab .cab-titulo { display: none; }
  .amigos-abas button { padding: 0 10px; font-size: 13px; }
  .amigos-abas .aba-add span + * { display: none; }
  .adicionar-linha { flex-direction: column; padding: 10px; }
  .adicionar-linha input { height: 40px; }
  .amigos-corpo { padding: 12px; }
}


/* =====================================================================
   ENTRADA (login e cadastro)
   ===================================================================== */
.login { position: relative; z-index: 1; height: 100%; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.login-grade {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 40px 24px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 460px); gap: 72px; align-items: center;
}
.login-hero { position: relative; animation: surge .7s var(--ease) both; }
.login-hero .marca.grande .logo-mark { width: 64px; height: 64px; animation: pulsar-logo 4s ease-in-out infinite; }
@keyframes pulsar-logo { 50% { filter: drop-shadow(0 0 18px rgba(168,85,247,.75)); transform: scale(1.04) rotate(4deg); } }
.status-ao-vivo {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); color: #a7f3d0; font-size: 13px; font-weight: 550;
  animation: surge .4s var(--ease) both;
}
.status-ao-vivo .dot { animation: piscar 2s ease-in-out infinite; }
.slogan { font: 700 clamp(42px, 5.2vw, 70px)/1.02 var(--display); letter-spacing: -.04em; margin: 22px 0 18px; }
.hero-texto { color: var(--suave); font-size: 16.5px; line-height: 1.6; max-width: 540px; margin: 0 0 30px; }
.recursos { display: grid; gap: 12px; max-width: 560px; }
.recurso {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
  animation: surge .6s var(--ease) both;
}
.recurso:nth-child(2) { animation-delay: .08s; } .recurso:nth-child(3) { animation-delay: .16s; }
.recurso:hover { transform: translateX(6px); border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.06); }
.rec-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--grad-suave); border: 1px solid rgba(168,85,247,.28); color: var(--roxo-claro); }
.rec-ic svg { width: 20px; height: 20px; }
.rec-ic.voz { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.28); color: var(--ok); }
.rec-ic.azul { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: #93c5fd; }
.recurso b { display: block; font: 650 15px var(--display); margin: 1px 0 3px; }
.recurso p { margin: 0; color: var(--suave); font-size: 13.5px; line-height: 1.5; }
.selos { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; }
.selos li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); }
.selos svg { width: 15px; height: 15px; color: var(--roxo-claro); }

.login-card { position: relative; border-radius: 28px; padding: 22px 28px 24px; display: flex; flex-direction: column; gap: 6px; animation: surge .6s .1s var(--ease) both; }
.login-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(168,85,247,.55), transparent 35%, transparent 65%, rgba(59,130,246,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.login-card.tremer { animation: tremer .4s; }
.abas-entrada { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 14px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--borda); }
.abas-entrada button { all: unset; position: relative; z-index: 1; text-align: center; padding: 10px 0; font-weight: 650; font-size: 14px; color: var(--suave); cursor: pointer; border-radius: 12px; transition: color .2s; }
.abas-entrada button.ativo { color: #fff; }
.abas-entrada button:focus-visible { outline: 2px solid var(--roxo); }
.abas-entrada .aba-luz { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(124,92,255,.8); transition: transform .35s var(--ease); }
.abas-entrada[data-modo="cadastrar"] .aba-luz { transform: translateX(100%); }
.form-entrada { display: flex; flex-direction: column; gap: 14px; }
.form-entrada.entrando { animation: surge .35s var(--ease); }
.card-topo h2 { font: 650 24px/1.15 var(--display); letter-spacing: -.02em; margin: 4px 0 4px; }
.card-topo p { margin: 0; color: var(--suave); font-size: 14px; }
.cad-topo { display: flex; align-items: center; gap: 14px; }
.cad-topo .avatar { transition: background .3s, box-shadow .3s; }
.ver-senha { all: unset; width: 34px; height: 34px; margin-right: 6px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--dim); cursor: pointer; }
.ver-senha:hover { color: #fff; background: rgba(255,255,255,.06); }
.ver-senha svg { width: 17px; height: 17px; color: inherit !important; }
.input-ic > span svg { color: var(--roxo-claro); }
.convite-salvo { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.22); color: #a7f3d0; font-size: 13px; }
.convite-salvo svg { width: 16px; height: 16px; }
.convite-salvo .link { margin-left: auto; }
.forca { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.forca i { flex: 1; max-width: 46px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); transition: background .25s; }
.forca small { margin-left: 6px; font-size: 11.5px; color: var(--dim); min-width: 80px; }
.forca[data-nivel="0"] i:nth-child(-n+1) { background: var(--perigo); }
.forca[data-nivel="1"] i:nth-child(-n+1) { background: #fb923c; }
.forca[data-nivel="2"] i:nth-child(-n+2) { background: var(--aviso); }
.forca[data-nivel="3"] i:nth-child(-n+3) { background: #4ade80; }
.forca[data-nivel="4"] i:nth-child(-n+4) { background: var(--ok); }
.form-entrada .btn-neon { margin-top: 4px; }
.form-entrada .erro { margin: 0; min-height: 0; }
.form-entrada .erro:empty { display: none; }
.form-entrada .erro .link { color: #fda4af; text-decoration: underline; font-size: inherit; }
.troca-modo { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.login-rodape { text-align: center; padding: 18px; font-size: 12px; color: var(--dim); letter-spacing: .04em; }
@keyframes surge { from { opacity: 0; transform: translateY(14px) scale(.985); } }

@media (max-width: 980px) {
  /* no celular/tablet: logo e título, depois o formulário, depois os recursos */
  .login-grade { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 560px; padding: 28px 20px 16px; }
  .login-hero { display: contents; }
  .login-hero > .marca { order: 1; }
  .status-ao-vivo { order: 2; align-self: flex-start; margin-top: 18px; }
  .slogan { order: 3; }
  .login-card { order: 4; margin: 6px 0 28px; }
  .hero-texto { order: 5; }
  .recursos { order: 6; }
  .selos { order: 7; }
  .slogan { margin: 18px 0 12px; }
  .hero-texto { font-size: 15.5px; margin-bottom: 20px; }
  .recurso:hover { transform: none; }
}
@media (max-width: 600px) {
  .login-grade { padding: 24px 14px 10px; gap: 26px; }
  .recursos { gap: 8px; }
  .recurso { padding: 12px; }
  .recurso p { font-size: 13px; }
  .login-card { padding: 16px 18px 20px; border-radius: 24px; }
  .slogan { font-size: 38px; }
  #cadCores { gap: 7px; flex-wrap: nowrap; }
  #cadCores span { width: 30px; height: 30px; border-radius: 10px; }
  .login .logo-txt { display: inline; font-size: 20px; }
  .selos { gap: 6px 14px; }
}


/* =====================================================================
   FOTO DE PERFIL E COMUNIDADE OPCIONAL
   ===================================================================== */
.avatar.com-foto { background: #0b0a14; color: transparent; text-shadow: none; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; user-select: none; }
.cfg-foto { all: unset; position: relative; cursor: pointer; border-radius: 34%; flex: none; }
.cfg-foto .avatar { transition: filter .2s; }
.cfg-foto-ic { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 3px #15142a, 0 4px 12px rgba(124,92,255,.6); }
.cfg-foto-ic svg { width: 15px; height: 15px; }
.cfg-foto:hover .avatar { filter: brightness(1.15); }
.cfg-foto:focus-visible { outline: 2px solid var(--roxo); outline-offset: 3px; }
.foto-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.foto-botoes .btn-sutil { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-sutil.perigo-txt { color: #fda4af; }
.btn-sutil.perigo-txt:hover { background: rgba(251,79,122,.12); border-color: rgba(251,79,122,.3); }
.recorte { display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(0,0,0,.25); border: 1px solid var(--borda-forte); animation: surge .3s var(--ease); }
.recorte-area { position: relative; width: 240px; height: 240px; flex: none; overflow: hidden; border-radius: 18px; background: #000; cursor: grab; touch-action: none; }
.recorte-area.arrastando { cursor: grabbing; }
.recorte-area img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.recorte-mascara { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); background: radial-gradient(circle at 50% 50%, transparent 0 0, transparent 34%, transparent 34%); }
.recorte-mascara::after { content: ""; position: absolute; inset: 0; border-radius: 34%; box-shadow: 0 0 0 999px rgba(5,5,11,.45); }
.recorte-lado { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.recorte-lado b { font: 650 15px var(--display); }
.recorte-lado .nota { margin: 0; }
.recorte-zoom { display: flex; align-items: center; gap: 10px; }
.recorte-zoom svg { width: 16px; height: 16px; color: var(--suave); flex: none; }
.recorte-zoom input { flex: 1; accent-color: var(--roxo); }
.recorte-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.sem-comunidade { display: flex; align-items: center; gap: 16px; margin: 14px 18px 0; padding: 16px 18px; border-radius: 18px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(168,85,247,.22), transparent 60%), rgba(255,255,255,.03); border: 1px solid rgba(168,85,247,.28); animation: surge .4s var(--ease); }
.sc-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.sc-ic svg { width: 22px; height: 22px; }
.sem-comunidade b { font: 650 15px var(--display); display: block; }
.sem-comunidade p { margin: 2px 0 0; font-size: 13px; color: var(--suave); }
.sem-comunidade .btn-neon { margin-left: auto; flex: none; }
.sem-comunidade .btn-neon svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .recorte { flex-direction: column; align-items: stretch; }
  .recorte-area { margin: 0 auto; }
  .sem-comunidade { flex-wrap: wrap; margin: 12px 12px 0; }
  .sem-comunidade .btn-neon { margin-left: 0; width: 100%; }
}


/* =====================================================================
   COMUNIDADE: FOTO, DESCRIÇÃO E REGRAS
   ===================================================================== */
button.com-info { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding-right: 34px; cursor: pointer; border-radius: 12px; }
button.com-info:focus-visible { outline: 2px solid var(--roxo); outline-offset: 4px; }
button.com-info:hover .com-nome { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.com-textos { min-width: 0; flex: 1; }
.com-avatar { --c: #a855f7; position: relative; width: 46px; height: 46px; flex: none; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 20px -8px var(--c); }
.com-avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.com-cab:not(.com-foto-on) .com-avatar { display: none; }
.com-desc { position: relative; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.com-ic .com-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.campo textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; outline: none; resize: vertical; min-height: 70px; line-height: 1.5;
  background: rgba(255,255,255,.035); border: 1px solid var(--borda); color: var(--texto); font: inherit; font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.campo textarea:focus { border-color: rgba(168,85,247,.55); background: rgba(168,85,247,.05); box-shadow: 0 0 0 4px rgba(168,85,247,.13); }
.campo textarea::placeholder { color: var(--dim); }
.contador-txt { align-self: flex-end; font-size: 11.5px; color: var(--dim); margin-top: -2px; }
.sobre-cab { --c: #a855f7; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c) 32%, transparent), transparent 60%), rgba(255,255,255,.03); border: 1px solid var(--borda); }
.sobre-cab h4 { margin: 0 0 3px; font: 650 19px var(--display); }
.sobre-cab small { color: var(--suave); }
.sobre-desc { margin: 0; color: #e4e2f6; line-height: 1.6; white-space: pre-line; }
.regras { margin: 0; padding: 0; list-style: none; counter-reset: regra; display: flex; flex-direction: column; gap: 8px; }
.regras li { counter-increment: regra; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--borda); line-height: 1.5; }
.regras li::before { content: counter(regra); flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 12px var(--fonte); box-shadow: 0 4px 12px -4px rgba(124,92,255,.8); }
.sobre-card { margin: 4px 0 8px; padding: 12px 12px 12px; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(168,85,247,.14), transparent 60%), rgba(255,255,255,.03); border: 1px solid var(--borda); }
.sc-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sc-topo b { font: 650 13px var(--display); }
.sobre-card p { margin: 0 0 8px; font-size: 12.5px; color: var(--suave); line-height: 1.5; white-space: pre-line; }
.sobre-card .btn-sutil { width: 100%; justify-content: center; height: 34px; font-size: 12.5px; }


/* =====================================================================
   CHAMADAS PARTICULARES
   ===================================================================== */
.chat-acoes { display: flex; gap: 4px; margin-left: auto; }
.chat-acoes .icon-btn:hover { color: var(--ok); background: rgba(52,211,153,.1); }
.chat-acoes .icon-btn.ligado { color: var(--ok); background: rgba(52,211,153,.12); }
.dm-item.em-chamada small { color: var(--ok); display: flex; align-items: center; gap: 4px; }
.dm-item.em-chamada small svg { width: 12px; height: 12px; }
.dm-item.em-chamada .avatar { box-shadow: 0 0 0 2px #12111f, 0 0 0 3.5px var(--ok); }

/* ligando: aparece no palco enquanto o amigo não atende */
.chamando {
  position: absolute; z-index: 3; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 40px 24px; border-radius: 26px;
  background: rgba(14,13,26,.82); border: 1px solid var(--borda-forte); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: surge .35s var(--ease);
}
.ch-av { position: relative; width: 96px; height: 96px; border-radius: 34%; display: grid; place-items: center; margin-bottom: 6px; font: 650 32px var(--display); color: #fff;
  background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 55%, #120f24) 75%); }
.ch-av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ch-av::before, .ch-av::after { content: ""; position: absolute; inset: -6px; border-radius: 38%; border: 2px solid rgba(52,211,153,.7); animation: onda-chamada 1.8s ease-out infinite; }
.ch-av::after { animation-delay: .9s; }
@keyframes onda-chamada { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
.chamando b { font: 650 20px var(--display); }
.ch-status { color: var(--suave); font-size: 14px; }
.ch-status i { font-style: normal; animation: piscar 1.2s infinite; }
.ch-status i:nth-child(2) { animation-delay: .2s; } .ch-status i:nth-child(3) { animation-delay: .4s; }
.chamando .tb-btn { margin-top: 10px; }
.chamando .tb-btn svg { width: 22px; height: 22px; }

/* recebendo: cartão flutuante com toque */
.chamada-recebida {
  position: fixed; z-index: 95; right: 24px; top: 80px; width: 330px; padding: 22px 20px 20px; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,.85), 0 0 0 1px rgba(52,211,153,.25), 0 0 40px -10px rgba(52,211,153,.45);
  animation: chamada-entra .45s var(--ease);
}
.chamada-recebida.saindo { opacity: 0; transform: translateY(-10px) scale(.96); transition: .2s; }
@keyframes chamada-entra { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
.cr-av { --c: #a855f7; position: relative; width: 88px; height: 88px; border-radius: 34%; display: grid; place-items: center; margin-top: 4px; font: 650 30px var(--display); color: #fff;
  background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 55%, #120f24) 75%); animation: tremor-chamada 2.2s ease-in-out infinite; }
.cr-av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cr-av::before, .cr-av::after { content: ""; position: absolute; inset: -6px; border-radius: 38%; border: 2px solid rgba(52,211,153,.75); animation: onda-chamada 1.6s ease-out infinite; }
.cr-av::after { animation-delay: .8s; }
@keyframes tremor-chamada { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-6deg); } 78% { transform: rotate(6deg); } 82% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } }
.cr-txt b { display: block; font: 650 17px var(--display); }
.cr-txt span { color: var(--suave); font-size: 13px; }
.cr-botoes { display: flex; gap: 26px; margin-top: 4px; }
.cr-btn { all: unset; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .15s var(--ease), filter .15s; }
.cr-btn svg { width: 24px; height: 24px; }
.cr-btn:hover { transform: scale(1.08); filter: brightness(1.1); }
.cr-btn:active { transform: scale(.94); }
.cr-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-btn.recusar { background: linear-gradient(135deg, #fb4f7a, #e11d48); box-shadow: 0 10px 24px -8px rgba(251,79,122,.8); }
.cr-btn.atender { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 24px -8px rgba(52,211,153,.9); animation: pulso-atender 1.6s ease-in-out infinite; }
@keyframes pulso-atender { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6), 0 10px 24px -8px rgba(52,211,153,.9); } 70%, 100% { box-shadow: 0 0 0 14px rgba(52,211,153,0), 0 10px 24px -8px rgba(52,211,153,.9); } }
@media (max-width: 600px) {
  .chamada-recebida { left: 12px; right: 12px; top: auto; bottom: 16px; width: auto; }
  .chamando { padding: 22px 26px 18px; }
}


/* =====================================================================
   CONVERSA EM BALÕES (mensagens diretas)
   ===================================================================== */
.msg.bolha { display: flex; align-items: flex-end; gap: 8px; padding: 2px 20px; grid-template-columns: none; }
.msg.bolha:not(.cont) { padding-top: 10px; }
.msg.bolha:hover { background: none; }
.msg.bolha.minha { justify-content: flex-end; }
.msg.bolha > .avatar { width: 30px; height: 30px; font-size: 11px; margin: 0 0 2px; }
.av-espaco { width: 30px; flex: none; }
.balao {
  position: relative; max-width: min(72%, 560px); min-width: 64px; padding: 8px 12px 6px; border-radius: 20px;
  background: rgba(255,255,255,.065); border: 1px solid var(--borda); box-shadow: 0 6px 18px -12px rgba(0,0,0,.8);
  overflow-wrap: anywhere;
}
.msg.bolha:not(.minha) .balao { border-bottom-left-radius: 6px; }
.msg.bolha:not(.minha).cont .balao { border-top-left-radius: 8px; }
.msg.bolha.minha .balao {
  background: linear-gradient(135deg, rgba(168,85,247,.95), rgba(99,102,241,.92) 60%, rgba(59,130,246,.9));
  border-color: rgba(255,255,255,.12); border-bottom-right-radius: 6px; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(124,92,255,.9);
}
.msg.bolha.minha.cont .balao { border-top-right-radius: 8px; }
.balao .texto { color: inherit; }
.msg.bolha.minha .texto code { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.15); color: #fff; }
.msg.bolha.minha .texto pre { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.12); }
.msg.bolha.minha .texto a { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.msg.bolha.minha .tag { background: rgba(0,0,0,.2); color: #fff; }
.balao .anexo-midia { margin-top: 4px; }
.balao .anexo-midia img, .balao video.anexo-midia { max-height: 280px; border-radius: 14px; }
.balao .anexo-arq { margin-top: 4px; }
.msg.bolha.minha .anexo-arq { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.15); }
.b-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.msg.bolha.minha .b-meta { color: rgba(255,255,255,.72); }
.b-check svg { width: 12px; height: 12px; stroke-width: 2.6; }
.msg.bolha.enviando .b-check { display: none; }
.msg.bolha .msg-estado { justify-content: flex-end; }
.msg.bolha .msg-estado .ok { display: none !important; }
.msg.bolha.minha .msg-acoes { right: auto; left: 20px; }
.msg.bolha.confirmada::after { display: none; }
.msg.bolha.confirmada .balao { animation: balao-ok .5s var(--ease); }
@keyframes balao-ok { 40% { transform: scale(1.025); filter: brightness(1.15); } }
.msg.bolha.nova.minha { animation: entra-direita .3s var(--ease); }
.msg.bolha.nova:not(.minha) { animation: entra-esquerda .3s var(--ease); }
@keyframes entra-direita { from { opacity: 0; transform: translateX(14px) scale(.98); } }
@keyframes entra-esquerda { from { opacity: 0; transform: translateX(-14px) scale(.98); } }
.messages.modo-bolhas .dia { padding-top: 18px; }

/* =====================================================================
   MENSAGENS DE VOZ
   ===================================================================== */
.audio-msg {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 10px 8px 8px; border-radius: 16px; width: min(100%, 340px);
  background: rgba(255,255,255,.04); border: 1px solid var(--borda);
}
.balao .audio-msg { background: transparent; border: 0; padding: 2px 0; margin: 0; width: min(100%, 300px); }
.am-play {
  all: unset; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(124,92,255,.85); transition: transform .12s var(--ease);
}
.am-play:active { transform: scale(.9); }
.am-play svg { width: 16px; height: 16px; }
.msg.bolha.minha .am-play { background: #fff; color: #6d28d9; box-shadow: none; }
.am-ondas { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.am-ondas i { flex: 1; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(255,255,255,.22); transition: background .15s; }
.am-ondas i.cheio { background: var(--roxo-claro); }
.msg.bolha.minha .am-ondas i { background: rgba(255,255,255,.38); }
.msg.bolha.minha .am-ondas i.cheio { background: #fff; }
.audio-msg.tocando .am-ondas i.cheio:last-of-type { box-shadow: 0 0 8px var(--roxo-claro); }
.am-tempo { font-size: 11.5px; color: var(--suave); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.msg.bolha.minha .am-tempo { color: rgba(255,255,255,.85); }
.am-vel { all: unset; font-size: 10.5px; font-weight: 700; padding: 3px 6px; border-radius: 7px; background: rgba(255,255,255,.08); color: var(--suave); cursor: pointer; min-width: 22px; text-align: center; }
.am-vel:hover { background: rgba(255,255,255,.15); color: #fff; }
.msg.bolha.minha .am-vel { background: rgba(0,0,0,.18); color: #fff; }
.am-baixar { display: grid; place-items: center; color: var(--dim); }
.am-baixar svg { width: 16px; height: 16px; }

/* gravação no campo de mensagem */
.btn-audio:hover { color: var(--perigo); background: rgba(251,79,122,.1); }
.gravacao { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 2px; }
.composer.gravando > :not(.gravacao) { display: none; }
.composer.gravando { border-color: rgba(251,79,122,.45); box-shadow: 0 0 0 4px rgba(251,79,122,.1); background: rgba(251,79,122,.05); }
.grav-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--perigo); box-shadow: 0 0 10px var(--perigo); animation: piscar 1s ease-in-out infinite; flex: none; }
.gravacao time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; min-width: 38px; }
.grav-ondas { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 2px; }
.grav-ondas i { flex: 1; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: linear-gradient(var(--roxo-claro), var(--roxo)); transition: height .09s; }
.grav-dica { font-size: 12px; color: var(--dim); }
.btn-enviar.pronto { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -4px rgba(124,92,255,.8); }
@media (max-width: 600px) {
  .balao { max-width: 82%; }
  .grav-dica { display: none; }
  .msg.bolha { padding: 2px 10px; }
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
/* notebooks e tablets em paisagem: painel de membros vira gaveta; chamada empilha palco e chat */
@media (max-width: 1279px) {
  .app { grid-template-columns: 66px 248px minmax(0, 1fr); }
  .topbar .marca { width: 312px; }
  .workspace, .app.sem-membros .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .membros, .app.sem-membros .membros {
    display: flex; position: fixed; z-index: 45; top: 10px; right: 10px; bottom: 10px; width: 300px;
    background: var(--painel-forte); transform: translateX(calc(100% + 24px)); transition: transform .3s var(--ease);
  }
  .app.gaveta-membros .membros { transform: none; }
  .icon-btn.so-gaveta { display: grid; }
  .app.em-voz .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "main" "dock"; }
  .app.em-voz .dock-tabs { display: none; }
  .app.em-voz .chat, .app.em-voz.aba-membros .chat { display: flex; grid-area: dock; }
  .app.em-voz .membros, .app.em-voz.aba-membros .membros { display: flex; }
  .app.em-voz.dock-oculto .workspace { grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; }
  .app.em-voz.dock-oculto .membros { display: flex; }
  .app.gaveta-membros .veu { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(3,3,8,.5); }
  .dica { display: none; }
}
/* telas baixas (notebooks pequenos, tablets em paisagem) durante chamadas: mais espaço para o vídeo */
@media (max-width: 1279px) and (max-height: 860px) {
  .app.em-voz .workspace { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
  .app.em-voz .stage-wrap > .painel-cab { display: none; }
  .stage { padding-bottom: 76px; }
  .faixa { height: 84px; }
  .faixa .tile { width: 140px; }
  .tb-btn { width: 44px; height: 44px; }
}
@media (max-width: 1100px) { .pill-voz #pillTexto { display: none; } }

/* tablets em retrato e celulares: comunidades e canais viram gaveta */
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topo" "work"; gap: 8px; padding: 6px 8px 8px; padding-top: max(6px, env(safe-area-inset-top)); }
  .icon-btn.so-compacto { display: grid; }
  .topbar { padding-left: 0; gap: 8px; }
  .topbar .marca { width: auto; }
  .rail, .sidebar { position: fixed; z-index: 46; top: 8px; bottom: 8px; transition: transform .3s var(--ease); }
  .rail { left: 8px; width: 68px; border-radius: 20px; background: var(--painel-forte); border: 1px solid var(--borda); transform: translateX(-130%); }
  .sidebar { left: 84px; width: min(300px, calc(100vw - 100px)); background: var(--painel-forte); transform: translateX(calc(-100% - 100px)); }
  .app.nav-aberta .rail, .app.nav-aberta .sidebar { transform: none; }
  .app.nav-aberta .veu { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(3,3,8,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .com-ic::before { left: -10px; }
  .busca { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .logo-txt { display: none; }
  .busca { display: none; }
  .icon-btn.so-celular { display: grid; }
  .app.busca-mobile .busca { display: flex; position: fixed; z-index: 60; left: 8px; right: 8px; top: 8px; height: 48px; max-width: none; background: var(--painel-forte); }
  .app.busca-mobile .busca-res { max-height: calc(100dvh - 90px); }
  .pill-voz { padding: 0 10px; }
  .pill-voz #pillTexto { display: none; }
  .painel-notif, .menu-perfil { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
  .membros { width: calc(100vw - 20px); }
  .msg { grid-template-columns: 54px minmax(0, 1fr); padding-right: 12px; }
  .boas-vindas { padding: 24px 16px 12px; }
  .boas-vindas h3 { font-size: 22px; }
  .composer { margin: 0 8px 8px; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
  .painel-cab { height: 56px; padding: 0 12px; }
  .stage { padding: 8px 8px 74px; gap: 8px; }
  .toolbar { bottom: 8px; gap: 4px; padding: 5px; border-radius: 17px; }
  .tb-btn { width: 42px; height: 42px; border-radius: 13px; }
  .tb-btn.perigo { width: 50px; }
  .tb-sep { margin: 0 1px; }
  .btn-sutil .txt { display: none; }
  .faixa { height: 80px; }
  .faixa .tile { width: 120px; }
  .tile-acoes { opacity: 1; transform: none; }
  .tile-acoes .vol { display: none; }
  .app.em-voz .workspace { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .modal { border-radius: 22px; }
  .modal-corpo { padding: 8px 18px; }
  .modal footer { padding: 14px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .aurora i { animation: none; }
}

.toast.fixo { pointer-events: auto; cursor: pointer; max-width: 520px; border-color: rgba(251,79,122,.45); }
.btn-neon.carregando { color: transparent; }

/* ---- apagar para mim / para todos ---- */
.opcoes-apagar { display: grid; gap: 8px; margin-top: 4px; }
.opcao-apagar { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .15s, background .15s; }
.opcao-apagar:hover { background: rgba(255,255,255,.06); }
.opcao-apagar input { position: absolute; opacity: 0; pointer-events: none; }
.oa-bola { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); transition: .15s; }
.opcao-apagar:has(input:checked) { border-color: rgba(251,79,122,.55); background: rgba(251,79,122,.08); }
.opcao-apagar input:checked + .oa-bola { border-color: var(--perigo); box-shadow: inset 0 0 0 4px #0b0b14, inset 0 0 0 9px var(--perigo); }
.opcao-apagar input:focus-visible + .oa-bola { outline: 2px solid var(--perigo); outline-offset: 2px; }
.oa-txt { display: grid; gap: 2px; }
.oa-txt small { color: var(--suave); font-size: 12.5px; line-height: 1.4; }
.oa-nota { margin: 2px 2px 0; color: var(--suave); font-size: 12.5px; }

/* ---- voltar para a chamada ---- */
.voltar-chamada {
  display: flex; align-items: center; gap: 12px; margin: 10px 14px 0; padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(56,189,248,.08)); border: 1px solid rgba(52,211,153,.32);
  box-shadow: 0 10px 30px -18px rgba(52,211,153,.8); animation: desce .25s var(--ease);
}
.voltar-chamada[hidden] { display: none; }
.voltar-chamada .vc-av { flex: none; position: relative; width: 36px; height: 36px; border-radius: 34%; display: grid; place-items: center; overflow: hidden;
  font: 650 14px var(--display); color: #fff; background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 55%, #120f24) 75%); box-shadow: 0 0 0 2px #0b0b14, 0 0 0 3.5px var(--ok); animation: vch-pulso 2s ease-in-out infinite; }
.voltar-chamada .vc-av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes vch-pulso { 50% { box-shadow: 0 0 0 2px #0b0b14, 0 0 0 6px rgba(52,211,153,.35); } }
.vch-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.vch-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vch-txt small { color: var(--suave); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.vch-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.vch-btn {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px; cursor: pointer;
  font-weight: 650; font-size: 13.5px; color: #04140d; background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 8px 20px -8px rgba(16,185,129,.9);
  transition: transform .12s var(--ease), filter .15s;
}
.vch-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vch-btn:active { transform: scale(.96); }
.vch-btn svg { width: 16px; height: 16px; }
.vch-video { color: var(--ok); }
.vch-video:hover { background: rgba(52,211,153,.14); }
@media (max-width: 600px) { .voltar-chamada { margin: 8px 8px 0; } .vch-txt small { display: none; } .vch-btn { padding: 9px 12px; } }

/* ---- qualidade da tela ---- */
.tb-dupla { display: flex; align-items: center; gap: 2px; }
.tb-dupla #tbTela { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.tb-btn.tb-mini { width: 30px; border-top-left-radius: 6px; border-bottom-left-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.tb-btn.tb-mini[hidden] { display: none; }
.tb-btn.tb-mini svg { width: 14px; height: 14px; opacity: .8; order: -1; }
.tq-rot { font: 700 8.5px/1 var(--fonte); letter-spacing: .02em; color: var(--suave); }
.tb-btn.tb-mini:hover .tq-rot { color: #fff; }
.ctx-titulo { font: 650 10.5px/1 var(--fonte); color: var(--dim); text-transform: uppercase; letter-spacing: .14em; padding: 9px 10px 7px; }
.menu-ctx:has(.com-sub) { width: 300px; }
.mp-item.com-sub { align-items: flex-start; }
.mp-item.com-sub > svg { margin-top: 2px; }
.mi-dois { display: grid; gap: 2px; }
.mi-dois b { font-weight: 600; }
.mi-dois small { color: var(--suave); font-size: 12px; }
.mp-item.marcado { background: rgba(168,85,247,.12); }
.mi-check { margin-left: auto; align-self: center; color: var(--roxo-claro); display: grid; }
.mi-check svg { width: 16px; height: 16px; color: var(--roxo-claro) !important; }
@media (max-width: 600px) { .tb-btn.tb-mini { width: 24px; } }
