/* =====================================================================
   Palcord — design system
   Tokens → base → layout → componentes → extras → temas → responsivo
   ===================================================================== */

:root {
  /* superfícies (do mais fundo para o mais elevado) */
  --bg-servers: #0b0d12;
  --bg-sidebar: #12151c;
  --bg-main: #181c25;
  --bg-panel: #0f1218;
  --bg-input: #222734;
  --bg-float: #1b2029;
  --bg-hover: rgba(255, 255, 255, 0.045);
  --bg-active: rgba(255, 255, 255, 0.09);

  /* texto */
  --text: #d9dee8;
  --text-strong: #f7f8fb;
  --muted: #8a93a6;
  --muted-2: #656d80;

  /* marca e estados */
  --blurple: #7c6cff;
  --blurple-dark: #6a5aee;
  --accent-2: #4fd1ff;
  --accent-soft: rgba(124, 108, 255, 0.16);
  --green: #38c97a;
  --green-soft: rgba(56, 201, 122, 0.14);
  --red: #ff5d6c;
  --red-soft: rgba(255, 93, 108, 0.14);
  --yellow: #ffb547;
  --yellow-soft: rgba(255, 181, 71, 0.14);
  --pink: #ff5fa8;
  --link: #6db6ff;

  /* linhas, raios, sombras */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --ring: 0 0 0 3px rgba(124, 108, 255, 0.38);

  /* movimento */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 0.14s;

  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-main); color: var(--text); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; color: var(--text); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
svg { width: 20px; height: 20px; flex: none; }
::selection { background: rgba(124, 108, 255, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }
button:focus-visible, .channel:focus-visible, a:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- formulários ---------- */
label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.field,
label input, label select, label textarea {
  width: 100%; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
  font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-strong);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
label textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
label input::placeholder, label textarea::placeholder { color: var(--muted-2); }
label input:hover, label select:hover, label textarea:hover { border-color: var(--border-strong); }
label input:focus, label select:focus, label textarea:focus, .field:focus { border-color: var(--blurple); box-shadow: var(--ring); background: var(--bg-servers); }
label input:disabled, label select:disabled { opacity: 0.55; cursor: not-allowed; }
label input[type=range] { background: none; border: 0; padding: 6px 0; box-shadow: none; }
label input[type=file] { padding: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
label input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--text-strong); background: var(--bg-input); border: 1px solid var(--border); border-radius: 5px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
label input[type=file]::file-selector-button:hover { background: #2a3040; }
label select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
label select option { background: var(--bg-float); color: var(--text); }
input[type=color] { height: 40px; padding: 4px; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
input[type=range] { accent-color: var(--blurple); }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot { width: 32px; height: 32px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 3px; transition: transform var(--fast) var(--ease), outline-color var(--fast) var(--ease); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.color-dot:hover { transform: scale(1.08); }
.color-dot.sel { outline-color: var(--text-strong); }
.field-hint { font-size: 12.5px; color: var(--muted); text-align: left; margin-top: -4px; line-height: 1.45; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 38px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  background: var(--bg-input); color: var(--text-strong); border: 1px solid var(--border);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast);
}
.btn:hover { background: #2a3040; border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--blurple) 92%, #fff) 0%, var(--blurple) 100%); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 16px -6px color-mix(in srgb, var(--blurple) 70%, transparent); }
.btn.primary:hover { background: var(--blurple-dark); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 22px -6px color-mix(in srgb, var(--blurple) 80%, transparent); }
.btn.danger { background: var(--red); border-color: transparent; color: #fff; }
.btn.danger:hover { background: #e94a5a; }
.btn.big { padding: 13px 24px; font-size: 15px; min-height: 46px; border-radius: var(--radius); }
.btn.link { background: none; border-color: transparent; color: var(--text); font-weight: 500; padding-inline: 8px; }
.btn.link:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
a.btn { text-decoration: none; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- login ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: var(--bg-servers); }
.login::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(124, 108, 255, 0.38), transparent 60%),
    radial-gradient(800px 500px at 90% 90%, rgba(79, 209, 255, 0.22), transparent 60%),
    radial-gradient(600px 400px at 70% 10%, rgba(255, 95, 168, 0.14), transparent 60%); }
.login::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.login-card {
  position: relative; z-index: 1; width: min(420px, 100%); background: color-mix(in srgb, var(--bg-sidebar) 86%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 36px 32px 28px; border-radius: var(--radius-xl); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; text-align: center; animation: rise 0.35s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.login-logo { display: inline-flex; align-self: center; margin-bottom: 4px; }
.login-logo img { border-radius: 16px; display: block; box-shadow: 0 10px 24px -8px rgba(124,108,255,.8); }
.login-card h1 { margin: 0; color: var(--text-strong); font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
.login-card p { margin: 0 0 6px; }
.login-card .btn.big { margin-top: 6px; width: 100%; }
.login-error { background: var(--red-soft); color: #ff8b96; border: 1px solid rgba(255,93,108,.3); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; text-align: left; }
.login-switch { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.login-switch a { color: var(--link); text-decoration: none; font-weight: 500; }
.login-switch a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

/* barra de servidores */
.servers { width: 72px; flex: none; background: var(--bg-servers); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow-y: auto; scrollbar-width: none; border-right: 1px solid var(--border); }
.servers::-webkit-scrollbar { display: none; }
.server-icon {
  position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-input); display: grid; place-items: center;
  font-weight: 600; font-size: 20px; color: var(--text-strong); flex: none; border: 1px solid transparent;
  transition: border-radius 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.server-icon:hover { border-radius: 16px; background: var(--blurple); transform: translateY(-1px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--blurple) 80%, transparent); }
.server-icon.active { border-radius: 16px; background: var(--blurple); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--blurple) 80%, transparent); }
.server-icon.add { color: var(--green); font-size: 26px; font-weight: 400; background: transparent; border: 1px dashed var(--border-strong); }
.server-icon.add:hover { background: var(--green); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(56,201,122,.8); }
.server-icon::before { content: ''; position: absolute; left: -13px; top: 50%; translate: 0 -50%; width: 4px; border-radius: 0 4px 4px 0; background: var(--text-strong); height: 0; transition: height 0.2s var(--ease); }
.server-icon.unread::before { height: 8px; }
.server-icon:hover::before { height: 20px; }
.server-icon.active::before { height: 36px; }
.servers .sep { width: 32px; height: 1px; background: var(--border-strong); border-radius: 1px; flex: none; margin: 2px 0; }

/* sidebar de canais */
.sidebar { width: 248px; flex: none; background: var(--bg-sidebar); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.server-header { height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px; font-weight: 700; font-size: 15px; color: var(--text-strong); letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border); flex: none; cursor: pointer; transition: background var(--fast); }
.server-header:hover { background: var(--bg-hover); }
.server-header span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.channel-list { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.category { display: flex; align-items: center; padding: 16px 4px 6px 8px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.category span { flex: 1; }
.category button { color: var(--muted); padding: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; opacity: 0; transition: opacity var(--fast), color var(--fast); }
.channel-list:hover .category button, .category button:focus-visible { opacity: 1; }
.category button:hover { color: var(--text-strong); background: var(--bg-active); }
.category svg { width: 16px; height: 16px; }

.channel { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; margin: 1px 0; position: relative; user-select: none; font-weight: 500;
  transition: background var(--fast), color var(--fast); }
.channel svg { width: 18px; height: 18px; opacity: 0.8; }
.channel .afk-icon { width: 18px; flex-shrink: 0; text-align: center; font-size: 13px; opacity: 0.8; }
.channel:hover { background: var(--bg-hover); color: var(--text); }
.channel.active { background: var(--bg-active); color: var(--text-strong); }
.channel.active svg { opacity: 1; color: var(--text-strong); }
.channel.unread { color: var(--text-strong); font-weight: 600; }
.channel.unread::before { content: ''; position: absolute; left: -8px; top: 50%; translate: 0 -50%; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text-strong); }
.channel .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel .gear { opacity: 0; color: var(--muted); display: grid; padding: 0; width: 20px; height: 20px; place-items: center; border-radius: 4px; transition: opacity var(--fast), color var(--fast); }
.channel:hover .gear { opacity: 1; }
.channel .gear:hover { color: var(--text-strong); background: var(--bg-active); }
.channel .gear svg { width: 15px; height: 15px; }

.voice-users { padding: 2px 0 6px 28px; }
.voice-user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background var(--fast), color var(--fast); }
.voice-user:hover { background: var(--bg-hover); color: var(--text); }
.voice-user .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-user .flags { display: flex; gap: 5px; align-items: center; }
.voice-user .flags svg { width: 14px; height: 14px; color: var(--muted); }
.live-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; letter-spacing: 0.06em; line-height: 1.2; display: inline-flex; align-items: center; gap: 4px; }
.live-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* avatares */
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex: none; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow 0.12s var(--ease); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.md { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar.xl { width: 88px; height: 88px; font-size: 34px; }
.avatar.speaking { box-shadow: 0 0 0 2px var(--bg-sidebar), 0 0 0 4px var(--green), 0 0 18px rgba(56,201,122,.5); }

/* painel de voz conectada */
.voice-panel { background: var(--bg-panel); border-top: 1px solid var(--border); padding: 10px; flex: none; }
.voice-status { display: flex; align-items: center; gap: 8px; }
.voice-status > div { flex: 1; min-width: 0; }
.voice-connected { color: var(--green); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.voice-where { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.voice-where:hover { text-decoration: underline; color: var(--text); }
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft), 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
.voice-actions { display: flex; gap: 8px; margin-top: 10px; }
.pill-btn { flex: 1; display: grid; place-items: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px; color: var(--text); transition: background var(--fast), border-color var(--fast); }
.pill-btn:hover { background: #2a3040; border-color: var(--border-strong); }
.pill-btn.on { background: var(--green); border-color: transparent; color: #fff; }

/* painel do usuário */
.user-panel { height: 56px; background: var(--bg-panel); display: flex; align-items: center; gap: 2px; padding: 0 8px 0 10px; flex: none; border-top: 1px solid var(--border); }
.user-meta { flex: 1; min-width: 0; margin-left: 8px; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sub { font-size: 12px; }
.avatar-wrap { position: relative; cursor: pointer; }
.avatar-wrap::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 3px solid var(--bg-panel); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--muted); flex: none; transition: background var(--fast), color var(--fast); }
.icon-btn:hover { background: var(--bg-hover); color: var(--text-strong); }
.icon-btn.off { color: var(--red); background: var(--red-soft); }
.icon-btn.danger:hover { color: var(--red); background: var(--red-soft); }

/* área principal */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg-main); position: relative; }
.main-header { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--border); z-index: 1; background: var(--bg-main); }
.header-icon { color: var(--muted); display: grid; }
.header-icon svg { width: 22px; height: 22px; }
.header-title { font-weight: 700; color: var(--text-strong); white-space: nowrap; letter-spacing: -0.01em; }
.header-topic { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1px solid var(--border-strong); padding-left: 10px; margin-left: 2px; }
.header-topic:empty { display: none; }
.mobile-only { display: none; }

/* ---------- chat ---------- */
.chat-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 16px 0 8px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.messages .first { margin-top: auto; }
/* sem isso, com muitas mensagens o flex encolhe cada uma até o min-height e os textos se sobrepõem */
.messages > * { flex-shrink: 0; }
.welcome { padding: 16px 20px 24px; }
.welcome-icon { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, var(--blurple), var(--accent-2)); display: grid; place-items: center; margin-bottom: 12px; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--blurple) 80%, transparent); }
.welcome-icon svg { width: 36px; height: 36px; color: #fff; }
.welcome h2 { margin: 8px 0 4px; font-size: 26px; color: var(--text-strong); letter-spacing: -0.02em; font-weight: 800; }
.welcome p { margin: 0; }
.load-more { align-self: center; margin-bottom: 8px; }

.msg { position: relative; padding: 2px 56px 2px 76px; min-height: 22px; }
.msg.head { margin-top: 16px; padding-top: 4px; }
.msg:hover { background: rgba(255, 255, 255, 0.025); }
.msg .avatar { position: absolute; left: 20px; top: 6px; cursor: pointer; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.msg .author { font-weight: 600; color: var(--text-strong); }
.msg .time { font-size: 12px; color: var(--muted); }
.msg .side-time { position: absolute; left: 0; width: 68px; text-align: right; font-size: 11px; color: var(--muted-2); top: 5px; opacity: 0; font-variant-numeric: tabular-nums; }
.msg:not(.head):hover .side-time { opacity: 1; }
.msg .body { line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; color: var(--text); }
.msg .edited { font-size: 11px; color: var(--muted-2); margin-left: 4px; }
.msg code { background: var(--bg-servers); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; font-size: 13px; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.msg pre { background: var(--bg-servers); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--radius-sm); overflow-x: auto; margin: 6px 0; white-space: pre; }
.msg pre code { background: none; border: 0; padding: 0; }
.msg a { color: var(--link); text-decoration: none; }
.msg a:hover { text-decoration: underline; }
.msg .mention { background: var(--accent-soft); color: #c6bdff; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.msg.mentioned { background: var(--yellow-soft); box-shadow: inset 2px 0 0 var(--yellow); }
.msg .attach { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.msg .attach img, .msg .attach video { max-width: min(420px, 100%); max-height: 320px; border-radius: var(--radius); cursor: pointer; display: block; border: 1px solid var(--border); }
.file-card { display: flex; align-items: center; gap: 12px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; max-width: 400px; color: var(--text-strong); text-decoration: none; transition: border-color var(--fast), background var(--fast); }
.file-card:hover { border-color: var(--border-strong); background: var(--bg-input); }
.file-card svg { width: 30px; height: 30px; color: var(--blurple); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.reaction { display: flex; align-items: center; gap: 5px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px; font-size: 14px; transition: border-color var(--fast), background var(--fast), transform var(--fast); }
.reaction:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.reaction.mine { background: var(--accent-soft); border-color: var(--blurple); }
.reaction .n { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.reaction.mine .n { color: #c6bdff; }
.msg-actions { position: absolute; right: 20px; top: -16px; display: none; background: var(--bg-float); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.msg:hover .msg-actions { display: flex; }
.msg-actions button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); transition: background var(--fast), color var(--fast); }
.msg-actions button:hover { background: var(--bg-active); color: var(--text-strong); }
.msg-actions svg { width: 18px; height: 18px; }
.edit-box textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px 12px; resize: none; outline: none; line-height: 1.45; }
.edit-box textarea:focus { border-color: var(--blurple); box-shadow: var(--ring); }
.edit-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.edit-hint .btn.link { min-height: 0; font-size: 12px; color: var(--link) !important; }

/* composer */
.composer-wrap { padding: 0 16px; flex: none; }
.composer { display: flex; align-items: flex-end; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 6px; gap: 2px; transition: border-color var(--fast), box-shadow var(--fast); }
.composer:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(124,108,255,.14); }
.composer .icon-btn { height: 46px; width: 40px; }
.composer textarea { flex: 1; background: none; border: 0; outline: none; resize: none; overflow-y: hidden; padding: 12px 6px; max-height: 40vh; line-height: 1.45; color: var(--text-strong); }
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); }
.typing { height: 24px; font-size: 12.5px; color: var(--text); display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; background: var(--text); border-radius: 50%; animation: blink 1.4s infinite both; }
.typing .dots i:nth-child(2) { animation-delay: 0.2s; } .typing .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.pending-files { display: flex; gap: 8px; flex-wrap: wrap; }
.pending-files:not(:empty) { background: var(--bg-input); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 12px; }
.pending-files:not(:empty) + .composer { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-top-color: var(--border); }
.pending { position: relative; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; width: 160px; font-size: 12px; overflow: hidden; }
.pending img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 6px; }
.pending .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending button { position: absolute; top: 6px; right: 6px; background: var(--bg-float); border: 1px solid var(--border-strong); border-radius: 6px; width: 26px; height: 26px; color: var(--red); display: grid; place-items: center; }
.pending button:hover { background: var(--red); color: #fff; border-color: transparent; }

/* ---------- membros ---------- */
.members { width: 248px; flex: none; background: var(--bg-sidebar); overflow-y: auto; padding: 8px; border-left: 1px solid var(--border); }
.members h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 16px 8px 6px; letter-spacing: 0.08em; }
.member { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--fast); }
.member:hover { background: var(--bg-hover); }
.member .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.member .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .sub svg { width: 12px; height: 12px; }
.member .sub.status { color: var(--muted); }
.member.offline { opacity: 0.4; }
.member.offline:hover { opacity: 0.7; }
.app.hide-members .members { display: none; }
.add-member { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; border: 1px dashed var(--border-strong); transition: background var(--fast), color var(--fast), border-color var(--fast); }
.add-member:hover { background: var(--green-soft); color: var(--text-strong); border-color: var(--green); }
.add-member svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- voz ---------- */
.voice-view { flex: 1; display: flex; min-height: 0; background: #05070b; }
.voice-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.voice-chat { width: 380px; flex: none; display: flex; flex-direction: column; background: var(--bg-main); border-left: 1px solid var(--border); min-height: 0; }
.voice-chat .chat-view { min-height: 0; }
.voice-chat .msg { padding-right: 16px; padding-left: 64px; }
.voice-chat .msg .avatar { left: 12px; }
.voice-chat .msg .side-time { width: 56px; }
.voice-chat .msg-actions { right: 12px; }
.voice-chat .welcome h2 { font-size: 20px; }
.voice-chat .composer-wrap { padding: 0 12px; }
#btn-chat { position: relative; width: auto; gap: 6px; padding: 0 10px; display: flex; align-items: center; font-weight: 600; font-size: 14px; }
#btn-chat[hidden] { display: none; }
@media (max-width: 760px) { #btn-chat .btn-label { display: none; } }
#btn-chat.on { color: var(--text-strong); background: var(--bg-active); }
#btn-chat.unread::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg-main); }

.stage { flex: 1; min-height: 0; padding: 16px; display: grid; gap: 10px; align-content: center; justify-content: center; overflow: auto; }
.stage.focus { grid-template-columns: 1fr !important; grid-template-rows: 1fr auto; align-content: stretch; }
.stage.focus .strip { display: flex; gap: 8px; overflow-x: auto; height: 120px; padding-bottom: 2px; }
.stage.focus .strip .tile { width: 200px; flex: none; aspect-ratio: auto; height: 100%; }
.tile { position: relative; background: radial-gradient(120% 120% at 50% 0%, #1e2430 0%, #11151d 100%); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; min-width: 0;
  cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; border: 1px solid var(--border); transition: outline-color 0.12s var(--ease), border-color 0.12s var(--ease); }
.tile.speaking { outline-color: var(--green); border-color: transparent; box-shadow: 0 0 24px -4px rgba(56,201,122,.45); }
.tile video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; background: #000; }
.tile.screen video, .tile.focused video { object-fit: contain; }
.tile.mirror video { transform: scaleX(-1); }
.tile .ph { display: grid; place-items: center; width: 100%; height: 100%; }
.tile .label { position: absolute; left: 10px; bottom: 10px; background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); border: 1px solid rgba(255,255,255,.08); }
.tile .label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .label svg { width: 14px; height: 14px; color: var(--red); }
.tile .tile-tools { position: absolute; top: 10px; right: 10px; display: none; gap: 4px; z-index: 5; }
.tile:hover .tile-tools { display: flex; }
.tile-tools button { background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; transition: background var(--fast); }
.tile-tools button:hover { background: rgba(255,255,255,.14); }
.tile-tools svg { width: 18px; height: 18px; }
.tile .live-badge { position: absolute; top: 10px; left: 10px; }
.tile .watchers { position: absolute; top: 10px; left: 84px; background: rgba(5,7,11,.7); padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.08); }
.tile.focused { aspect-ratio: auto; height: 100%; cursor: zoom-out; }
.tile-tools [data-dota] { display: none; }
.tile.has-dota .tile-tools [data-dota] { display: grid; }
.stage-controls { flex: none; display: flex; justify-content: center; gap: 12px; padding: 12px 16px 22px; }
.round-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); border: 1px solid var(--border-strong); color: var(--text-strong); transition: background var(--fast), transform var(--fast), border-color var(--fast); }
.round-btn:hover { background: #2a3040; transform: translateY(-2px); }
.round-btn:active { transform: translateY(0); }
.round-btn.on { background: var(--text-strong); color: #0b0d12; border-color: transparent; }
.round-btn.off { background: #fff; color: var(--red); border-color: transparent; }
.round-btn.danger { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(255,93,108,.8); }
.round-btn.danger:hover { background: #e94a5a; }
.round-btn svg { width: 24px; height: 24px; }
.voice-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px;
  background: radial-gradient(800px 400px at 50% 110%, rgba(124,108,255,.18), transparent 60%), var(--bg-main); }
.voice-empty h2 { margin: 8px 0 0; color: var(--text-strong); font-size: 26px; letter-spacing: -0.02em; font-weight: 800; }
.voice-empty-icon { width: 84px; height: 84px; border-radius: 26px; background: var(--bg-input); border: 1px solid var(--border-strong); display: grid; place-items: center; margin-bottom: 8px; }
.voice-empty-icon svg { width: 40px; height: 40px; color: var(--muted); }
.voice-empty .btn.big { margin-top: 10px; }
.watch-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px; }
.watch-cta svg { width: 40px; height: 40px; color: var(--muted); }
.pip-body { margin: 0; background: #000; overflow: hidden; }
.pip-tile { position: fixed; inset: 0; border-radius: 0; aspect-ratio: auto; outline: none; border: 0; }
.sound-flash { box-shadow: 0 0 0 2px var(--bg-sidebar), 0 0 0 4px var(--yellow) !important; }

/* ---------- modais / menus ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade 0.18s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); background: var(--bg-sidebar); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; animation: pop 0.2s var(--ease); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
@keyframes pop { from { transform: translateY(8px) scale(0.97); opacity: 0; } }
.modal-body { padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.modal h2 { margin: 0; text-align: center; color: var(--text-strong); font-size: 22px; letter-spacing: -0.02em; font-weight: 800; }
.modal .sub { margin: -8px 0 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-foot { background: var(--bg-panel); border-top: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: flex-end; gap: 8px; }
.radio-card { display: flex; flex-direction: row; align-items: center; gap: 12px; background: var(--bg-main); border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius); cursor: pointer; color: var(--text); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; transition: border-color var(--fast), background var(--fast); }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card:has(input:checked) { background: var(--accent-soft); border-color: var(--blurple); }
.radio-card input { width: auto; accent-color: var(--blurple); }
.radio-card .rc-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.radio-card .rc-text small { color: var(--muted); font-weight: 400; font-size: 13px; }
.emoji-choice { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.emoji-choice button { font-size: 22px; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid transparent; transition: background var(--fast), border-color var(--fast), transform var(--fast); }
.emoji-choice button:hover { background: var(--bg-active); transform: scale(1.08); }
.emoji-choice button.sel { background: var(--accent-soft); border-color: var(--blurple); }
.settings-section { font-size: 11px; font-weight: 700; color: var(--blurple); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.settings-section:first-child { margin-top: 0; }
.settings-hint { font-size: 12.5px; color: var(--muted); margin-top: -8px; line-height: 1.5; }
.settings-hint code { background: var(--bg-servers); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.settings-hint b { color: var(--text); }
.steps { margin: 4px 0 12px; padding-left: 20px; line-height: 1.7; }
.steps b { color: var(--text); }
details.settings-hint { margin-top: 6px; }
details.settings-hint summary { cursor: pointer; color: var(--text); }
/* Configurações em abas: menu à esquerda (no celular vira uma fileira de abas no topo) */
.modal.wide { width: min(780px, 100%); }
.modal.wide .modal-body { padding-top: 22px; }
.settings-layout { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.settings-nav button { text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--fast), color var(--fast); }
.settings-nav button:hover { background: var(--bg-hover); color: var(--text); }
.settings-nav button.active { background: var(--bg-active); color: var(--text-strong); }
.settings-panes { min-width: 0; }
.settings-pane { display: none; flex-direction: column; gap: 16px; }
.settings-pane.active { display: flex; }
@media (max-width: 640px) {
  .settings-layout { grid-template-columns: 1fr; gap: 16px; }
  .settings-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; background: var(--bg-sidebar); z-index: 1; margin: 0 -4px; padding: 0 4px 4px; border-bottom: 1px solid var(--border); }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { white-space: nowrap; flex-shrink: 0; }
}
.mic-meter { height: 6px; border-radius: 3px; background: var(--bg-panel); border: 1px solid var(--border); overflow: hidden; margin-top: -8px; }
.mic-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width 0.08s; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prof-media { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin-bottom: 4px; }
.prof-media > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; align-content: flex-start; }
.prof-media .lbl { flex-basis: 100%; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; letter-spacing: 0.06em; }
.prof-media .prof-prev { flex: 0 0 100%; margin-bottom: 4px; }
.prof-media .prof-prev.av { flex-basis: 88px; }
.prof-media .btn { padding: 6px 10px; min-height: 30px; font-size: 13px; }
.prof-media .btn.link { padding-inline: 6px; }
.prof-prev { background: var(--bg-input) center/cover; margin-bottom: 8px; border: 1px solid var(--border); }
.prof-prev.av { width: 88px; height: 88px; border-radius: 50%; }
.prof-prev.bn { height: 88px; border-radius: var(--radius); }
.prof-prev.empty { background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.03) 8px 16px); }

.ctx-menu { position: fixed; z-index: 60; background: var(--bg-float); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px; min-width: 200px; box-shadow: var(--shadow-lg); animation: pop 0.12s var(--ease); }
.ctx-menu button { display: flex; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text); text-align: left; justify-content: space-between; align-items: center; gap: 12px; transition: background var(--fast), color var(--fast); }
.ctx-menu button:hover { background: var(--blurple); color: #fff; }
.ctx-menu button.danger { color: var(--red); }
.ctx-menu button.danger:hover { background: var(--red); color: #fff; }
.ctx-menu button.checked::after { content: '✓'; font-weight: 700; }
.ctx-menu .menu-title { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ctx-menu .range { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.ctx-menu input[type=range] { width: 100%; accent-color: var(--blurple); }
.ctx-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }

.emoji-pop { position: fixed; z-index: 60; background: var(--bg-float); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 16px); max-height: 380px; overflow-y: auto; animation: pop 0.14s var(--ease); }
.ep-grid { display: grid; grid-template-columns: repeat(8, 38px); gap: 2px; }
.ep-grid img { width: 26px; height: 26px; object-fit: contain; }
.emoji-pop button { font-size: 22px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; transition: background var(--fast), transform var(--fast); }
.emoji-pop button:hover { background: var(--bg-active); transform: scale(1.12); }
.ep-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 4px 6px; }
.emoji-pop .ep-super { width: 100%; padding: 8px; height: auto; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border); font-weight: 600; font-size: 13px; margin-bottom: 4px; transform: none !important; }
.emoji-pop .ep-super.on { background: linear-gradient(135deg, var(--pink), var(--blurple)); color: #fff; border-color: transparent; }
.emoji-pop .ep-add, .sound-pop .ep-add { width: 100%; padding: 8px; height: auto; margin-top: 6px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; font-weight: 600; transform: none !important; }
.emoji-pop .ep-add:hover, .sound-pop .ep-add:hover { background: var(--bg-active); color: var(--text-strong); }
.sound-pop { position: fixed; z-index: 60; width: 320px; background: var(--bg-float); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; animation: pop 0.14s var(--ease); }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sp-grid button { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 4px; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background var(--fast), transform var(--fast), border-color var(--fast); }
.sp-grid button span { font-size: 22px; }
.sp-grid button:hover { background: var(--blurple); border-color: transparent; color: #fff; transform: translateY(-1px); }
.sp-empty { padding: 12px 4px; font-size: 13px; }

.profile-pop { position: fixed; z-index: 65; width: 300px; background: var(--bg-float); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--pc, var(--border-strong)); animation: pop 0.16s var(--ease); }
.pp-banner { height: 104px; }
.pp-avatar { margin: -44px 0 0 14px; }
.pp-avatar .avatar { border: 6px solid var(--bg-float); width: 88px; height: 88px; box-shadow: none; }
.pp-body { padding: 10px 16px 16px; }
.pp-name { font-size: 20px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.pp-id { font-size: 13px; color: var(--muted); }
.pp-status { margin-top: 10px; font-size: 14px; background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.pp-sec { font-size: 11px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.pp-bio { font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 70; align-items: center; pointer-events: none; }
.toast { background: var(--bg-float); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: toast-in 0.25s var(--ease); max-width: calc(100vw - 32px); font-weight: 500; font-size: 14px; color: var(--text-strong); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast.error { background: var(--red); border-color: transparent; color: #fff; }
.toast.progress { min-width: 260px; }
.toast.progress .bar { height: 4px; background: var(--bg-input); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.toast.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blurple), var(--accent-2)); transition: width 0.15s; }

.lightbox { position: fixed; inset: 0; background: rgba(4, 6, 10, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 80; cursor: zoom-out; padding: 24px; animation: fade 0.15s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.update-bar { position: fixed; left: 50%; bottom: calc(16px + var(--sab, 0px)); transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--radius); background: var(--bg-float); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); color: var(--text-strong); max-width: calc(100vw - 32px); font-size: 14px; animation: toast-in 0.3s var(--ease); }

/* ---------- conta sem servidor ---------- */
.no-server { display: none; }
.app.no-servers .no-server { flex: 1; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(700px 360px at 50% 100%, rgba(124,108,255,.16), transparent 60%); }
.app.no-servers .chat-view, .app.no-servers .voice-view, .app.no-servers .members,
.app.no-servers .main-header .icon-btn:not(#btn-drawer), .app.no-servers .header-icon, .app.no-servers .server-header button { display: none !important; }
.no-server-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.no-server-card img { border-radius: 20px; box-shadow: 0 16px 36px -12px rgba(124,108,255,.8); }
.no-server-card h2 { margin: 8px 0 0; color: var(--text-strong); font-size: 24px; letter-spacing: -0.02em; font-weight: 800; }
.no-server-card p { margin: 0; line-height: 1.5; }
.user-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-panel); border: 1px solid var(--border-strong); padding: 10px 10px 10px 16px;
  border-radius: var(--radius); font-size: 17px; font-weight: 600; color: var(--text-strong); font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; transition: border-color var(--fast); }
.user-chip:hover { border-color: var(--blurple); }
.user-chip span { font-family: inherit; font-size: 12px; font-weight: 700; background: var(--blurple); color: #fff; padding: 6px 10px; border-radius: 6px; transition: background var(--fast); }
.user-chip:hover span { background: var(--blurple-dark); }
.no-server-card .or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 8px 0; }
.no-server-card .or::before, .no-server-card .or::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }

/* ---------- overlay do Dota (estilo extensão da Twitch) ---------- */
.dota-layer { position: absolute; pointer-events: none; z-index: 3; font-size: 13px; container-type: size; }
.dota-spot, .dota-card, .dota-panel { pointer-events: auto; }
.dota-spot { position: absolute; border-radius: 3px; background: transparent; border: 2px solid transparent; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.tile:hover .dota-spot { border-color: rgba(255,255,255,.18); }
.dota-spot:hover, .dota-spot.pinned { border-color: var(--yellow) !important; background: rgba(255,181,71,.12); }
.dota-card-host { position: absolute; left: 50%; top: calc(var(--u) * 54); bottom: 8px; transform: translateX(-50%); display: flex; align-items: flex-start; }
.dota-card { width: 300px; max-height: 100%; overflow-y: auto; background: rgba(11,13,18,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; cursor: default; color: var(--text); text-align: left; }
.dota-card.pinned { border-color: var(--yellow); }
.dc-head { display: flex; align-items: center; gap: 10px; }
.dc-head > img { width: 72px; height: 40px; object-fit: cover; border-radius: 4px; }
.dc-head.dead > img { filter: grayscale(1) brightness(.6); }
.dc-title { flex: 1; min-width: 0; }
.dc-title b { font-size: 15px; color: var(--text-strong); margin-right: 6px; }
.dc-title .lvl { font-size: 12px; background: var(--bg-input); padding: 1px 6px; border-radius: 4px; }
.dc-title .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-x { width: 24px; height: 24px; border-radius: 4px; color: var(--muted); }
.dc-x:hover { background: var(--bg-active); color: var(--text-strong); }
.dbar { position: relative; height: 14px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.dbar i { position: absolute; inset: 0 auto 0 0; }
.dbar.hp i { background: linear-gradient(#3fb950, #238636); }
.dbar.mp i { background: linear-gradient(#4c8eda, #1f5fae); }
.dbar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 14px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.dc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-weight: 600; font-size: 12px; }
.dc-stats small { display: block; font-weight: 500; font-size: 10px; color: var(--muted); }
.dc-items { display: flex; gap: 3px; flex-wrap: wrap; }
.di { width: 38px; height: 28px; border-radius: 3px; object-fit: cover; background: var(--bg-input); display: grid; place-items: center; font-size: 9px; overflow: hidden; }
.di.empty { opacity: 0.4; }
.di.neutral { width: 28px; border-radius: 50%; margin-left: 4px; }
.dc-items.small .di { width: 30px; height: 22px; opacity: 0.7; }
.dc-abil { display: flex; gap: 4px; }
.dab { position: relative; width: 40px; text-align: center; }
.dab img, .dab > span { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; background: var(--bg-input); font-size: 11px; }
.dab.unlearned img { filter: grayscale(1) brightness(.5); }
.dab .cd { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(0,0,0,.6); border-radius: 4px; font-size: 14px; }
.pips { display: flex; gap: 2px; justify-content: center; margin-top: 3px; }
.pips i { width: 6px; height: 4px; background: #4e5058; border-radius: 1px; }
.pips i.on { background: var(--yellow); }
.dc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dc-tags:empty { display: none; }
.dc-tags span { font-size: 11px; background: var(--accent-soft); color: #c6bdff; padding: 1px 6px; border-radius: 4px; }
.dc-tags .tal { background: var(--yellow-soft); color: #ffd28a; }
.dota-chips { position: absolute; left: 8px; top: calc(var(--u) * 54); display: flex; flex-direction: column; gap: 4px; }
.dota-chip { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 6px; background: rgba(11,13,18,.85); border: 1px solid var(--border-strong); color: var(--text-strong); font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0.75; transition: opacity 0.12s, border-color 0.12s; }
.dota-chip img { width: 36px; height: 20px; object-fit: cover; border-radius: 3px; }
.tile:hover .dota-chip, .dota-chip.pinned { opacity: 1; }
.dota-chip:hover, .dota-chip.pinned { border-color: var(--yellow); }
.dota-chips-toggle { pointer-events: auto; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: rgba(11,13,18,.85); border: 1px solid var(--border-strong); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; opacity: 0.6; transition: opacity 0.12s, border-color 0.12s; }
.tile:hover .dota-chips-toggle, .dota-chips-toggle:hover { opacity: 1; }
.dota-chips-toggle:hover { border-color: var(--yellow); }
.dc-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dc-build { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 6px; }
/* com espaço, a build vai para a direita do card em vez de ficar lá embaixo */
@container (min-width: 660px) {
  .dota-card:has(.dc-build) { width: 610px; flex-direction: row; align-items: flex-start; }
  .dota-card .dc-main { width: 280px; flex: none; }
  .dota-card .dc-build { flex: 1; border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 10px; }
}
.dcb-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; letter-spacing: 0.06em; }
.dcb-title a { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--link); }
.dcb-row { display: flex; align-items: center; gap: 6px; }
.dcb-row small { width: 46px; flex: none; font-size: 10px; color: var(--muted); }
.dcb-row > div { display: flex; gap: 3px; flex-wrap: wrap; }
.dcb-row .di { width: 30px; height: 22px; opacity: 0.55; }
.dcb-row .di.have { opacity: 1; outline: 2px solid #3fb950; outline-offset: -2px; }
.dota-panel { position: absolute; right: 8px; top: 52px; width: 280px; max-height: calc(100% - 60px); overflow-y: auto; background: rgba(11,13,18,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lg); cursor: default; }
.dp-head { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; font-size: 15px; padding-bottom: 6px; }
.dp-head .rad { color: #3fb950; }
.dp-head .dire { color: #f85149; }
.dp-head .dc-x { margin-left: auto; }
.dp-team { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 6px 0 2px; letter-spacing: 0.06em; }
.dp-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px; border-radius: 4px; text-align: left; border-left: 3px solid transparent; }
.dp-row.radiant { border-left-color: #3fb950; }
.dp-row.dire { border-left-color: #f85149; }
.dp-row:hover { background: var(--bg-active); }
.dp-row img { width: 48px; height: 27px; object-fit: cover; border-radius: 3px; }
.dp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-name small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-kda, .dp-nw { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-nw { color: var(--yellow); min-width: 36px; text-align: right; }
.dp-hint { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Nitro grátis ---------- */
[data-profile] { cursor: pointer; }
.author[data-profile]:hover { text-decoration: underline; }
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.body.jumbo { font-size: 44px; line-height: 1.2; }
.body.jumbo .cemoji { width: 48px; height: 48px; vertical-align: -8px; }
.reaction .cemoji { width: 18px; height: 18px; vertical-align: middle; }
.reaction.super { background: linear-gradient(135deg, rgba(255,95,168,.22), rgba(124,108,255,.22)); border-color: rgba(255,95,168,.5); }
.reaction.super.mine { border-color: var(--pink); }
.burst { position: fixed; z-index: 80; pointer-events: none; }
.burst span { position: absolute; left: 0; top: 0; font-size: var(--sz); transform: translate(-50%, -50%); animation: burst var(--d) cubic-bezier(.2,.7,.3,1) forwards; }
.burst span .cemoji { width: var(--sz); height: var(--sz); }
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.4); opacity: 0; } }

/* ---------- extras: resumo da partida, bolão, jogatina, reações, estatísticas ---------- */
.bot-tag { background: var(--blurple); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0.04em; }
.x-card { box-sizing: border-box; width: 100%; margin: 6px 0; background: var(--bg-sidebar); border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: 12px 14px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.x-card .btn { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.x-small { font-size: 12px; }
.x-pos { color: var(--green); font-weight: 700; }
.x-neg { color: var(--red); font-weight: 700; }
.x-tag { background: var(--blurple); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.04em; }
.x-tag.gray { background: var(--bg-input); color: var(--text); }
.x-hero { width: 72px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg-input); flex: none; }
.x-match.win { border-left-color: var(--green); }
.x-match.loss { border-left-color: var(--red); }
.x-match.win .x-tag { background: var(--green); }
.x-match.loss .x-tag { background: var(--red); }
.x-match-top, .x-bet-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-match-main { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.x-match-title { color: var(--text-strong); font-weight: 600; }
.x-match-res { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.x-kda { font-size: 22px; font-weight: 800; color: var(--text-strong); white-space: nowrap; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.x-kda .d { color: var(--red); }
.x-match-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.x-match-stats b { color: var(--text); }
.x-items { display: flex; gap: 4px; flex-wrap: wrap; }
.x-items img { width: 44px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--bg-input); }
.x-items img.neutral { width: 32px; border-radius: 50%; margin-left: 6px; }
.x-bet { border-left-color: var(--yellow); }
.x-bet.status-won { border-left-color: var(--green); }
.x-bet.status-lost { border-left-color: var(--red); }
.x-bet-pools { display: flex; gap: 16px; font-size: 13px; }
.x-bet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.x-bet-list li { display: flex; gap: 8px; }
.x-bet-actions, .x-event-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.x-bet-actions select { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; }
.x-card [data-ranking] { align-self: flex-start; padding: 0; min-height: 0; color: var(--link); }
.x-event { border-left-color: var(--blurple); }
.x-event.canceled { opacity: 0.6; }
.x-event.canceled .x-event-title { text-decoration: line-through; }
.x-event-when { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; display: flex; gap: 8px; align-items: center; letter-spacing: 0.06em; }
.x-event-title { font-size: 17px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.01em; }
.x-event-who { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.x-ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.x-ranking li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-main); border: 1px solid var(--border); }
.x-ranking li.me { border-color: var(--blurple); background: var(--accent-soft); }
.x-ranking .pos { width: 28px; text-align: center; font-weight: 700; color: var(--muted); }
.x-ranking b { margin-left: auto; font-variant-numeric: tabular-nums; }
.modal [data-push] { align-self: flex-start; padding: 0; min-height: 0; color: var(--link); margin-top: 4px; }

/* reações por cima da transmissão */
.tile-tools [data-clip] { font-size: 16px; }
.tile-tools [data-clip].on { background: var(--red); }
.x-react-bar { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(5,7,11,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-strong); padding: 4px; border-radius: 24px; z-index: 6; }
.x-react-bar button { min-width: 36px; height: 36px; border-radius: 18px; font-size: 20px; font-weight: 700; padding: 0 6px; transition: background var(--fast), transform var(--fast); }
.x-react-bar button:hover { background: rgba(255,255,255,.15); transform: scale(1.15); }
.x-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.x-float span { position: absolute; bottom: 10px; display: flex; flex-direction: column; align-items: center; animation: x-float var(--d, 2.6s) ease-out forwards; }
.x-float b { font-size: 34px; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.6); color: #fff; }
.x-float small { font-size: 11px; background: rgba(0,0,0,.6); padding: 0 5px; border-radius: 4px; margin-top: 2px; }
@keyframes x-float {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { transform: translate(0, -20px) scale(1.1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--sway, 0), -260px) scale(1); opacity: 0; }
}

/* o que eu perdi */
.x-recap-chip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 8; background: var(--blurple); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 20px; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--blurple) 90%, transparent); transition: background var(--fast), transform var(--fast); }
.x-recap-chip:hover { background: var(--blurple-dark); transform: translateX(-50%) translateY(-1px); }
.x-recap { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.x-recap li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 14px; }
.x-recap li:nth-child(odd) { background: var(--bg-main); }
.x-recap li .muted { font-size: 12px; white-space: nowrap; }

/* estatísticas do mês */
.x-month { width: 100%; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 12px; }
.x-stats-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.x-stats-hero div { background: linear-gradient(135deg, rgba(124,108,255,.35), rgba(255,95,168,.22)); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.x-stats-hero b { font-size: 24px; color: var(--text-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.x-stats-hero span { font-size: 12px; color: var(--muted); }
.x-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 45vh; overflow: auto; margin-bottom: 12px; }
.x-stat { background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.x-stat-icon { font-size: 22px; }
.x-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; letter-spacing: 0.06em; }
.x-stat .x-stat-label { margin: 0; }
.x-stat-name { font-weight: 700; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-stat-val { font-size: 13px; }
.x-emojis { display: flex; gap: 12px; font-size: 24px; margin-bottom: 12px; flex-wrap: wrap; }
.x-emojis small { font-size: 12px; color: var(--muted); }
.x-hours { display: flex; align-items: flex-end; gap: 2px; height: 50px; }
.x-hours i { flex: 1; background: linear-gradient(180deg, var(--accent-2), var(--blurple)); border-radius: 3px 3px 0 0; min-height: 2px; }

/* ---------- temas ---------- */
html[data-theme="midnight"] { --bg-servers: #000; --bg-sidebar: #050507; --bg-main: #0a0a0d; --bg-panel: #000; --bg-input: #15151a; --bg-float: #0e0e12; }
html[data-theme="nebula"] { --bg-servers: #0e0820; --bg-sidebar: #160e2e; --bg-main: #1d1340; --bg-panel: #0c071a; --bg-input: #2b1d57; --bg-float: #1a1038; --blurple: #a259ff; --blurple-dark: #8f45f0; --accent-soft: rgba(162,89,255,.18); --accent-2: #ff5fa8; }
html[data-theme="ocean"] { --bg-servers: #04111c; --bg-sidebar: #081a2a; --bg-main: #0b2236; --bg-panel: #040f19; --bg-input: #133650; --bg-float: #0a1f31; --blurple: #1e9bd7; --blurple-dark: #1686bd; --accent-soft: rgba(30,155,215,.18); --accent-2: #38c97a; }
html[data-theme="forest"] { --bg-servers: #06100a; --bg-sidebar: #0b1a10; --bg-main: #0f2416; --bg-panel: #050d08; --bg-input: #1a3523; --bg-float: #0d1f13; --blurple: #3ba55d; --blurple-dark: #2f8d4d; --accent-soft: rgba(59,165,93,.18); --accent-2: #ffb547; }
html[data-theme="sunset"] { --bg-servers: #190a0a; --bg-sidebar: #241010; --bg-main: #2e1615; --bg-panel: #150707; --bg-input: #46221f; --bg-float: #2a1413; --blurple: #f0703c; --blurple-dark: #d95f2e; --accent-soft: rgba(240,112,60,.18); --accent-2: #ffb547; }

/* ---------- iPhone / app instalado: notch e barra inferior ---------- */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
.app { padding-left: var(--sal); padding-right: var(--sar); }
.servers { padding-top: calc(12px + var(--sat)); padding-bottom: calc(12px + var(--sab)); }
.server-header, .main-header { height: calc(52px + var(--sat)); padding-top: var(--sat); }
.user-panel { height: calc(56px + var(--sab)); padding-bottom: var(--sab); }
.composer-wrap { padding-bottom: var(--sab); }
.stage-controls { padding-bottom: calc(22px + var(--sab)); }
.login { padding-top: calc(16px + var(--sat)); padding-bottom: calc(16px + var(--sab)); }
.toasts { bottom: calc(24px + var(--sab)); }
.members { padding-bottom: calc(8px + var(--sab)); }
/* sem zoom automático ao focar campos no iOS (precisa de fonte >= 16px) */
@media (pointer: coarse) {
  .composer textarea, label input, label select, label textarea, .edit-box textarea { font-size: 16px; }
  .icon-btn { width: 40px; height: 40px; }
  .msg-actions { display: flex; opacity: 0; pointer-events: none; }
  .msg.touch-active .msg-actions { opacity: 1; pointer-events: auto; }
  .category button, .channel .gear { opacity: 1; }
}
.tap-audio { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); transform: translateX(-50%); z-index: 75; background: var(--blurple); color: #fff;
  padding: 12px 20px; border-radius: 24px; font-weight: 600; box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--blurple) 90%, transparent); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .members { position: fixed; right: 0; top: calc(52px + var(--sat)); bottom: 0; z-index: 20; box-shadow: -12px 0 32px rgba(0,0,0,.5); }
  .voice-chat { width: 320px; }
}
@media (max-width: 760px) {
  /* chat do canal de voz vira gaveta por cima no celular */
  .voice-chat { position: fixed; right: 0; top: calc(52px + var(--sat)); bottom: 0; z-index: 20; width: 100vw; box-shadow: -12px 0 32px rgba(0,0,0,.5); }
  .mobile-only { display: grid; }
  .servers, .sidebar { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform 0.22s var(--ease); }
  .servers { left: 0; }
  .sidebar { left: 72px; width: min(280px, calc(100vw - 72px)); box-shadow: 12px 0 32px rgba(0,0,0,.45); }
  .app:not(.drawer-open) .servers { transform: translateX(-120%); }
  .app:not(.drawer-open) .sidebar { transform: translateX(calc(-100% - 96px)); }
  .stage.focus .strip { height: 96px; }
  .stage.focus .strip .tile { width: min(170px, 44vw); }
  .app.drawer-open .main::after { content: ''; position: fixed; inset: 0; background: rgba(4,6,10,.6); backdrop-filter: blur(2px); z-index: 25; }
  .header-topic { display: none; }
  .msg { padding-right: 16px; padding-left: 68px; }
  .msg .avatar { left: 14px; }
  .msg .side-time { width: 60px; }
  .composer-wrap { padding: 0 8px; }
  .round-btn { width: 48px; height: 48px; }
  .stage { padding: 8px; gap: 8px; }
  .modal { border-radius: var(--radius-lg); }
  .modal-body { padding: 24px 16px 16px; }
  .modal-foot { padding: 12px 16px; }
  .login-card { padding: 28px 20px 22px; }
}

/* admin: mutado para todos e arrastar para outro canal */
.voice-user .srv-mute { color: var(--red, #f04747); display: inline-flex; }
.voice-user[draggable="true"] { cursor: grab; }
#channel-list .channel.drop-target { outline: 2px dashed var(--yellow); outline-offset: -2px; }
