/* =====================================================================
   SLX Connect — identidade visual
   Preto e roxo-escuro, gradientes, brilhos sutis e vidro fosco.
   ===================================================================== */

:root, [data-theme="nebula"] {
  --bg-0: #07040d; --bg-1: #0c0717; --bg-2: #120b20; --bg-3: #1a112d; --bg-4: #241843;
  --line: rgba(167, 139, 250, .10); --line-2: rgba(167, 139, 250, .2);
  --text: #eeeaf7; --text-2: #b9b0cf; --text-3: #7f7699;
  --accent: #8b5cf6; --accent-2: #a855f7; --accent-3: #e879f9;
  --glow: rgba(139, 92, 246, .45);
  --grad: linear-gradient(135deg, #6d28d9 0%, var(--accent) 45%, var(--accent-3) 100%);
  --glass: rgba(22, 13, 40, .62);
  --ok: #34d399; --warn: #fbbf24; --bad: #f43f5e; --idle: #f5b942;
  --radius: 14px; --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
[data-theme="abismo"] {
  --bg-0: #000; --bg-1: #050507; --bg-2: #0a0a0f; --bg-3: #111118; --bg-4: #1a1a24;
  --accent: #7c3aed; --accent-2: #8b5cf6; --accent-3: #a855f7; --glass: rgba(10, 10, 16, .7);
}
[data-theme="ametista"] {
  --bg-0: #0b0614; --bg-1: #120a1f; --bg-2: #1a0f2c; --bg-3: #23153a; --bg-4: #2f1d4d;
  --accent: #c084fc; --accent-2: #d8b4fe; --accent-3: #f0abfc; --glow: rgba(192, 132, 252, .4);
}
[data-theme="neon"] {
  --bg-0: #05040b; --bg-1: #0a0814; --bg-2: #100d1f; --bg-3: #181330; --bg-4: #221b44;
  --accent: #8b5cf6; --accent-2: #22d3ee; --accent-3: #22d3ee; --glow: rgba(34, 211, 238, .35);
  --grad: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 40%, #22d3ee 100%);
}
[data-theme="aurora"] {
  --bg-0: #09050f; --bg-1: #10081a; --bg-2: #180c26; --bg-3: #221034; --bg-4: #2e1645;
  --accent: #c026d3; --accent-2: #e879f9; --accent-3: #f472b6; --glow: rgba(232, 121, 249, .4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg-0);
  -webkit-font-smoothing: antialiased; overflow: hidden; line-height: 1.45;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent-2); }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.ic { display: inline-flex; flex-shrink: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-text { color: var(--text-2); margin: 0; }
.hint { color: var(--text-3); font-size: .78rem; display: block; }
.danger-text { color: var(--bad) !important; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.narrow { max-width: 420px; }
.add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.add-row .input { flex: 1; min-width: 160px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); }
[data-effects="off"] .glass, [data-effects="off"] .modal, [data-effects="off"] .toast { backdrop-filter: none !important; background: var(--bg-2); }
[data-effects="off"] *, [data-effects="off"] *::before, [data-effects="off"] *::after { animation: none !important; transition: none !important; }

/* ---------- boot ---------- */
.boot { height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--text-2); }
.boot img { animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 24px var(--glow)); }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 10px; font-weight: 600; font-size: .9rem; transition: transform .12s, background .15s, box-shadow .2s;
  background: var(--bg-4); border: 1px solid var(--line-2); white-space: nowrap;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--bg-4) 70%, var(--accent)); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px var(--glow); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 10px 30px -8px var(--glow); background: var(--grad); }
.btn.ghost { background: transparent; }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .05); }
.btn.danger { background: color-mix(in srgb, var(--bad) 85%, #000); border-color: transparent; color: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--bad); }
.btn.sm { height: 30px; padding: 0 11px; font-size: .8rem; border-radius: 8px; }
.btn.block { width: 100%; height: 44px; }
.btn.glass { background: rgba(10, 6, 20, .6); }
.link-btn { color: var(--accent-2); font-size: .85rem; }
.link-btn:hover { text-decoration: underline; }

.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text-2);
  transition: background .15s, color .15s; flex-shrink: 0;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.off { color: var(--bad); }
.icon-btn.active { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.icon-btn.ok:hover { color: var(--ok); }
.icon-btn.danger:hover { color: #fff; background: var(--bad); }
.icon-btn.live { color: #fff; background: var(--bad); }
.icon-btn.glass { background: rgba(10, 6, 20, .6); color: #fff; }

.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; background: var(--bg-1);
  border: 1px solid var(--line-2); outline: none; transition: border .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 13px; resize: vertical; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.color-input { width: 52px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1); cursor: pointer; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; }
.seg button { padding: 7px 13px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px var(--glow); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text small { color: var(--text-3); font-size: .78rem; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--bg-4); transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--grad); box-shadow: 0 0 14px -2px var(--glow); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.range { display: flex; align-items: center; gap: 12px; }
.range output { min-width: 120px; font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 80px; }

.badge-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff;
  font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center; box-shadow: 0 0 0 3px var(--bg-1);
}
.chip { padding: 4px 10px; border-radius: 99px; font-size: .75rem; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.off { opacity: .5; }
.section-title h3 { margin: 26px 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--bg-3); padding: 2px 7px; border-radius: 6px; font-size: .85em; }
kbd { font-family: ui-monospace, Consolas, monospace; background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; padding: 3px 9px; font-size: .8rem; }

/* ---------- avatar e status ---------- */
.avatar { position: relative; border-radius: 50%; flex-shrink: 0; }
.avatar img, .avatar-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); }
.avatar.is-premium img, .avatar.is-premium .avatar-fallback { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }
.dot { position: absolute; right: -2px; bottom: -2px; border-radius: 50%; border: 3px solid var(--bg-2); background: var(--text-3); }
.s-online { background: var(--ok); } .s-idle { background: var(--idle); } .s-dnd { background: var(--bad); }
.s-offline { background: #6b6480; } .s-invisible { background: #6b6480; }

/* ---------- autenticação ---------- */
.auth-screen { height: 100dvh; display: grid; place-items: center; padding: 20px; position: relative; overflow: auto; background: radial-gradient(1200px 700px at 70% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg-0); }
.auth-orbs i { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 14s ease-in-out infinite; pointer-events: none; }
.auth-orbs i:nth-child(1) { width: 420px; height: 420px; background: #6d28d9; left: -120px; top: 10%; }
.auth-orbs i:nth-child(2) { width: 320px; height: 320px; background: #c026d3; right: -80px; bottom: 5%; animation-delay: -5s; }
.auth-orbs i:nth-child(3) { width: 220px; height: 220px; background: #4c1d95; right: 30%; top: -60px; animation-delay: -9s; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.08); } }
.auth-card { position: relative; width: min(440px, 100%); border-radius: 22px; padding: 32px; box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 80px -30px var(--glow); }
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.auth-brand img { filter: drop-shadow(0 0 18px var(--glow)); }
.auth-brand h1 { margin: 0; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.02em; }
.auth-brand p { margin: 2px 0 0; color: var(--text-2); font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-tabs { display: flex; } .auth-tabs button { flex: 1; }
.auth-reg { display: flex; flex-direction: column; gap: 14px; }
.auth-msg { font-size: .86rem; min-height: 0; }
.auth-msg.error { color: #fda4af; } .auth-msg.success { color: var(--ok); }
.auth-extra { text-align: center; }
.auth-foot { text-align: center; color: var(--text-3); font-size: .72rem; margin: 18px 0 0; }
.setup ol { padding-left: 20px; color: var(--text-2); line-height: 1.8; }
.setup h2 { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 76px 268px minmax(0, 1fr); height: 100dvh; background: var(--bg-0); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: var(--bg-0); border-right: 1px solid var(--line); }
.rail-btn {
  position: relative; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--text-2); transition: border-radius .2s, background .2s, color .2s, box-shadow .2s;
}
.rail-btn:hover, .rail-btn.active { border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px var(--glow); }
.rail-btn img { width: 100%; height: 100%; border-radius: inherit; }
.rail-server { padding: 0; overflow: visible; background: transparent; }
.rail-server:hover, .rail-server.active { background: transparent; box-shadow: 0 0 26px -6px var(--glow); }
.rail-pill { position: absolute; left: -13px; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: #fff; transition: height .2s; }
.rail-btn:hover .rail-pill { height: 18px; } .rail-btn.active .rail-pill { height: 36px; }
.rail-btn .badge-count { position: absolute; right: -4px; bottom: -4px; box-shadow: 0 0 0 3px var(--bg-0); }
.rail-action { color: var(--accent-2); }
.rail-action.premium { color: #fff; background: linear-gradient(135deg, #7c3aed, #e879f9); }
.rail-sep { width: 30px; height: 2px; border-radius: 2px; background: var(--line-2); }
.rail-spacer { flex: 1; }

.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--bg-1); border-right: 1px solid var(--line); }
.side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-head { height: 58px; padding: 0 16px; display: flex; align-items: center; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.server-head { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent); }
.server-head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--accent-2); font-weight: 600; }
.search-fake { width: 100%; height: 32px; border-radius: 8px; background: var(--bg-0); color: var(--text-3); font-size: .82rem; text-align: left; padding: 0 10px; }
.side-scroll { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.side-section { margin-top: 14px; }
.side-section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.side-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text-3);
  text-align: left; transition: background .12s, color .12s; min-height: 36px;
}
.side-item:hover { background: rgba(255, 255, 255, .04); color: var(--text-2); }
.side-item.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-item.unread { color: var(--text); font-weight: 600; }
.side-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .badge-count { box-shadow: none; }
.side-hint, .side-empty { color: var(--text-3); font-size: .8rem; padding: 6px 10px; display: flex; gap: 8px; align-items: center; text-align: left; }
.side-empty:hover { color: var(--accent-2); }
.room-item { margin-bottom: 2px; }
.room-btn .count { font-size: .7rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.room-btn .count.full { color: var(--bad); }
.room-item.active .room-btn { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.room-members { padding-left: 26px; }
.room-member { width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; font-size: .82rem; color: var(--text-2); text-align: left; }
.room-member:hover { background: rgba(255, 255, 255, .04); }
.room-member .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-member .avatar { transition: box-shadow .12s; }
.room-member.speaking .avatar { box-shadow: 0 0 0 2px var(--ok), 0 0 10px var(--ok); }
.owner { color: #fbbf24; display: inline-flex; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .5)); }
.live-pill { background: var(--bad); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; }
.live-pill.sm { font-size: .55rem; padding: 1px 5px; }

.callbar { padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, var(--accent)); display: flex; align-items: center; gap: 6px; }
.callbar-info { flex: 1; min-width: 0; text-align: left; }
.callbar-info small { display: block; color: var(--text-2); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callbar-status { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.callbar-status.good { color: var(--ok); } .callbar-status.mid { color: var(--warn); } .callbar-status.bad { color: var(--bad); }
.callbar-actions { display: flex; gap: 2px; }
.userpanel { display: flex; align-items: center; gap: 2px; padding: 8px; background: var(--bg-0); border-top: 1px solid var(--line); }
.up-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 10px; text-align: left; }
.up-user:hover { background: rgba(255, 255, 255, .05); }
.up-text { min-width: 0; }
.up-text strong { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-text small { display: block; color: var(--text-3); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userpanel .dot, .side-item .dot { border-color: var(--bg-0); }
.side-item .dot { border-color: var(--bg-1); }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--bg-2); }
.main > section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scrim { display: none; }
.view-head { height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 85%, transparent); backdrop-filter: blur(12px); }
.head-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.head-title > .ic { color: var(--text-3); }
.head-title strong { font-family: var(--font-display); font-size: 1.02rem; white-space: nowrap; }
.head-sub { color: var(--text-3); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--line-2); }
.head-actions { display: flex; gap: 4px; align-items: center; }
.menu-btn { display: none; }

/* ---------- chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.msg-list { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 0 8px; overscroll-behavior: contain; }
.chat-start { padding: 24px 22px 18px; }
.chat-start-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px var(--glow); margin-bottom: 12px; }
.chat-start h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; }
.chat-start p { margin: 0; color: var(--text-2); }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 14px 22px 6px; color: var(--text-3); font-size: .72rem; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.msg { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 6px 20px 2px 10px; margin-top: 10px; }
.msg.grouped { margin-top: 0; padding-top: 1px; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.msg.mentioned { background: color-mix(in srgb, var(--warn) 9%, transparent); box-shadow: inset 2px 0 0 var(--warn); }
.msg-avatar { display: flex; justify-content: center; padding-top: 2px; align-self: start; }
.msg-hover-time { font-size: .66rem; color: var(--text-3); text-align: center; padding-top: 4px; opacity: 0; }
.msg:hover .msg-hover-time { opacity: 1; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 600; color: var(--text); }
.msg-author:hover { text-decoration: underline; }
.msg-meta time { font-size: .72rem; color: var(--text-3); }
.gem { font-size: .78rem; filter: drop-shadow(0 0 4px var(--glow)); }
.msg-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; color: var(--text); }
.msg-text a { word-break: break-all; }
.mention { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.mention.me { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); }
.msg-tools { position: absolute; right: 16px; top: -12px; display: none; gap: 2px; padding: 2px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.msg:hover .msg-tools { display: flex; }
.attach-img { display: inline-block; margin-top: 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: min(420px, 100%); }
.attach-img img { max-height: 340px; width: auto; }
.attach-video { margin-top: 6px; max-width: min(480px, 100%); max-height: 320px; border-radius: 12px; background: #000; }
.attach-audio { margin-top: 6px; max-width: 100%; }
.attach-file { margin-top: 6px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; max-width: 100%; }
.attach-file:hover { border-color: var(--accent); }
.attach-file strong { display: block; color: var(--accent-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.attach-file small { color: var(--text-3); }
.composer { margin: 0 16px 16px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); transition: border .15s, box-shadow .15s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.composer.drag { border-color: var(--accent); box-shadow: 0 0 30px -6px var(--glow); }
.composer-row { display: flex; align-items: flex-end; gap: 4px; padding: 6px; }
.composer-input { flex: 1; min-height: 38px; max-height: 180px; resize: none; background: transparent; border: 0; outline: none; padding: 9px 6px; line-height: 1.4; }
.composer-input::placeholder { color: var(--text-3); }
.icon-btn.send { color: var(--accent-2); }
.icon-btn.send:hover { background: var(--grad); color: #fff; }
.file-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px 0; }
.file-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.file-preview div { flex: 1; min-width: 0; }
.file-preview strong { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview small { color: var(--text-3); }
.loading-dots { display: flex; gap: 6px; justify-content: center; padding: 40px; }
.loading-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dots 1s infinite ease-in-out; }
.loading-dots i:nth-child(2) { animation-delay: .15s; } .loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { opacity: .2; transform: translateY(-4px); } }
.error-box { margin: 20px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: #fda4af; }
[data-compact="on"] .msg { padding-top: 2px; margin-top: 4px; }
[data-compact="on"] .msg-avatar .avatar { width: 28px !important; height: 28px !important; }

/* ---------- amigos ---------- */
.tabs { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tab:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.tab.active { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.tab.add { background: var(--grad); color: #fff; }
.tab .badge-count { box-shadow: none; }
.friends-view .view-head .head-title { flex: 0 0 auto; padding-right: 12px; border-right: 1px solid var(--line-2); }
.friends-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.list-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 6px 0 8px; }
.friend-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border-top: 1px solid var(--line); }
.friend-row:hover { background: rgba(255, 255, 255, .03); }
.friend-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.friend-text { min-width: 0; }
.friend-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-text small { display: block; color: var(--text-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handle { color: var(--text-3); font-weight: 400; font-size: .85em; opacity: 0; transition: opacity .15s; }
.friend-row:hover .handle { opacity: 1; }
.friend-actions { display: flex; gap: 4px; align-items: center; }
.friend-actions .icon-btn { background: var(--bg-1); border-radius: 50%; }
.add-friend { border-radius: 18px; padding: 22px; max-width: 680px; }
.add-friend h3 { margin: 0 0 4px; font-family: var(--font-display); }
.add-friend .add-row { margin: 16px 0 8px; }
.my-handle { margin-top: 16px; color: var(--text-2); font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 60px 20px; color: var(--text-2); }
.empty-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-2); margin-bottom: 8px; box-shadow: 0 0 40px -10px var(--glow); }
.empty h3 { margin: 0; color: var(--text); font-family: var(--font-display); }
.empty p { margin: 0 0 12px; max-width: 420px; }
.invite-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }

/* ---------- chamada ---------- */
.call-view { background: var(--bg-0); }
.call-body { flex: 1; min-height: 0; display: flex; }
.call-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.grid { flex: 1; min-height: 0; display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 2), var(--tw, minmax(0, 1fr))); grid-auto-rows: var(--th, minmax(0, 1fr)); justify-content: center; align-content: center; }
.grid.scroll { align-content: start; overflow-y: auto; }
.focus-main { flex: 1; min-height: 0; display: flex; }
.focus-main .tile { flex: 1; }
.strip { display: flex; gap: 10px; height: 120px; overflow-x: auto; flex-shrink: 0; }
.strip .tile { width: 200px; flex-shrink: 0; }
.strip .tile-avatar .avatar { width: 52px !important; height: 52px !important; }
.strip .tile-actions, .strip .watch-cta span, .strip .stats-overlay { display: none; }
.strip .watch-cta .avatar { display: none; }
.tile {
  position: relative; min-height: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; transition: box-shadow .15s, border-color .15s;
}
.tile:hover { border-color: var(--line-2); }
.tile.speaking { box-shadow: 0 0 0 3px var(--ok), 0 0 30px -4px color-mix(in srgb, var(--ok) 70%, transparent); border-color: transparent; }
.tile-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tile-user .tile-video { object-fit: cover; }
.tile-video.mirror { transform: scaleX(-1); }
.tile-avatar { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--user-accent) 30%, transparent), transparent 70%); }
.tile-banner { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.tile-banner.blur { filter: blur(18px); opacity: .35; transform: scale(1.1); }
.tile-ring { position: relative; border-radius: 50%; padding: 4px; transition: box-shadow .15s; }
.tile.speaking .tile-ring { box-shadow: 0 0 0 3px var(--ok); }
.tile-label {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  padding: 5px 10px; border-radius: 9px; background: rgba(5, 3, 10, .72); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600;
}
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-ic.bad { color: var(--bad); display: inline-flex; }
.tile-conn { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(5, 3, 10, .72); font-size: .75rem; color: var(--warn); }
.tile-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; align-items: center; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-actions, .tile:focus-within .tile-actions { opacity: 1; }
.mini-vol { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 30px; border-radius: 8px; }
.mini-vol input { width: 90px; }
.watch-cta { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px; }
.watch-cta span { color: var(--text-2); font-size: .85rem; }
.watch-cta .btn { margin-top: 8px; }
.stats-overlay { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 9px; background: rgba(5, 3, 10, .72); backdrop-filter: blur(8px); font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--text-2); pointer-events: none; }
.stats-overlay.open { font-size: .74rem; line-height: 1.6; }
.stats-overlay:empty { display: none; }
.stats-overlay.q-good { box-shadow: inset 3px 0 0 var(--ok); } .stats-overlay.q-mid { box-shadow: inset 3px 0 0 var(--warn); } .stats-overlay.q-bad { box-shadow: inset 3px 0 0 var(--bad); }
.tile:fullscreen { border-radius: 0; }
.call-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px 18px; flex-wrap: wrap; position: relative; }
.ctrl { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); transition: background .15s, transform .12s, box-shadow .2s; }
.ctrl:hover { background: var(--bg-4); transform: translateY(-2px); }
.ctrl.off { background: color-mix(in srgb, var(--bad) 22%, var(--bg-3)); color: #fda4af; }
.ctrl.on { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px var(--glow); border-color: transparent; }
.ctrl.live { background: var(--bad); color: #fff; box-shadow: 0 0 24px -4px var(--bad); border-color: transparent; }
.ctrl.danger { background: var(--bad); color: #fff; width: 64px; border-radius: 26px; border-color: transparent; }
.ctrl.disabled { opacity: .45; }
.ctrl-sep { width: 1px; height: 30px; background: var(--line-2); margin: 0 4px; }
.ptt-hint { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: .74rem; color: var(--text-3); padding: 3px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.ptt-hint.on { color: var(--ok); border-color: var(--ok); }
.call-side { width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--line); transition: width .2s; }
.call-view.side-open .call-side { width: 360px; }
.side-tabs { padding: 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.side-body-call { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat.embedded .composer { margin: 0 10px 10px; }
.chat.embedded .msg { grid-template-columns: 48px minmax(0, 1fr); padding-right: 10px; }
.people { overflow-y: auto; padding: 10px; }
.person { border-radius: 12px; padding: 6px 8px; }
.person:hover { background: rgba(255, 255, 255, .03); }
.person.speaking .avatar { box-shadow: 0 0 0 2px var(--ok), 0 0 12px var(--ok); }
.person-main { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
.person-text { flex: 1; min-width: 0; }
.person-text strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text small { color: var(--text-3); font-size: .74rem; }
.person-icons { display: flex; gap: 4px; align-items: center; color: var(--text-3); }
.person-vol { display: flex; align-items: center; gap: 8px; padding: 4px 0 2px 44px; color: var(--text-3); }

/* ---------- presets e transmissão ---------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.preset-card { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line-2); text-align: left; transition: border .15s, box-shadow .15s, transform .12s; }
.preset-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.preset-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg-1)); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -14px var(--glow); }
.preset-card strong { font-size: .9rem; }
.preset-card span { font-size: .74rem; color: var(--text-3); }
.preset-card em { font-style: normal; font-size: .7rem; color: var(--accent-3); font-weight: 700; }
.preset-card.locked { opacity: .55; }
.codec-info { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nettest { border-radius: 16px; padding: 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 14px 0; }
.nettest > .stack { flex: 1; }
.nettest h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.test-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.stat { padding: 12px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); }
.stat small { display: block; color: var(--text-3); font-size: .72rem; }
.stat strong { font-family: var(--font-display); font-size: 1.25rem; }
.recommend { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.recommend h3 { margin: 2px 0; }
.recommend small { color: var(--text-3); }
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--bg-1); overflow: hidden; border: 1px solid var(--line); }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--text-3); border-radius: 99px; transition: width .06s; }
.meter > i.hot, .nettest .meter > i { background: var(--grad); }
.meter-th { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: .7; }
.cam-preview { width: 100%; max-width: 420px; aspect-ratio: 16/9; border-radius: 14px; background: var(--bg-1); object-fit: cover; transform: scaleX(-1); border: 1px solid var(--line); }

/* ---------- modais ---------- */
#modals { position: relative; z-index: 50; }
.modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 1, 8, .72); backdrop-filter: blur(6px); animation: fade .16s; z-index: 60; }
.modal-wrap.closing { animation: fade .16s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal { width: min(480px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 20px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 80px -30px var(--glow); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); backdrop-filter: blur(20px); }
.modal.wide { width: min(680px, 100%); }
.modal.small { width: min(400px, 100%); }
.modal.profile { width: min(420px, 100%); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 0 22px; }
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.modal.profile .modal-head { position: absolute; right: 0; top: 0; z-index: 2; padding: 10px; }
.modal.profile .modal-head .icon-btn { background: rgba(0, 0, 0, .45); color: #fff; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal.profile .modal-body { padding: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.danger-zone small { display: block; color: var(--text-3); }

/* status */
.status-head { display: flex; align-items: center; gap: 12px; }
.status-head strong { display: block; font-size: 1.05rem; }
.status-list { display: flex; flex-direction: column; gap: 4px; }
.status-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; }
.status-opt:hover { background: rgba(255, 255, 255, .05); }
.status-opt.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.status-opt .dot { position: static; border: 0; width: 12px !important; height: 12px !important; }
.status-opt small { display: block; color: var(--text-3); font-size: .76rem; }

/* ---------- cartão de perfil ---------- */
.profile-card { --pc-accent: #8b5cf6; position: relative; background: var(--bg-2); }
.pc-banner { height: 120px; background: linear-gradient(135deg, var(--pc-accent), color-mix(in srgb, var(--pc-accent) 30%, #05030a)); background-size: cover; background-position: center; }
.pc-avatar { position: absolute; top: 72px; left: 18px; border-radius: 50%; padding: 5px; background: var(--bg-2); }
.pc-avatar > .dot { right: 4px; bottom: 4px; width: 22px !important; height: 22px !important; border-width: 4px; }
.pc-body { padding: 56px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.pc-names h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.pc-handle { color: var(--text-3); font-size: .88rem; }
.pc-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--text-2); font-size: .88rem; }
.status-pill { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: #0b0614; }
.pc-section { padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--bg-0) 60%, transparent); border: 1px solid var(--line); }
.pc-section small { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.pc-section p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-activity { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--pc-accent) 35%, transparent); }
.pc-activity small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.pc-activity strong { display: block; }
.pc-timer { font-size: .8rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-abismo { background: #000; } .pt-abismo .pc-avatar { background: #000; }
.pt-ametista { background: linear-gradient(180deg, #1a0f2c, #120a1f); }
.pt-neon { background: linear-gradient(180deg, #0f0d22, #06050d); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.pt-aurora { background: linear-gradient(180deg, #2a0f38, #10081a); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--bg-3); border: 1px solid var(--line-2); }
.badges.small .badge { padding: 2px 5px; }
.badge.b-premium, .badge-chip.b-premium { background: linear-gradient(110deg, #4c1d95, #a855f7, #e879f9, #a855f7, #4c1d95); background-size: 250% 100%; animation: shimmer 4s linear infinite; color: #fff; border-color: transparent; }
.badge.b-pioneiro { background: linear-gradient(135deg, #1e1b4b, #6d28d9); color: #fff; }
@keyframes shimmer { to { background-position: -250% 0; } }
.badge-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--bg-1); border: 1px solid var(--line-2); font-size: .82rem; }
.badge-chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg-1)); box-shadow: 0 0 16px -6px var(--glow); }
.badge-chip.locked { opacity: .5; }

/* ---------- configurações ---------- */
.settings-wrap { position: fixed; inset: 0; z-index: 55; background: var(--bg-0); animation: fade .18s; }
.settings-wrap.closing { animation: fade .18s reverse forwards; }
.settings { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); height: 100dvh; }
.settings-side { background: var(--bg-1); border-right: 1px solid var(--line); padding: 24px 12px; display: flex; flex-direction: column; align-items: flex-end; overflow-y: auto; }
.settings-brand { display: flex; align-items: center; gap: 10px; width: 230px; padding: 0 12px 16px; }
.settings-brand img { width: 30px; height: 30px; }
.settings-nav { width: 230px; display: flex; flex-direction: column; gap: 2px; }
.settings-tab { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; text-align: left; font-size: .9rem; }
.settings-tab:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.settings-tab.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.settings-sep { height: 1px; background: var(--line-2); margin: 10px 12px; }
.settings-main { position: relative; overflow: hidden; display: flex; }
.settings-content { flex: 1; overflow-y: auto; padding: 40px 40px 80px; }
.settings-close { position: absolute; top: 24px; right: 28px; z-index: 2; border: 1px solid var(--line-2); border-radius: 50%; width: 40px; height: 40px; }
.panel { max-width: 760px; }
.panel h1 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 18px; }
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; margin: 10px 0; color: var(--text-2); font-size: .9rem; }
.notice ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.account-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px; border-radius: 18px; }
.account-card h2 { margin: 0; font-family: var(--font-display); }
.account-card > div:nth-child(2) { flex: 1; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.preview-col { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.profile-preview .profile-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-2); text-align: left; }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -14px var(--glow); }
.theme-swatch { height: 64px; border-radius: 10px; margin-bottom: 6px; }
.theme-card small { color: var(--text-3); font-size: .74rem; }
.premium-hero { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 30%, transparent), color-mix(in srgb, #e879f9 14%, transparent)), var(--glass); }
.premium-hero.active { box-shadow: 0 0 60px -20px var(--glow); }
.premium-hero h2 { margin: 0 0 4px; font-family: var(--font-display); }
.premium-hero p { margin: 0 0 8px; color: var(--text-2); }
.premium-gem { font-size: 3rem; filter: drop-shadow(0 0 24px var(--glow)); animation: pulse 3s ease-in-out infinite; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.benefit { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.benefit span { font-size: 1.3rem; }
.redeem { padding: 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.redeem h3 { margin: 0; display: flex; align-items: center; gap: 6px; }
.code-input { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.shortcut-list { display: flex; flex-direction: column; }
.shortcut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.key-capture { font-family: ui-monospace, Consolas, monospace; min-width: 120px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg-3) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: pop .2s; font-size: .88rem; }
.toast.out { animation: fade .2s reverse forwards; }
.toast-msg { flex: 1; }
.toast.t-success { box-shadow: inset 3px 0 0 var(--ok), var(--shadow); }
.toast.t-error { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.toast.t-warn { box-shadow: inset 3px 0 0 var(--warn), var(--shadow); }
.toast.t-info { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .call-view.side-open .call-side { position: absolute; right: 0; top: 58px; bottom: 0; z-index: 5; width: min(360px, 92vw); box-shadow: var(--shadow); }
  .call-body { position: relative; }
  .profile-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; max-width: 360px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail, .sidebar { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform .22s ease; }
  .rail { left: 0; width: 72px; transform: translateX(-100%); }
  .sidebar { left: 72px; width: min(290px, calc(100vw - 72px)); transform: translateX(calc(-100% - 72px)); }
  .shell.drawer-open .rail, .shell.drawer-open .sidebar { transform: none; }
  .shell.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .6); }
  .menu-btn { display: inline-grid; margin-left: -6px; }
  .view-head { padding: 0 10px; }
  .head-sub { display: none; }
  .msg { padding-right: 10px; grid-template-columns: 50px minmax(0, 1fr); }
  .composer { margin: 0 8px 8px; }
  .friends-view .view-head { flex-wrap: nowrap; }
  .friends-body { padding: 14px; }
  .grid { gap: 8px; }
  .ctrl { width: 46px; height: 46px; }
  .ctrl.danger { width: 56px; }
  .settings { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .settings-side { align-items: stretch; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-brand { display: none; }
  .settings-nav { width: 100%; flex-direction: row; overflow-x: auto; }
  .settings-tab { white-space: nowrap; }
  .settings-sep { display: none; }
  .settings-content { padding: 20px 16px 60px; }
  .settings-close { top: 10px; right: 10px; }
  .two-col, .test-results { grid-template-columns: 1fr 1fr; }
  .tile-actions { opacity: 1; }
}
@media (max-width: 520px) {
  .two-col { grid-template-columns: 1fr; }
  .modal-wrap { padding: 10px; align-items: end; }
  .modal { border-radius: 20px 20px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =====================================================================
   v0.2 — menus rápidos, voz, perfis Premium, boas-vindas
   ===================================================================== */

/* menus flutuantes */
.popover { position: fixed; z-index: 120; min-width: 260px; max-width: 340px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--bg-3) 96%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 40px -20px var(--glow); backdrop-filter: blur(18px); animation: pop .14s; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-label { padding: 6px 10px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: .86rem; color: var(--text-2); }
.menu-item:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
.menu-item.active { color: var(--text); }
.menu-item > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-check { width: 16px; display: inline-flex; color: var(--accent-2); flex-shrink: 0; }
.menu-sep { height: 1px; background: var(--line-2); margin: 4px 6px; }
.menu-empty { padding: 8px 10px; font-size: .8rem; color: var(--text-3); }
.menu-range { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px; font-size: .78rem; color: var(--text-2); }

/* botões da chamada com setinha */
.ctrl-group { position: relative; display: inline-flex; align-items: center; }
.ctrl-chevron { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); border: 2px solid var(--bg-0); color: var(--text-2); transition: background .15s, color .15s; }
.ctrl-chevron:hover { background: var(--accent); color: #fff; }

/* teste de microfone e medidor em dB */
.mic-test { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 16px; border-radius: 16px; flex-wrap: wrap; }
.mic-test > .stack { flex: 1; min-width: 240px; }
.meter.big { height: 14px; }
.meter > i { transition: width .05s linear, background .15s; }
.dimmed { opacity: .45; pointer-events: none; }
.reset-row { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.sound-row { display: flex; align-items: center; gap: 8px; }
.sound-row .toggle-row { flex: 1; }
.ptt-hint { white-space: nowrap; }

/* barra lateral: criar chamada */
.create-call { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; margin: 2px 0 6px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--accent-2); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); transition: background .15s, color .15s; }
.create-call:hover { background: var(--grad); color: #fff; border-style: solid; border-color: transparent; }

/* ---------- molduras de avatar (Premium) ---------- */
.avatar.has-deco { overflow: visible; isolation: isolate; }
.avatar .dot { z-index: 4; }
.deco-ring { position: absolute; inset: -13%; border-radius: 50%; pointer-events: none; z-index: 2; }
/* anel "recortado": só a borda aparece */
.deco-neon .deco-ring, .deco-fogo .deco-ring, .deco-galaxia .deco-ring, .deco-cristal .deco-ring, .deco-eletrico .deco-ring,
.deco-arcoiris .deco-ring, .deco-gelo .deco-ring, .deco-dourado .deco-ring, .deco-toxico .deco-ring, .deco-oceano .deco-ring,
.deco-estelar .deco-ring, .deco-sakura .deco-ring, .deco-coracoes .deco-ring, .deco-chifres .deco-ring {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw, 4px)), #000 calc(100% - var(--rw, 4px) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw, 4px)), #000 calc(100% - var(--rw, 4px) + 1px));
}
.deco-aura .deco-ring { box-shadow: 0 0 0 2px var(--deco1), 0 0 16px 3px var(--deco1), 0 0 30px 6px color-mix(in srgb, var(--deco2) 55%, transparent); animation: decoPulse 2.4s ease-in-out infinite; }
.deco-neon .deco-ring { --rw: 3px; background: conic-gradient(from 0deg, var(--deco1), var(--deco2), #22d3ee, var(--deco1)); filter: drop-shadow(0 0 6px var(--deco1)) drop-shadow(0 0 12px var(--deco2)); animation: decoSpin 3s linear infinite; }
.deco-fogo .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #f97316, #facc15, #ef4444, #fb923c, #f97316); filter: drop-shadow(0 0 8px #f97316) drop-shadow(0 -4px 10px #ef4444); animation: decoSpin 1.4s linear infinite, decoFlicker .35s steps(2) infinite; }
.deco-galaxia .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #1e1b4b, var(--deco1), #22d3ee, var(--deco2), #1e1b4b); filter: drop-shadow(0 0 10px var(--deco1)); animation: decoSpin 6s linear infinite; }
.deco-coroa .deco-ring { box-shadow: 0 0 0 2px #fbbf24, 0 0 0 4px rgba(251, 191, 36, .25), 0 0 14px 2px rgba(251, 191, 36, .55); }
.deco-orbita .deco-ring { border: 2px dashed color-mix(in srgb, var(--deco1) 85%, transparent); animation: decoSpin 8s linear infinite; }
.deco-orbita .deco-ring::before, .deco-orbita .deco-ring::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; }
.deco-orbita .deco-ring::before { top: -4px; left: calc(50% - 4px); background: var(--deco2); box-shadow: 0 0 10px var(--deco2); }
.deco-orbita .deco-ring::after { bottom: -4px; left: calc(50% - 4px); background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.deco-cristal .deco-ring { --rw: 5px; background: conic-gradient(from 45deg, #e0f2fe, #a5f3fc, #c4b5fd, #f0abfc, #e0f2fe); filter: drop-shadow(0 0 6px #a5f3fc); animation: decoSpin 5s linear infinite; }
.deco-cristal .deco-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%); background-size: 250% 100%; animation: shine 2.4s linear infinite; }
.deco-eletrico .deco-ring { --rw: 3px; background: repeating-conic-gradient(from 0deg, #fde047 0 8deg, transparent 8deg 22deg, #38bdf8 22deg 28deg, transparent 28deg 45deg); filter: drop-shadow(0 0 4px #fde047) drop-shadow(0 0 8px #38bdf8); animation: decoSpin .9s steps(6) infinite, decoFlicker .18s steps(2) infinite; }
.deco-sakura .deco-ring { --rw: 4px; background: conic-gradient(from 0deg, #fbcfe8, #f9a8d4, #fda4af, #fbcfe8); filter: drop-shadow(0 0 6px #f9a8d4); }
.deco-arcoiris .deco-ring { --rw: 4px; background: conic-gradient(#f43f5e, #f59e0b, #facc15, #22c55e, #22d3ee, #6366f1, #a855f7, #f43f5e); animation: decoSpin 2.5s linear infinite; filter: saturate(1.3) drop-shadow(0 0 6px rgba(255,255,255,.3)); }
.deco-gelo .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #e0f2fe, #7dd3fc, #ffffff, #bae6fd, #e0f2fe); filter: drop-shadow(0 0 8px #7dd3fc); animation: decoSpin 7s linear infinite; }
.deco-sombra .deco-ring { inset: -18%; background: radial-gradient(circle, transparent 55%, rgba(0,0,0,.85) 62%, rgba(76, 29, 149, .5) 70%, transparent 74%); animation: decoPulse 3s ease-in-out infinite; }
.deco-dourado .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #78350f, #fbbf24, #fef3c7, #f59e0b, #78350f, #fbbf24, #78350f); filter: drop-shadow(0 0 8px rgba(251,191,36,.7)); animation: decoSpin 4s linear infinite; }
.deco-pixel .deco-ring { inset: -10%; border-radius: 22%; border: 3px solid var(--deco1); box-shadow: 0 0 0 3px #07040d, 0 0 0 6px var(--deco2), 4px 4px 0 6px rgba(0,0,0,.5); image-rendering: pixelated; animation: pixelHue 3s steps(6) infinite; }
.deco-coracoes .deco-ring { --rw: 4px; background: conic-gradient(#f472b6, #c084fc, #fb7185, #f472b6); filter: drop-shadow(0 0 8px #f472b6); animation: decoPulse 1.2s ease-in-out infinite; }
.deco-estelar .deco-ring { --rw: 3px; background: conic-gradient(from 0deg, #fef08a, #fff, var(--deco1), #fff, #fef08a); filter: drop-shadow(0 0 10px #fef08a); animation: decoSpin 10s linear infinite; }
.deco-toxico .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #365314, #a3e635, #4ade80, #bef264, #365314); filter: drop-shadow(0 0 10px #84cc16); animation: decoSpin 3s linear infinite, decoPulse 1.6s ease-in-out infinite; }
.deco-oceano .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #0c4a6e, #0ea5e9, #22d3ee, #2dd4bf, #0c4a6e); filter: drop-shadow(0 0 8px #0ea5e9); animation: decoSpin 6s linear infinite reverse; }
.deco-chifres .deco-ring { --rw: 3px; background: conic-gradient(#7f1d1d, #ef4444, #000, #ef4444, #7f1d1d); filter: drop-shadow(0 0 8px #ef4444); animation: decoPulse 2s ease-in-out infinite; }
.deco-halo .deco-ring { inset: -10%; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 18px 4px rgba(254, 240, 138, .6); }
.deco-halo .deco-ring::before { content: ''; position: absolute; left: 18%; right: 18%; top: -22%; height: 14%; border-radius: 50%; border: 3px solid #fef08a; box-shadow: 0 0 12px #fef08a; animation: decoBob 2.6s ease-in-out infinite; }
/* enfeites ao redor */
.deco-extra { position: absolute; inset: -16%; pointer-events: none; z-index: 3; }
.deco-extra i { position: absolute; font-style: normal; line-height: 1; font-size: calc(var(--av) * .26); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6));
  left: calc(50% + 50% * cos(calc(-90deg + 360deg / var(--n) * var(--k) + 40deg)) - .5em);
  top: calc(50% + 50% * sin(calc(-90deg + 360deg / var(--n) * var(--k) + 40deg)) - .5em);
  animation: decoBobItem 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
.deco-coroa .deco-extra i, .deco-chifres .deco-extra i, .deco-halo .deco-extra i, .deco-toxico .deco-extra i { left: calc(50% - .5em); top: -12%; font-size: calc(var(--av) * .36); transform: rotate(-8deg); }
.deco-halo .deco-extra i { display: none; }
.deco-galaxia .deco-extra i, .deco-estelar .deco-extra i { color: #fff; text-shadow: 0 0 8px #fff; animation: twinkle 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * -.5s); }
.deco-fogo .deco-extra i { top: auto; bottom: -6%; left: calc(14% + var(--k) * 28%); font-size: calc(var(--av) * .22); animation: flame .6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.2s); }
.avatar[style*="--av: 2"] .deco-extra, .avatar[style*="--av: 3"] .deco-extra { display: none; }
@keyframes decoSpin { to { transform: rotate(360deg); } }
@keyframes decoPulse { 50% { opacity: .6; transform: scale(1.04); } }
@keyframes decoFlicker { 50% { opacity: .82; } }
@keyframes decoBob { 50% { transform: translateY(-15%); } }
@keyframes decoBobItem { 50% { transform: translateY(-14%) scale(1.06); } }
@keyframes flame { to { transform: translateY(-18%) scale(1.15); } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes pixelHue { 50% { filter: hue-rotate(90deg); } }

/* ---------- efeitos de nome (Premium) ---------- */
.uname { display: inline; }
.uname.fx-gradiente { background: linear-gradient(90deg, var(--n1), var(--n2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uname.fx-brilho { color: #fff; text-shadow: 0 0 6px var(--n1), 0 0 14px var(--n1), 0 0 24px var(--n2); }
.uname.fx-arco-iris { background: linear-gradient(90deg, #f43f5e, #f59e0b, #facc15, #22c55e, #22d3ee, #8b5cf6, #f43f5e); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 4s linear infinite; }
.uname.fx-dourado { background: linear-gradient(100deg, #b45309 0%, #fbbf24 30%, #fff7d6 45%, #fbbf24 60%, #b45309 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 3s linear infinite; filter: drop-shadow(0 0 4px rgba(251,191,36,.45)); }
.uname.fx-fogo { background: linear-gradient(0deg, #dc2626, #f97316 45%, #fde047); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 5px rgba(249,115,22,.7)); animation: decoFlicker .4s steps(2) infinite; }
.uname.fx-gelo { background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #ffffff, #7dd3fc); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 10px rgba(125, 211, 252, .35); animation: rainbow 5s linear infinite; }
.uname.fx-glitch { position: relative; color: #fff; text-shadow: 2px 0 #f0f, -2px 0 #0ff; animation: glitch 2.2s steps(1) infinite; }
.uname.fx-onda { background: linear-gradient(90deg, var(--n1), var(--n2), var(--n1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 2.2s linear infinite; display: inline-block; }
.uname.fx-holografico { background: linear-gradient(115deg, #a5f3fc, #f0abfc, #fde68a, #a7f3d0, #c4b5fd, #a5f3fc); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 6s linear infinite; filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }
@keyframes rainbow { to { background-position: -300% 0; } }
@keyframes glitch { 0%, 88%, 100% { text-shadow: 2px 0 #f0f, -2px 0 #0ff; transform: none; } 90% { text-shadow: -3px 0 #f0f, 3px 0 #0ff; transform: translateX(1px) skewX(-8deg); } 94% { text-shadow: 3px 1px #0ff, -3px -1px #f0f; transform: translateX(-1px); } }

/* ---------- cartão de perfil ---------- */
.profile-card { overflow: hidden; isolation: isolate; }
.profile-card.pc-gradient { background: linear-gradient(170deg, color-mix(in srgb, var(--pc1) 55%, #07040d) 0%, color-mix(in srgb, var(--pc2) 45%, #07040d) 100%); }
.profile-card.pc-gradient .pc-avatar { background: color-mix(in srgb, var(--pc1) 55%, #07040d); }
.profile-card.pc-gradient .pc-section, .profile-card.pc-gradient .pc-link { background: rgba(5, 3, 10, .45); border-color: rgba(255, 255, 255, .08); }
.pc-pronouns { color: var(--text-3); }
.pc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--bg-0) 60%, transparent); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600; max-width: 100%; }
.pc-link:hover { border-color: var(--pc-accent); }
/* (v0.4) .pc-avatar continua absoluto: antes ficava 'relative' e a foto descia, com o status solto na borda */
.pc-body { position: relative; z-index: 2; }
.pc-avatar { z-index: 3; }
/* estilos de banner */
.pc-banner.bs-gradiente { background: linear-gradient(120deg, var(--pc1, var(--pc-accent)), var(--pc2, #1b1230), var(--pc-accent)); background-size: 200% 200%; animation: bannerMove 8s ease-in-out infinite alternate; }
.pc-banner.bs-grade { background: linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.12) 0) 0 0 / 22px 22px, linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,.12) 0) 0 0 / 22px 22px, linear-gradient(135deg, var(--pc-accent), #07040d); }
.pc-banner.bs-ondas { background: radial-gradient(120% 60% at 50% 120%, var(--pc2, #1b1230) 40%, transparent 41%), radial-gradient(120% 60% at 30% 100%, color-mix(in srgb, var(--pc-accent) 70%, #000) 40%, transparent 41%), linear-gradient(135deg, var(--pc1, var(--pc-accent)), #120b20); }
.pc-banner.bs-pontos { background: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 2px) 0 0 / 16px 16px, linear-gradient(135deg, var(--pc1, var(--pc-accent)), var(--pc2, #1b1230)); }
.pc-banner.bs-listras { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px), linear-gradient(135deg, var(--pc1, var(--pc-accent)), var(--pc2, #1b1230)); }
@keyframes bannerMove { to { background-position: 100% 100%; } }
/* fontes do cartão */
.cf-grotesk .pc-names h2, .choice-name.cf-grotesk { font-family: 'Space Grotesk', var(--font); letter-spacing: -.02em; }
.cf-mono .pc-names h2, .choice-name.cf-mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.cf-serif .pc-names h2, .choice-name.cf-serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.cf-arredondada .pc-names h2, .choice-name.cf-arredondada { font-family: 'Trebuchet MS', 'Segoe UI Rounded', var(--font); font-weight: 800; letter-spacing: .01em; }

/* efeitos animados do perfil (Premium) */
.pfx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.pfx i { position: absolute; left: var(--x); top: -12px; display: block; font-style: normal; }
.pfx-estrelas i { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px var(--pc1, #a855f7); top: calc(var(--i) * 5.4%); animation: twinkle calc(2s + var(--d)) ease-in-out infinite; animation-delay: calc(var(--d) * -1); transform: scale(var(--s)); }
.pfx-neve i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); filter: blur(.5px); animation: fall calc(6s + var(--d)) linear infinite; animation-delay: calc(var(--d) * -2); transform: scale(var(--s)); }
.pfx-vagalumes i { width: 5px; height: 5px; border-radius: 50%; background: #facc15; box-shadow: 0 0 10px 2px rgba(250, 204, 21, .8); top: calc(20% + var(--i) * 4%); animation: firefly calc(5s + var(--d)) ease-in-out infinite alternate, twinkle 2.2s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.pfx-petalas i { width: 9px; height: 7px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f9a8d4, #f472b6); animation: fall calc(7s + var(--d)) linear infinite, sway 2.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -2); opacity: .9; }
.pfx-aurora i, .pfx-nebulosa i { top: -20%; left: calc(var(--i) * 30% - 20%); width: 70%; height: 70%; border-radius: 50%; filter: blur(30px); opacity: .45; background: radial-gradient(circle, var(--pc1, #8b5cf6), transparent 70%); animation: aurora calc(7s + var(--i) * 2s) ease-in-out infinite alternate; }
.pfx-aurora i:nth-child(2) { background: radial-gradient(circle, #22d3ee, transparent 70%); }
.pfx-aurora i:nth-child(3) { background: radial-gradient(circle, var(--pc2, #e879f9), transparent 70%); }
.pfx-nebulosa i { opacity: .55; background: radial-gradient(circle, #c026d3, transparent 70%); }
.pfx-nebulosa i:nth-child(2) { background: radial-gradient(circle, #4f46e5, transparent 70%); }
.pfx-nebulosa i:nth-child(3) { background: radial-gradient(circle, #f472b6, transparent 70%); }
.pfx-chuva i { width: 1.5px; height: 18px; background: linear-gradient(transparent, rgba(186, 230, 253, .8)); animation: rain calc(.8s + var(--d) / 6) linear infinite; animation-delay: calc(var(--d) * -1); }
.pfx-bolhas i { top: auto; bottom: -20px; width: calc(8px * var(--s) + 4px); height: calc(8px * var(--s) + 4px); border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%); animation: rise calc(6s + var(--d)) ease-in infinite; animation-delay: calc(var(--d) * -2); }
.pfx-confete i { width: 6px; height: 10px; background: hsl(var(--h) 90% 60%); animation: fall calc(4s + var(--d)) linear infinite, spinY 1s linear infinite; animation-delay: calc(var(--d) * -2); }
.pfx-matrix i { color: #4ade80; font-family: ui-monospace, monospace; font-size: 13px; text-shadow: 0 0 6px #22c55e; animation: fall calc(4s + var(--d)) linear infinite; animation-delay: calc(var(--d) * -2); opacity: .8; }
.pfx-coracoes i { top: auto; bottom: -20px; font-size: calc(10px + 6px * var(--s)); animation: rise calc(6s + var(--d)) ease-in infinite, sway 2s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -2); }
.pfx-raios i { top: 0; width: 2px; height: 60%; background: linear-gradient(#fff, #a5f3fc, transparent); filter: drop-shadow(0 0 6px #a5f3fc); opacity: 0; transform: skewX(-15deg); animation: bolt calc(3s + var(--d)) linear infinite; animation-delay: calc(var(--d) * -1); }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes fall { to { transform: translateY(620px) rotate(240deg); } }
@keyframes rain { to { transform: translateY(620px); } }
@keyframes rise { to { transform: translateY(-640px); opacity: .2; } }
@keyframes sway { to { margin-left: 30px; } }
@keyframes spinY { to { rotate: y 360deg; } }
@keyframes firefly { to { transform: translate(30px, -40px); } }
@keyframes aurora { to { transform: translate(25%, 20%) scale(1.2); } }
@keyframes bolt { 0%, 92%, 100% { opacity: 0; } 93%, 95% { opacity: 1; } 94% { opacity: .2; } }

/* ---------- editor de perfil ---------- */
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.palette-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.palette { width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .15); transition: transform .12s; }
.palette:hover { transform: scale(1.1); border-color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-2); font-size: .78rem; color: var(--text-2); transition: border .15s, box-shadow .15s; }
.choice:hover { border-color: var(--accent); }
.choice.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -12px var(--glow); color: var(--text); }
.choice-name { font-size: 1rem; min-height: 24px; display: flex; align-items: center; }
.choice-fx { position: relative; width: 100%; height: 48px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #2a1650, #0b0614); }
.choice-fx .pfx-neve i, .choice-fx .pfx-petalas i { animation-duration: 3s, 2s; }
.premium-zone { margin-top: 10px; padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(140deg, color-mix(in srgb, #7c3aed 18%, transparent), color-mix(in srgb, #e879f9 8%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.premium-zone-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.premium-zone-head h3 { margin: 0; font-family: var(--font-display); }
.pill-premium { font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--text-3); text-transform: none; }
.pill-premium.on { background: linear-gradient(110deg, #6d28d9, #e879f9); color: #fff; }
.save-bar { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(transparent, var(--bg-0) 40%); z-index: 3; }

/* ---------- boas-vindas ---------- */
.welcome-step { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-2); text-align: left; transition: border .15s, transform .12s; }
.welcome-step:hover { border-color: var(--accent); transform: translateY(-1px); }
.welcome-step > div { flex: 1; min-width: 0; }
.welcome-step strong { display: block; }
.welcome-step small { color: var(--text-3); }
.welcome-emoji { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--accent) 16%, transparent); flex-shrink: 0; }
.welcome-go { color: var(--accent-2); font-weight: 700; font-size: .85rem; white-space: nowrap; }

@media (max-width: 860px) {
  .link-row { grid-template-columns: 1fr auto; }
  .link-row input:nth-child(2) { grid-column: 1; }
  .popover { max-width: calc(100vw - 16px); }
}

/* opções do editor v0.3 */
.choice-banner { width: 100%; height: 40px; border-radius: 10px; }

/* =====================================================================
   v0.3 — admin, suporte, avisos, tela cheia, modo limpo, PWA
   ===================================================================== */
.main-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.main-col > .main { flex: 1; }
.announce { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: .88rem; font-weight: 500; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.announce.lv-info { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, var(--bg-1)), color-mix(in srgb, var(--accent-3) 18%, var(--bg-1))); }
.announce.lv-sucesso { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 28%, var(--bg-1)), color-mix(in srgb, var(--accent) 20%, var(--bg-1))); }
.announce.lv-alerta { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 30%, var(--bg-1)), color-mix(in srgb, var(--bad) 18%, var(--bg-1))); }
.announce-text { flex: 1; min-width: 0; }

/* barra lateral */
.side-head-actions { display: flex; gap: 2px; }
.people-count { font-style: normal; color: var(--text-3); text-transform: none; letter-spacing: 0; }
.room-item { border-radius: 10px; }
.room-item.active { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.rail-action.admin { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.rail-action.install { color: var(--ok); }
.rail-emoji { font-size: 1.25rem; }
.settings-tab.admin-tab { color: #fde68a; background: linear-gradient(90deg, rgba(251, 191, 36, .12), transparent); }

/* tela cheia e modo limpo das transmissões */
.stage:fullscreen, .stage:-webkit-full-screen { padding: 0; background: #000; gap: 0; }
.stage:fullscreen .strip, .stage:-webkit-full-screen .strip { display: none; }
.stage:fullscreen .focus-main, .stage:fullscreen .tile { border-radius: 0; border: 0; }
.stage:fullscreen .tile-video { object-fit: contain; }
.stage .tile-actions, .stage .tile-label, .stage .stats-overlay { transition: opacity .25s; }
.stage:fullscreen .tile-actions, .stage:fullscreen .tile-label, .stage:fullscreen .stats-overlay { opacity: 0; }
.call-view.awake .stage:fullscreen .tile-actions, .call-view.awake .stage:fullscreen .tile-label { opacity: 1; }
.call-view.clean .tile-label, .call-view.clean .stats-overlay, .call-view.clean .tile-conn, .call-view.clean .tile-actions { opacity: 0 !important; }
.call-view.clean.awake .tile-actions { opacity: 1 !important; }
.call-view.clean .tile.speaking { box-shadow: none; }
.stage:fullscreen { cursor: none; }
.call-view.awake .stage:fullscreen { cursor: default; }
.focus-main { min-width: 0; }
.focus-main .tile { min-width: 0; }
.tile-screen .tile-video { object-fit: contain; }

/* admin */
.admin-wrap .settings-brand { align-items: center; }
.admin-shield { font-size: 1.6rem; filter: drop-shadow(0 0 10px rgba(251, 191, 36, .5)); }
.admin-panel { max-width: 1000px; display: flex; flex-direction: column; gap: 16px; }
.admin-panel h1 { margin-bottom: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.admin-grid.small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.admin-stat strong { font-size: 1.6rem; display: block; }
.admin-stat .hint { margin-top: 2px; }
.admin-stat.tone-premium { border-color: color-mix(in srgb, var(--accent-3) 50%, transparent); background: linear-gradient(140deg, color-mix(in srgb, #7c3aed 18%, var(--bg-1)), var(--bg-1)); }
.admin-stat.tone-bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.admin-stat.tone-bad strong { color: #fda4af; }
.admin-stat.tone-warn strong { color: var(--warn); }
.admin-card { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); }
.admin-card h3 { margin: 0; font-size: 1rem; }
.admin-card.danger-card { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.admin-card.focus { box-shadow: 0 0 0 2px var(--bad); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 130px; margin-top: 12px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--grad); box-shadow: 0 0 12px -4px var(--glow); }
.bar span { font-size: .66rem; color: var(--text-3); }
.admin-list { display: flex; flex-direction: column; gap: 6px; }
.admin-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); text-align: left; }
button.admin-row:hover { border-color: var(--accent); }
.admin-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-main small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-inline { display: flex; align-items: center; gap: 10px; text-align: left; }
.handle-inline { color: var(--text-3); font-weight: 400; font-size: .85em; }
.admin-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line-2); white-space: nowrap; }
.tag-admin { background: linear-gradient(135deg, #1e1b4b, #4c1d95); color: #fde68a; border-color: transparent; }
.tag-premium { background: linear-gradient(135deg, #6d28d9, #c026d3); color: #fff; border-color: transparent; }
.tag-bad { background: color-mix(in srgb, var(--bad) 22%, var(--bg-2)); color: #fda4af; }
.tag-ok { background: color-mix(in srgb, var(--ok) 18%, var(--bg-2)); color: var(--ok); }
.code-big { font-size: .95rem; padding: 6px 10px; border-radius: 8px; background: var(--bg-3); letter-spacing: .04em; }
.report-card { padding: 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report-excerpt { margin: 0; padding: 10px 12px; border-left: 3px solid var(--bad); background: var(--bg-0); border-radius: 0 10px 10px 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-bad { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); color: #fecdd3; padding: 12px 14px; border-radius: 12px; }

/* suporte */
.tk-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tk-detail { min-height: 200px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.tk-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.tk-head h3 { margin: 0 0 2px; }
.tk-thread { display: flex; flex-direction: column; gap: 10px; }
.tk-messages { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.tk-msg { display: flex; gap: 10px; align-items: flex-start; }
.tk-bubble { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--bg-3); border: 1px solid var(--line); }
.tk-msg.staff .tk-bubble { background: linear-gradient(140deg, color-mix(in srgb, #4c1d95 45%, var(--bg-2)), var(--bg-2)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tk-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: .85rem; }
.tk-meta time { color: var(--text-3); font-size: .72rem; }
.tk-staff { color: #fde68a; }
.tk-composer { display: flex; flex-direction: column; gap: 8px; }
.tk-new { padding: 18px; border-radius: 16px; }
.tk-new h3 { margin: 0; }
.tk-status { font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tk-aberto { background: color-mix(in srgb, var(--warn) 22%, var(--bg-2)); color: var(--warn); }
.tk-respondido { background: color-mix(in srgb, var(--ok) 20%, var(--bg-2)); color: var(--ok); }
.tk-fechado { background: var(--bg-3); color: var(--text-3); }

/* insígnias da equipe */
.badge.b-admin, .badge-chip.b-admin { background: linear-gradient(135deg, #1e1b4b, #7c2d12); color: #fde68a; border-color: rgba(251, 191, 36, .4); box-shadow: 0 0 12px -4px rgba(251, 191, 36, .6); }
.badge.b-staff, .badge.b-moderador { background: linear-gradient(135deg, #0c4a6e, #4c1d95); color: #e0f2fe; }
.badge.b-fundador { background: linear-gradient(110deg, #78350f, #fbbf24, #78350f); background-size: 200% 100%; animation: shimmer 5s linear infinite; color: #fff; border-color: transparent; }
.badge.b-verificado { background: #1d4ed8; color: #fff; border-color: transparent; }
.badge.b-vip { background: linear-gradient(135deg, #a16207, #facc15); color: #1c1917; border-color: transparent; }
.badge.b-parceiro, .badge.b-apoiador, .badge.b-criador, .badge.b-bughunter { background: color-mix(in srgb, var(--accent) 25%, var(--bg-3)); }

/* cadastro */
.user-status.ok { color: var(--ok); }
.user-status.bad { color: #fda4af; }

/* conta suspensa */
.banned-card { display: flex; flex-direction: column; gap: 12px; width: min(560px, 100%); }
.banned-card h1 { margin: 0; font-family: var(--font-display); }
.banned-ic { font-size: 3rem; filter: drop-shadow(0 0 20px rgba(244, 63, 94, .6)); }

/* PWA */
.install-card { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 18px; flex-wrap: wrap; }
.install-card img { border-radius: 18px; box-shadow: 0 10px 30px -10px var(--glow); }
.install-card > div { flex: 1; min-width: 220px; }
.install-card h3 { margin: 0 0 4px; }
@media (display-mode: standalone) {
  body { user-select: none; }
  input, textarea, .msg-text, .tk-bubble, code { user-select: text; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .userpanel { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .call-controls { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 860px) {
  .tk-layout { grid-template-columns: 1fr; }
  .admin-row { flex-wrap: wrap; }
}

/* =====================================================================
   v0.4 — celular/tablet, conexão, chat moderno (responder, editar, reações)
   ===================================================================== */
/* telas de toque não têm "passar o mouse": mostra o que antes só aparecia no hover */
@media (hover: none), (pointer: coarse) {
  .tile-actions { opacity: 1; }
  .handle { opacity: 1; }
  .msg:hover { background: transparent; }
  .msg:hover .msg-tools { display: none; }
  .msg.tools-open { background: rgba(255, 255, 255, .035); }
  .msg.tools-open .msg-tools { display: flex; }
  .msg-tools { top: -18px; right: 8px; padding: 3px; }
  .msg-tools .icon-btn.sm { width: 36px; height: 36px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .icon-btn.sm { min-width: 32px; min-height: 32px; }
  .side-item { min-height: 44px; }
  .ctrl-chevron { width: 26px; height: 26px; }
  input[type="range"] { min-height: 28px; }
}

/* mensagens: respostas, edição, reações, "digitando…" */
.msg-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.msg-wrap > .msg-list { flex: 1; }
.msg.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.msg.pending { opacity: .6; }
.reply-quote { display: flex; align-items: center; gap: 6px; max-width: 100%; margin: 0 0 4px; padding: 2px 8px 2px 6px; border-radius: 8px; font-size: .8rem; color: var(--text-3); text-align: left; border-left: 2px solid var(--line-2); }
button.reply-quote:hover { color: var(--text-2); background: rgba(255, 255, 255, .04); }
.reply-quote strong { color: var(--text-2); font-weight: 600; flex-shrink: 0; }
.reply-quote span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reply-quote.muted { font-style: italic; }
.edited { color: var(--text-3); font-size: .7rem; }
.edit-input { margin-top: 4px; font-size: .95rem; }
.edit-hint { font-size: .75rem; color: var(--text-3); margin-top: 4px; }
.edit-hint .link-btn { font-size: .75rem; }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line-2); font-size: .85rem; transition: border-color .12s, background .12s, transform .1s; }
.reaction:hover { border-color: var(--accent); }
.reaction:active { transform: scale(.94); }
.reaction small { font-size: .74rem; color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.reaction.mine { background: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.reaction.mine small { color: var(--text); }
.emoji-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 2px; }
.emoji-btn { width: 40px; height: 40px; border-radius: 10px; font-size: 1.3rem; display: grid; place-items: center; transition: background .12s, transform .1s; }
.emoji-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); transform: scale(1.12); }
.popover:has(.emoji-pick) { min-width: 0; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0 12px; font-size: .82rem; color: var(--text-2); }
.reply-bar strong { color: var(--text); }
.reply-snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.typing { height: 0; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 0 22px; font-size: .78rem; color: var(--text-2); transition: height .15s; }
.typing.on { height: 22px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); animation: dots 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
.jump-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 10px 30px -10px var(--glow); z-index: 3; animation: pop .2s; }
.error-box .btn { margin-left: 10px; }

/* faixa de "sem internet" */
.net-banner { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: .84rem; background: color-mix(in srgb, var(--warn) 18%, var(--bg-1)); color: #fde68a; border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); flex-shrink: 0; }

/* chamada: quadros 16:9, celular, tela cheia no iPhone, sinal caindo */
.tile { aspect-ratio: auto; }
.grid > .tile { width: 100%; height: 100%; }
.sig-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.call-view.pseudo-fs .stage { position: fixed; inset: 0; z-index: 90; padding: 0; gap: 0; background: #000; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.call-view.pseudo-fs .stage .strip { display: none; }
.call-view.pseudo-fs .stage .tile, .call-view.pseudo-fs .stage .focus-main { border-radius: 0; border: 0; }
.fs-exit { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); z-index: 5; width: 44px; height: 44px; border-radius: 50%; }
.ctrl.sm-ctrl { width: 44px; height: 44px; }
.watch-cta strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-screen .tile-actions { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 20px); }
.tile-screen .stats-overlay { top: auto; bottom: 46px; }

/* barra inferior (só celular/tablet em pé) */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-rows: minmax(0, 1fr) auto; }
  .main-col { grid-row: 1; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-row: 2; z-index: 20;
    background: color-mix(in srgb, var(--bg-1) 94%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .bn-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 4px; border-radius: 12px; color: var(--text-3); font-size: .68rem; font-weight: 600; min-height: 52px; }
  .bn-item.active { color: var(--text); }
  .bn-item.active .bn-ic { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
  .bn-item.in-call { color: var(--ok); }
  .bn-item.in-call .bn-ic { background: color-mix(in srgb, var(--ok) 16%, transparent); }
  .bn-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 99px; transition: background .15s; }
  .bn-ic .badge-count { position: absolute; top: -3px; right: 4px; box-shadow: 0 0 0 2px var(--bg-1); }
  .bn-label { white-space: nowrap; }
  .shell.view-call .bottom-nav { display: none; }
  .shell:has(.composer-input:focus) .bottom-nav, .shell:has(.edit-input:focus) .bottom-nav { display: none; }
  .userpanel { padding-bottom: 8px; }
  #toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 10px; right: 10px; max-width: none; }
  .toast { font-size: .84rem; }
  .friends-view .view-head { height: auto; min-height: 58px; flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 6px; }
  .friends-view .view-head .head-title { border-right: 0; }
  .friends-view .view-head > .tabs { order: 3; width: 100%; padding-bottom: 2px; }
  .call-view.side-open .call-side { width: 100%; left: 0; }
  .call-side .side-tabs { display: flex; }
  .call-controls { gap: 8px; padding: 10px 8px calc(12px + env(safe-area-inset-bottom)); }
  .ctrl-sep { display: none; }
  .ctrl.hide-mobile { display: none; }
  .stage { padding: 8px; gap: 8px; }
  .strip { height: 96px; }
  .strip .tile { width: 150px; }
  .tile-label { font-size: .76rem; padding: 4px 8px; left: 6px; bottom: 6px; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
}
@media (max-width: 420px) {
  .ctrl { width: 44px; height: 44px; }
  .ctrl.danger { width: 52px; }
  .call-controls { gap: 6px; }
  .view-head .head-actions .icon-btn { width: 34px; }
  .settings-content { padding: 18px 12px 60px; }
  .panel h1 { font-size: 1.35rem; padding-right: 44px; }
  .msg { grid-template-columns: 46px minmax(0, 1fr); padding-left: 6px; }
}
/* celular deitado: aproveita a altura */
@media (max-height: 500px) and (orientation: landscape) {
  .view-head { height: 46px; }
  .call-controls { padding: 6px 8px; }
  .ctrl { width: 40px; height: 40px; }
  .bottom-nav { display: none !important; }
}
/* aparelhos fracos / economia: menos efeitos pesados */
@media (prefers-reduced-transparency: reduce) {
  .glass, .modal, .toast, .popover, .view-head { backdrop-filter: none !important; }
}

/* quadros pequenos (muita gente na chamada / tela estreita): versão compacta do "Assistir" */
.tile { container-type: size; }
.tile-label, .stats-overlay, .tile-conn { pointer-events: none; }
.tile.not-watching { cursor: pointer; }
@container (max-height: 230px) {
  .watch-cta { gap: 2px; padding: 8px; }
  .watch-cta .avatar, .watch-cta span { display: none; }
  .watch-cta strong { font-size: .82rem; }
  .watch-cta .btn { margin-top: 4px; height: 32px; }
}
@container (max-height: 150px) {
  .watch-cta strong { display: none; }
  .tile-avatar .avatar { width: 48px !important; height: 48px !important; }
  .tile-avatar .avatar-fallback { font-size: 19px !important; }
}
.badge-count.neutral { background: var(--bg-4); color: var(--text-2); }
.ptt-btn { order: -1; flex-basis: 100%; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-2); touch-action: none; user-select: none; -webkit-user-select: none; }
.ptt-btn.on { background: color-mix(in srgb, var(--ok) 22%, var(--bg-3)); border-color: var(--ok); color: var(--ok); box-shadow: 0 0 24px -6px var(--ok); }

/* =====================================================================
   v0.5 — Loja, gemas, cadeado Premium, membros, perfil, apoio
   ===================================================================== */
/* gemas */
.gem-ic { display: inline-flex; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .55)); }
.gem-pill { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .78rem; font-variant-numeric: tabular-nums; flex-shrink: 0; transition: transform .12s, border-color .15s; }
.gem-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.gem-pill.big { height: 34px; padding: 0 12px 0 9px; font-size: .95rem; margin-left: auto; }
.gem-float { position: absolute; right: 2px; top: -4px; font-size: .74rem; font-weight: 800; color: #c4b5fd; pointer-events: none; animation: gemUp 1.4s ease-out forwards; text-shadow: 0 0 8px var(--glow); }
@keyframes gemUp { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.rail-btn.has-dot::after { content: ''; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--bg-0), 0 0 10px var(--warn); }
.rail-action.shop { color: #c4b5fd; }
.rail-action.heart { color: #f472b6; }
.rail-action.heart:hover, .rail-action.heart.active { background: linear-gradient(135deg, #be185d, #f472b6); color: #fff; }

/* cadeado: prévia continua visível atrás do vidro com gradiente */
.lock-ov { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(124, 58, 237, .30), rgba(10, 6, 20, .42) 55%, rgba(232, 121, 249, .28));
  backdrop-filter: blur(1.5px) saturate(115%); -webkit-backdrop-filter: blur(1.5px) saturate(115%); }
.lock-ov.lock-buy { background: linear-gradient(160deg, rgba(10, 6, 20, .1), rgba(10, 6, 20, .32)); backdrop-filter: none; -webkit-backdrop-filter: none; align-items: end; justify-items: end; padding: 4px; }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, rgba(109, 40, 217, .9), rgba(232, 121, 249, .85)); box-shadow: 0 6px 18px -6px rgba(168, 85, 247, .8), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lock-buy .lock-badge { background: rgba(10, 6, 20, .78); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); font-variant-numeric: tabular-nums; }
.choice-prev { position: relative; display: grid; place-items: center; width: 100%; border-radius: 10px; min-height: 48px; }
.choice-prev.wide { padding: 10px; border-radius: 12px; }
.choice-prev.wide.is-locked > .stack { pointer-events: none; opacity: .85; }
.choice.is-locked { cursor: help; }
.choice.is-locked > span:last-child { color: var(--text-3); }
.badge-chip.is-locked { opacity: .8; border-style: dashed; }
.chip-lock, .chip-price { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 1px 6px; border-radius: 99px; font-size: .66rem; font-weight: 800; }
.chip-lock { background: linear-gradient(135deg, #6d28d9, #e879f9); color: #fff; }
.chip-price { background: var(--bg-3); color: #c4b5fd; }
.notice-premium { border: 1px solid color-mix(in srgb, var(--accent-3) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 16%, transparent), color-mix(in srgb, #e879f9 10%, transparent)); color: var(--text); }

/* avatares exclusivos e novas molduras */
.avatar-preset { line-height: 1; background-size: 200% 200% !important; animation: presetShift 6s ease-in-out infinite alternate; box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .25), inset 0 6px 12px rgba(255, 255, 255, .18); text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
@keyframes presetShift { to { background-position: 100% 100%; } }
.deco-cosmico .deco-ring, .deco-lendario .deco-ring { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw, 4px)), #000 calc(100% - var(--rw, 4px) + 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw, 4px)), #000 calc(100% - var(--rw, 4px) + 1px)); }
.deco-cosmico .deco-ring { --rw: 5px; background: conic-gradient(from 0deg, #1e1b4b, #6366f1, #22d3ee, #f0abfc, #a855f7, #1e1b4b); filter: drop-shadow(0 0 10px #6366f1) drop-shadow(0 0 18px rgba(240, 171, 252, .5)); animation: decoSpin 7s linear infinite; }
.deco-lendario .deco-ring { --rw: 6px; background: conic-gradient(from 0deg, #fbbf24, #fff7d6, #f59e0b, #e879f9, #fbbf24, #fde68a, #fbbf24); filter: drop-shadow(0 0 10px rgba(251, 191, 36, .9)) drop-shadow(0 0 22px rgba(232, 121, 249, .5)); animation: decoSpin 3.5s linear infinite, decoPulse 2.2s ease-in-out infinite; }
.deco-lendario .deco-extra i:first-child { left: calc(50% - .5em); top: -16%; font-size: calc(var(--av) * .36); }

/* loja */
.shop-view, .donate-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.shop-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.shop-hero { display: flex; gap: 18px; align-items: stretch; justify-content: space-between; flex-wrap: wrap; padding: 20px; border-radius: 20px;
  background: radial-gradient(500px 220px at 0% 0%, color-mix(in srgb, #7c3aed 38%, transparent), transparent 70%), radial-gradient(400px 200px at 100% 100%, color-mix(in srgb, #e879f9 22%, transparent), transparent 70%), var(--bg-1);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 20px 60px -30px var(--glow); }
.shop-hero-main { display: flex; gap: 16px; align-items: center; }
.shop-hero-gem { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); animation: pulse 3s ease-in-out infinite; }
.shop-balance { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.shop-level { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-2); margin-top: 4px; }
.shop-level .pc-xp { width: 140px; }
.shop-hero-side { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: min(320px, 100%); flex: 1; max-width: 420px; }
.shop-today small { display: block; color: var(--text-2); font-size: .78rem; margin-bottom: 5px; }
.daily-ready { animation: dailyGlow 1.8s ease-in-out infinite; }
@keyframes dailyGlow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 30px -8px var(--glow); } }
.shop-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: sticky; top: -18px; z-index: 3; padding: 8px 0; background: linear-gradient(var(--bg-2) 80%, transparent); }
.shop-tabs { flex: 1; min-width: 0; }
.shop-filters button { padding: 6px 11px; font-size: .8rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.shop-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line-2); cursor: pointer; transition: transform .14s, border-color .15s, box-shadow .2s; }
.shop-card:hover, .shop-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 34px -18px var(--glow); }
.shop-card.is-on { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.shop-card.r-lendario { background: linear-gradient(170deg, color-mix(in srgb, #f59e0b 12%, var(--bg-1)), var(--bg-1) 55%); }
.shop-card.r-epico { background: linear-gradient(170deg, color-mix(in srgb, #a855f7 12%, var(--bg-1)), var(--bg-1) 55%); }
.shop-prev { position: relative; height: 104px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg-0); }
.shop-prev .choice-fx { position: absolute; inset: 0; height: auto; border-radius: 0; }
.shop-prev .choice-banner { position: absolute; inset: 14px; width: auto; height: auto; }
.shop-name { font-size: 1.15rem; }
.shop-badge { font-size: .85rem; }
.shop-info strong { display: block; font-size: .92rem; }
.rarity { font-size: .7rem; font-weight: 700; color: var(--text-3); }
.rarity.r-raro { color: #60a5fa; } .rarity.r-epico { color: #c084fc; } .rarity.r-lendario { color: #fbbf24; }
.shop-act { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.shop-act .btn { margin-left: auto; }
.owned-tag { font-size: .7rem; color: var(--ok); font-weight: 700; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.shop-detail-prev { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.shop-detail-prev .lock-ov { border-radius: 18px; }
.shop-price { display: flex; align-items: baseline; gap: 8px; font-size: 1.5rem; font-family: var(--font-display); }
.shop-price s { color: var(--text-3); font-size: 1rem; }
.shop-price small { font-family: var(--font); font-size: .8rem; color: var(--text-3); }
.shop-history summary { cursor: pointer; color: var(--text-2); font-weight: 600; padding: 8px 0; }
.ledger-amt { min-width: 54px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ledger-amt.plus { color: var(--ok); } .ledger-amt.minus { color: #fda4af; }

/* barra de progresso (nível / gemas do dia) */
.pc-xp { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.pc-xp > b { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px var(--glow); }

/* perfil mais completo */
.pc-status { align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; }
.status-pill .dot { position: static; border: 0; width: 8px !important; height: 8px !important; background: currentColor; opacity: .8; }
.status-pill.s-online { background: var(--ok); } .status-pill.s-idle { background: var(--idle); } .status-pill.s-dnd { background: var(--bad); color: #fff; } .status-pill.s-offline { background: #6b6480; color: #fff; }
.pc-custom { color: var(--text-2); }
.pc-call { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.pc-call .btn { margin-left: auto; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.pc-stat { padding: 9px 10px; border-radius: 12px; background: color-mix(in srgb, var(--bg-0) 60%, transparent); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.pc-stat small { font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.pc-stat strong { font-size: .92rem; }
.pc-role { margin-left: 6px; font-size: .62rem; vertical-align: middle; }
.pc-friend-since { text-align: center; }

/* painel de membros */
.members-col { display: none; }
.shell.members-open { grid-template-columns: 76px 268px minmax(0, 1fr) 250px; }
.shell.members-open .members-col { display: flex; min-height: 0; border-left: 1px solid var(--line); background: var(--bg-1); }
.members-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }
.members-head { height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.members-head strong { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.members-tools { display: flex; gap: 6px; align-items: center; padding: 10px; flex-wrap: wrap; }
.members-search { height: 34px; font-size: .85rem; flex: 1; min-width: 120px; }
.members-off { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.members-off:hover { color: var(--text); border-color: var(--accent); }
.members-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.members-group { padding: 12px 8px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.member { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-align: left; transition: background .12s, opacity .12s; }
.member:hover { background: rgba(255, 255, 255, .05); }
.member.off { opacity: .45; }
.member.off:hover { opacity: .85; }
.member .dot { border-color: var(--bg-1); }
.member-text { min-width: 0; flex: 1; }
.member-text strong { display: block; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-text small { display: block; font-size: .72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-role { font-size: .7rem; margin-left: 4px; }
@media (max-width: 1180px) {
  .shell.members-open { grid-template-columns: 76px 268px minmax(0, 1fr); }
  .shell.members-open .members-col { position: fixed; right: 0; top: 0; bottom: 0; width: min(300px, 88vw); z-index: 32; box-shadow: var(--shadow); animation: slideIn .2s ease; }
  .shell.members-open .scrim { display: block; position: fixed; inset: 0; z-index: 31; background: rgba(0, 0, 0, .5); }
}
@media (max-width: 860px) {
  .shell.members-open { grid-template-columns: minmax(0, 1fr); }
  .shell.members-open .members-col { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .bn-ic { width: 46px; }
  .shop-body { padding: 12px 12px 30px; }
  .shop-hero { padding: 14px; }
  .shop-hero-gem { width: 60px; height: 60px; border-radius: 18px; }
  .shop-balance { font-size: 1.7rem; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .shop-prev { height: 88px; }
  .shop-detail { grid-template-columns: 1fr; }
  .shop-bar { top: -12px; }
  .gem-pill.big { height: 30px; font-size: .85rem; }
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

/* apoie o projeto */
.donate-scroll { flex: 1; overflow-y: auto; padding: 24px 22px 50px; }
.donate { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.donate-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; border-radius: 22px;
  background: radial-gradient(500px 220px at 50% 0%, color-mix(in srgb, #ec4899 26%, transparent), transparent 70%), radial-gradient(500px 220px at 50% 100%, color-mix(in srgb, #7c3aed 26%, transparent), transparent 70%), var(--bg-1); border: 1px solid color-mix(in srgb, #f472b6 30%, transparent); }
.donate-hero h1 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.1rem); }
.donate-hero p { max-width: 560px; }
.donate-heart { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #be185d, #f472b6 60%, #c084fc); box-shadow: 0 12px 40px -10px rgba(244, 114, 182, .8); animation: heartBeat 1.6s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.donate-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px; align-items: start; }
.donate-card { padding: 20px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.donate-qr { padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, #f472b6 30%, transparent), 0 20px 50px -20px rgba(244, 114, 182, .7); line-height: 0; }
.donate-qr svg { border-radius: 8px; max-width: 100%; height: auto; }
.donate-link { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.donate-link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donate-actions { justify-content: center; }
.donate-actions .btn.primary { background: linear-gradient(135deg, #be185d, #f472b6 55%, #a855f7); text-decoration: none; }
.donate-sub { margin: 4px 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.donate-goal { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line); }
.donate-goal strong { display: block; } .donate-goal small { color: var(--text-3); }
.donate-steps { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.9; }
.panel .donate-hero { padding: 20px 14px; }
@media (max-width: 760px) { .donate-grid { grid-template-columns: 1fr; } .donate-scroll { padding: 14px 12px 40px; } }

/* chat estável: "digitando…" sobreposto e âncora de rolagem */
.msg-list { overflow-anchor: auto; }
.msg-wrap > .typing { position: absolute; left: 12px; bottom: 6px; z-index: 2; height: auto; max-width: calc(100% - 24px); padding: 0 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(8px); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.msg-wrap > .typing.on { height: 24px; opacity: 1; transform: none; }
.msg-wrap > .jump-new { bottom: 36px; }

/* chamada: ping individual, modos de exibição, teatro */
.net-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--bg-2); border: 1px solid var(--line-2); white-space: nowrap; }
.net-pill b { font-variant-numeric: tabular-nums; }
.net-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.net-bars i { width: 3px; border-radius: 2px; background: currentColor; opacity: .35; }
.net-bars i:nth-child(1) { height: 5px; } .net-bars i:nth-child(2) { height: 8px; } .net-bars i:nth-child(3) { height: 12px; }
.net-pill.q-good { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.net-pill.q-good .net-bars i { opacity: 1; }
.net-pill.q-mid { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.net-pill.q-mid .net-bars i:nth-child(-n+2) { opacity: 1; }
.net-pill.q-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.net-pill.q-bad .net-bars i:nth-child(1) { opacity: 1; }
.callbar-ping { font-style: normal; font-weight: 600; font-size: .72rem; margin-left: 4px; opacity: .85; font-variant-numeric: tabular-nums; }
.view-modes { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; }
.vm-btn { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; opacity: .75; transition: background .12s, opacity .12s; }
.vm-btn:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.vm-btn.on { opacity: 1; background: var(--grad); }
.shell.theater-mode { grid-template-columns: minmax(0, 1fr) !important; }
.shell.theater-mode .rail, .shell.theater-mode .sidebar, .shell.theater-mode .members-col, .shell.theater-mode .bottom-nav, .shell.theater-mode .announce { display: none !important; }
.call-view.theater { background: #000; }
.call-view.theater .call-side { display: none; }
.call-view.theater .stage { padding: 6px 6px 0; }
.call-view.theater .strip { display: none; }
.call-view.theater .focus-main .tile { border-radius: 12px; border-color: transparent; background: #000; }
.call-view.theater .view-head { background: rgba(0, 0, 0, .7); }
.call-view.theater .call-controls { padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { .net-pill .net-label { display: none; } }
.side-head { gap: 8px; }
.side-head > div:first-child { flex: 1; min-width: 0; }
.side-head .search-fake { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .shop-bar { flex-direction: column; align-items: stretch; gap: 6px; }
  .shop-filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .shop-filters button { white-space: nowrap; }
}
.badge.b-veterano, .badge-chip.b-veterano { background: linear-gradient(110deg, #78350f, #f59e0b, #7c3aed, #f59e0b, #78350f); background-size: 250% 100%; animation: shimmer 5s linear infinite; color: #fff; border-color: transparent; }

/* =====================================================================
   v0.6 — painel administrativo, modo administrador e visual mais limpo
   ===================================================================== */
/* menu do painel em grupos */
.admin-nav { gap: 14px; }
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-label { padding: 0 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.admin-nav .settings-tab { position: relative; }
.admin-nav-text { flex: 1; min-width: 0; }
.admin-count { position: static; box-shadow: none; margin-left: auto; }
.admin-panel { gap: 14px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0 0 2px; }
.admin-head p { margin: 0; font-size: .88rem; }
.admin-sub { margin: 8px 0 -4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.admin-stat { padding: 12px 14px; }
.admin-stat strong { font-size: 1.4rem; }
.admin-alerts { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-alert { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: .88rem; border: 1px solid var(--line-2); background: var(--bg-2); }
.admin-alert.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: #fecdd3; }
.admin-alert.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: #fde68a; }
.admin-alert:hover { background: var(--bg-3); }
.admin-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.admin-card { padding: 16px; border-radius: 14px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-card-head h3 { margin: 0; }
.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-toolbar .input:first-child { flex: 1 1 260px; }
.admin-toolbar select.input { flex: 0 1 200px; width: auto; }
.admin-more { display: flex; justify-content: center; }
.admin-more:empty { display: none; }
.admin-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-btn { padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .82rem; background: color-mix(in srgb, var(--ok) 14%, var(--bg-2)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.chip-btn.minus { background: color-mix(in srgb, var(--bad) 12%, var(--bg-2)); color: #fda4af; border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.chip-btn:hover { filter: brightness(1.2); }
.gem-amount { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .82rem; color: #a5f3fc; white-space: nowrap; }
.gem-balance { display: inline-flex; align-items: center; gap: 6px; font-size: 1.3rem; color: #a5f3fc; }
.admin-av { position: relative; display: inline-flex; flex-shrink: 0; }
.admin-av.is-online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg-1); }
.admin-list.compact { gap: 4px; }
.admin-row.compact { padding: 6px 10px; gap: 10px; }
.rank { width: 18px; text-align: center; font-weight: 800; color: var(--text-3); font-size: .8rem; }
.admin-tags.left { justify-content: flex-start; margin-top: 6px; }
.report-card { background: var(--bg-1); border: 1px solid var(--line); }
/* loja (admin) */
.shop-admin-row.off { opacity: .55; }
.shop-admin-prev { width: 52px; min-height: 40px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.shop-admin-prev .choice-banner, .shop-admin-prev .shop-fx { width: 52px; height: 34px; border-radius: 8px; }
.shop-admin-prev .shop-name, .shop-admin-prev .choice-name { font-size: .78rem; }
.shop-admin-prev .shop-badge { transform: scale(.85); }
.price-edit { display: inline-flex; align-items: center; gap: 6px; }
.price-input { width: 92px; padding: 6px 8px; }
/* chamadas (admin) */
.call-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.admin-row-flat { display: flex; align-items: center; gap: 12px; }
.call-people { display: flex; flex-wrap: wrap; gap: 6px; }
.call-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); font-size: .82rem; }
.call-person > span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ficha do usuário */
.user-modal .account-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 0 6px; }
.account-main { flex: 1; min-width: 200px; }
.account-main h2 { margin: 0 0 2px; }
.account-main p { margin: 4px 0 2px; }
.ledger { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.ledger-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .84rem; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); }
.ledger-row .plus { color: var(--ok); font-weight: 700; }
.ledger-row .minus { color: #fda4af; font-weight: 700; }
.ledger-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.admin-details summary { cursor: pointer; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: .82rem; cursor: pointer; }
.check-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg-2)); }
.item-tag { display: inline-flex; align-items: center; gap: 4px; padding-right: 4px; }
.tag-x { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .9rem; line-height: 1; color: var(--text-2); }
.tag-x:hover { background: color-mix(in srgb, var(--bad) 30%, transparent); color: #fff; }
.admin-help { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
/* ferramentas do administrador (menu de status e "Meu modo") */
.admin-mode { padding-top: 10px; border-top: 1px solid var(--line); gap: 6px; }
.admin-card > .admin-mode { border-top: 0; padding-top: 0; }
.admin-mode-title { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.admin-mode .toggle-row { padding: 8px 0; }
.admin-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
/* faixa do modo de teste */
.testbar { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: .85rem; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 12%, var(--bg-1)) 0 14px, color-mix(in srgb, var(--warn) 7%, var(--bg-1)) 14px 28px); flex-shrink: 0; }
.testbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell.theater-mode .testbar { display: none !important; }

@media (max-width: 860px) {
  .admin-nav { gap: 4px; flex-direction: row; }
  .admin-nav-group { display: contents; }
  .admin-nav-label { display: none; }
  .admin-two { grid-template-columns: 1fr; }
  .admin-toolbar select.input { flex: 1 1 140px; }
  .admin-row { flex-wrap: nowrap; }
  .admin-row .admin-tags { max-width: 40%; }
  .shop-admin-row { flex-wrap: wrap; }
  .shop-admin-row .admin-tags { max-width: none; width: 100%; justify-content: flex-start; }
  .user-modal .admin-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .admin-row { flex-wrap: wrap; }
  .admin-row .admin-tags { max-width: none; }
  .user-modal .admin-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stat strong { font-size: 1.2rem; }
  .ledger-row { grid-template-columns: 54px minmax(0, 1fr); }
  .ledger-row small { grid-column: 2; }
}
.admin-panel > .admin-head { padding-right: 52px; }
/* trilho: atalhos secundários em tom neutro (cor só ao passar o mouse/ativo) — menos poluição visual */
.rail-action.shop, .rail-action.heart, .rail-action.admin { color: var(--text-2); background: var(--bg-2); }
.rail-action.shop:hover, .rail-action.shop.active { color: #c4b5fd; }
.rail-action.admin:hover { color: #fbbf24; background: color-mix(in srgb, #fbbf24 12%, var(--bg-2)); }
/* "Mostrar mais" nas grades de itens */
.show-more { grid-column: 1 / -1; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--text-2); font-weight: 600; font-size: .86rem; background: transparent; }
.show-more:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.show-more svg { transition: transform .2s; }
.show-more.open svg { transform: rotate(180deg); }
.badge-picker .show-more { flex-basis: 100%; }
.win-steps { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; }
a.btn { text-decoration: none; }
/* atalhos personalizáveis */
.shortcut-list.editable { gap: 18px; }
.shortcut-group { display: flex; flex-direction: column; }
.shortcut-group-title { margin: 0 0 2px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.shortcut-list.editable .shortcut { justify-content: flex-start; padding: 10px 0; }
.shortcut-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shortcut-text small { font-size: .76rem; }
.key-capture.combo { min-width: 150px; justify-content: center; padding: 6px 10px; }
.key-capture.combo kbd { background: transparent; border: 0; padding: 0; font-size: .85rem; }
.key-capture.listening { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse-key 1.2s ease-in-out infinite; }
@keyframes pulse-key { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent); } }
.shortcut.fixed kbd { white-space: nowrap; }
@media (max-width: 520px) { .key-capture.combo { min-width: 120px; } }
.auth-downloads { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
.mobile-qr { background: #fff; border-radius: 12px; padding: 6px; line-height: 0; flex-shrink: 0; }
.modal .mobile-card { flex-direction: column; text-align: center; border: 0; background: transparent; padding: 0; }
.modal .mobile-card .win-steps { text-align: left; }
.panel > .admin-head { margin-bottom: 10px; }
.modal .mobile-card h3 { display: none; }
.install-card > .mobile-qr { flex: 0 0 auto; min-width: 0; width: auto; }

/* v0.6.5 — atualizações */
.upd { display: flex; flex-direction: column; gap: 14px; }
.upd-hero { display: flex; align-items: center; gap: 14px; }
.upd-hero h2 { margin: 0 0 2px; font-size: 1.15rem; }
.upd-hero p { margin: 0; font-size: .85rem; }
.upd-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--grad); box-shadow: 0 10px 28px -12px var(--glow); }
.upd-ic.ok { background: linear-gradient(135deg, #059669, #34d399); }
.upd-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.upd-rel { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.upd-rel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.upd-rel ul, .upd-desk-notes { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.upd-pill { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .7); font-size: .85rem; max-width: calc(100vw - 24px); animation: fade .25s; }
.upd-pill-text { white-space: nowrap; font-weight: 600; }
.upd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); flex-shrink: 0; }
.upd-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; margin-bottom: 4px; }
.upd-row > span { flex: 1; }
@media (max-width: 520px) { .upd-pill .btn.ghost { display: none; } }
@media (max-width: 860px) { .upd-pill { top: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* =====================================================================
   v0.7 — desempenho (menos travadas no PC e no celular)
   ===================================================================== */
/* 1) Enfeites animados só se movem onde são o destaque (cartão de perfil, editor, Loja) ou quando você
      passa o mouse — igual ao Discord. Nas listas, no chat e na chamada ficam parados (mesma aparência). */
.deco-ring, .deco-ring::before, .deco-ring::after, .deco-extra i, .uname, .uname::before, .uname::after,
.badge, .badge-chip, .pc-banner { animation-play-state: paused !important; }
:is(.profile-card, .profile-preview, .choice, .shop-card, .shop-detail-prev, .status-head, .msg:hover, .room-member:hover, .member:hover, .person:hover, .up-user:hover, .admin-row:hover)
  :is(.deco-ring, .deco-extra i, .uname, .badge, .badge-chip, .pc-banner),
:is(.profile-card, .profile-preview, .choice, .shop-card, .shop-detail-prev, .status-head, .msg:hover, .room-member:hover, .member:hover, .person:hover, .up-user:hover, .admin-row:hover) .deco-ring::before,
:is(.profile-card, .profile-preview, .choice, .shop-card, .shop-detail-prev, .status-head, .msg:hover, .room-member:hover, .member:hover, .person:hover, .up-user:hover, .admin-row:hover) .deco-ring::after,
:is(.profile-card, .profile-preview, .choice, .shop-card, .shop-detail-prev, .status-head, .msg:hover, .room-member:hover, .member:hover, .person:hover, .up-user:hover, .admin-row:hover) .uname::before,
:is(.profile-card, .profile-preview, .choice, .shop-card, .shop-detail-prev, .status-head, .msg:hover, .room-member:hover, .member:hover, .person:hover, .up-user:hover, .admin-row:hover) .uname::after { animation-play-state: running !important; }
/* na tela da chamada, nada de enfeite animado (o vídeo tem prioridade) */
.call-view.call-view :is(.deco-ring, .deco-extra i, .uname), .call-view.call-view .deco-ring::before, .call-view.call-view .deco-ring::after { animation-play-state: paused !important; }

/* 2) "Falando": o anel verde agora só muda a opacidade (a placa de vídeo faz sozinha, sem redesenhar a tela) */
.tile { transition: border-color .15s; }
.tile.speaking { box-shadow: none; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 3px var(--ok); opacity: 0; transition: opacity .12s; will-change: opacity; }
.tile.speaking::after { opacity: 1; }
.call-view.clean .tile.speaking::after { opacity: 0; }
.tile-ring { transition: none; }
.tile-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--ok); opacity: 0; transition: opacity .12s; pointer-events: none; }
.tile.speaking .tile-ring { box-shadow: none; }
.tile.speaking .tile-ring::after { opacity: 1; }
.room-member .avatar, .person .avatar { transition: none; }
.room-member.speaking .avatar, .person.speaking .avatar { box-shadow: 0 0 0 2px var(--ok); }

/* 3) Nada de desfoque por cima do vídeo (era refeito a cada quadro) */
.tile-label, .stats-overlay, .call-view .glass, .call-view .tile * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.tile-label { background: rgba(5, 3, 10, .8); }
.tile-video { contain: strict; }

/* 4) Modo leve (automático em aparelhos mais fracos, ou escolhido em Aparência) */
[data-perf="lite"] .glass, [data-perf="lite"] .modal, [data-perf="lite"] .toast, [data-perf="lite"] .popover, [data-perf="lite"] .view-head,
[data-perf="lite"] .modal-wrap, [data-perf="lite"] .bottom-nav, [data-perf="lite"] .lock-ov { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
[data-perf="lite"] .glass { background: var(--bg-2); }
[data-perf="lite"] .auth-orbs { display: none; }
[data-perf="lite"][data-perf="lite"] :is(.msg, .room-member, .member, .person, .up-user, .admin-row):hover :is(.deco-ring, .deco-extra i, .uname, .badge, .badge-chip) { animation-play-state: paused !important; }
[data-perf="lite"] .loading-dots i, [data-perf="lite"] .boot img { animation-duration: 2s; }

/* v0.7 — LGPD */
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.check-row a, .legal-links a, .hint a { color: var(--accent-2); }
.legal-links a { color: var(--text-3); }
.legal-links a:hover { color: var(--text); }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; flex-wrap: wrap; }
.data-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }
.data-row.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* v0.7.1 — aviso de novo endereço */
.moved-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--bg-0, #07040d); }
.moved-card { width: min(460px, 100%); border-radius: 22px; padding: 32px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 80px -30px var(--glow); }
.moved-card h2 { margin: 0; font-size: 1.4rem; }
.moved-card p { margin: 0; color: var(--text-2); line-height: 1.5; }
.moved-card .moved-url { font-weight: 700; color: var(--text); padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.06); word-break: break-all; }
.moved-card .btn.block { width: 100%; text-decoration: none; }

/* v0.8 — avisos com o app fechado */
.push-card { margin-bottom: 6px; }
.push-card > .row-actions { display: flex; flex-direction: row; gap: 8px; min-width: 0; flex: 0 0 auto; }
@media (max-width: 520px) { .push-card { flex-wrap: wrap; } .push-card > .row-actions { width: 100%; } .push-card > .row-actions .btn { flex: 1; } }
