/* =========================================================
   ECLYPSE 2.0 - Estilo Global
   Paleta: Vermelho + Preto (estilo Discord)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --red: #E63946;
  --red-dark: #DC2626;
  --red-soft: #F05260;

  --bg-darkest: #1E1F22;
  --bg-dark: #2B2D31;
  --bg-mid: #313338;
  --bg-light: #383A40;

  --text: #FFFFFF;
  --text-muted: #B5BAC1;
  --text-dim: #949BA4;

  --success: #23A559;
  --warning: #F59E0B;
  --danger: #DC2626;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Ícones SVG globais ---------- */
.icon {
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 2;
}
.icon-inline {
  display: inline-block;
  margin-right: 4px;
}

/* ---------- Logos ---------- */
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}
.brand-logo-sm { height: 28px; }
.brand-logo-lg { height: 72px; }
.auth-logo {
  display: block;
  margin: 0 auto 18px;
  height: 64px;
  width: auto;
}
.auth-logo-link {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.auth-logo-link:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(230,57,70,0.5));
}

html, body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg-darkest);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
}

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-soft); }

/* ---------- LAYOUT ---------- */
/* Landing, login, register e auth páginas: scroll natural.
   Painel (body.app-view): fixo com sidebar/main rolando independentes. */
body.app-view {
  height: 100vh;
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--bg-dark);
  border-right: 1px solid rgba(0,0,0,0.4);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
}
/* scrollbar customizada */
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb {
  background: var(--bg-mid);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.main::-webkit-scrollbar-thumb:hover { background: var(--red); }

.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  padding: 6px 12px 18px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
  text-decoration: none;
}
.sidebar .brand:hover { color: var(--red-soft); }

.sidebar .nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar .nav-item .icon { color: var(--text-dim); transition: var(--transition); }
.sidebar .nav-item:hover { background: var(--bg-mid); color: var(--text); }
.sidebar .nav-item:hover .icon { color: var(--red); }
.sidebar .nav-item.active { background: var(--red); color: #fff; }
.sidebar .nav-item.active .icon { color: #fff; }
.sidebar .nav-item-sm { font-size: 13px; padding: 8px 12px; }
.sidebar .nav-item-exclusive {
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(245,158,11,0.1));
  border: 1px solid rgba(245,158,11,0.25);
  color: #FCD34D;
  font-weight: 600;
}
.sidebar .nav-item-exclusive .icon { color: var(--warning); }
.sidebar .nav-item-exclusive:hover { background: linear-gradient(135deg, rgba(220,38,38,0.25), rgba(245,158,11,0.15)); color: #FDE68A; }
.sidebar .nav-item-exclusive.active { background: linear-gradient(135deg, var(--red-dark), var(--warning)); color: #fff; }
.sidebar .nav-item-exclusive.active .icon { color: #fff; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: pulseBadge 2s ease-in-out infinite;
}
.nav-subitem {
  font-size: 12px;
  padding: 6px 12px 6px 28px;
  color: var(--text-dim);
}
.nav-subitem:hover { color: var(--text); }
.nav-subitem-dot {
  width: 6px; height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
  margin-right: 4px;
  display: inline-block;
}
.nav-subitem-dot-live {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.sidebar .nav-item.active .nav-badge { background: #fff; color: var(--red); }
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Pilha de avatares ao lado de "Call de Voz" no menu lateral */
.nav-voice-stack {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.nav-voice-av {
  display: inline-flex;
  margin-right: -7px;
  border: 2px solid var(--bg-mid, #1E1F22);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-mid, #1E1F22);
  transition: border-color .2s ease;
}
.nav-voice-av:last-child { margin-right: 0; }
.nav-voice-av .avatar {
  border: none !important;
}
.nav-voice-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 11px;
  background: rgba(35,165,89,0.18);
  color: #6ee7a3;
  border: 2px solid var(--bg-mid, #1E1F22);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sidebar .nav-item.active .nav-voice-av { border-color: var(--red); }
.sidebar .nav-item.active .nav-voice-more {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: var(--red);
}
.nav-item-voice[data-has-peers="1"] .nav-voice-av:first-of-type {
  box-shadow: 0 0 0 2px rgba(35,165,89,0.5);
  animation: navVoicePulse 2s ease-in-out infinite;
}
@keyframes navVoicePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(35,165,89,0.5); }
  50%      { box-shadow: 0 0 0 3px rgba(35,165,89,0.85); }
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 6px;
}
.sidebar-user:hover {
  background: var(--bg-mid);
  border-color: rgba(230,57,70,0.3);
  transform: translateX(2px);
}
.sidebar-user.active {
  background: var(--bg-mid);
  border-color: var(--red);
}
.sidebar-user.active .sidebar-user-arrow { color: var(--red); }
.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.sidebar-user-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.sidebar-user:hover .sidebar-user-arrow {
  color: var(--red);
  transform: translateX(2px);
}

/* Wrapper do card de usuário + botão sair */
.sidebar-user-wrap {
  display: flex; align-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}
.sidebar-user-wrap .sidebar-user {
  flex: 1;
  margin-bottom: 0;
}
.sidebar-logout-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.sidebar-logout-ico:hover {
  background: rgba(220,38,38,0.15);
  color: #FCA5A5;
  border-color: var(--danger);
}

.topbar-title { font-size: 20px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.badge-success { background: var(--success) !important; }

/* ========== NOTIFICAÇÕES ========== */
.notif-wrap { position: relative; }
.notif-btn {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.notif-btn:hover { background: var(--bg-light); color: var(--red); }
.notif-btn-shake { animation: bellRing 0.8s ease; }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(-12deg); }
  20%, 40%, 60%, 80% { transform: rotate(12deg); }
}
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-mid);
}
.notif-panel {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  width: 340px;
  max-height: 460px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 100;
  display: flex; flex-direction: column;
  animation: fadeUp 0.2s ease-out;
}
.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.notif-item:hover { background: var(--bg-mid); color: var(--text); }
.notif-item.unread { border-left: 3px solid var(--red); background: rgba(230,57,70,0.05); }
.notif-type {
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.notif-body { font-size: 13px; line-height: 1.4; }
.notif-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.sidebar .section-title {
  font-size: 11px; text-transform: uppercase;
  color: var(--text-dim); margin: 14px 12px 4px;
  letter-spacing: 1px;
}

.main {
  background: var(--bg-mid);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* .topbar removida — substituída por .floating-hud */

.floating-hud {
  position: fixed;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 60;
}

.flash-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(35,165,89,0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 65;
  animation: flash-toast-in .3s ease, flash-toast-out .4s ease 4s forwards;
}
@keyframes flash-toast-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes flash-toast-out {
  to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; }
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 36px;
}

/* ---------- COMPONENTES ---------- */
.card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

/* Fallback global: o atributo [hidden] sempre deve esconder o elemento,
   independente de regras de display do autor (.btn, .pay-chip, etc.). */
[hidden] { display: none !important; }

/* REGRA DO SISTEMA: todo botão padrão tem no máximo border-radius 6px.
   Aplica-se a .btn e a todas as variantes (.btn-lg, .btn-sm, .btn-outline,
   .btn-ghost, .btn-block, etc). Botões circulares de toolbar (.meet-btn) e
   ícones específicos têm seleção própria e não são afetados. */
.btn,
.btn-lg,
.btn-sm,
.btn-outline,
.btn-ghost,
.btn-block,
button.btn {
  border-radius: 6px !important;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: var(--bg-light); color: var(--text); }
.btn-ghost:hover { background: var(--bg-darkest); }
.btn-block { width: 100%; justify-content: center; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.15s ease;
}
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) {
  border-color: rgba(230,57,70,0.3);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
  background: var(--bg-dark);
}
input:disabled, textarea:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Select com seta custom */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B5BAC1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* File input estilizado */
input[type="file"] {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  padding: 10px 16px;
  margin-right: 12px;
  background: var(--bg-darkest);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--bg-mid);
  border-color: var(--red);
  color: var(--red);
}

/* Dropzone (file input visual) */
.dropzone {
  display: block;
  position: relative;
  padding: 24px;
  background: var(--bg-darkest);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}
.dropzone:hover {
  border-color: var(--red);
  background: rgba(230,57,70,0.03);
}
.dropzone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.dropzone input[type="file"]::file-selector-button { display: none; }
.dropzone-icon {
  width: 48px; height: 48px;
  background: var(--bg-mid);
  color: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  transition: all 0.2s ease;
}
.dropzone:hover .dropzone-icon {
  background: var(--red); color: #fff;
  transform: scale(1.08);
}
.dropzone-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.dropzone-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.dropzone-preview {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-mid);
  border-radius: var(--radius-sm);
  text-align: left;
}
.dropzone-preview.active { display: flex; }
.dropzone-preview-img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-darkest);
}
.dropzone-preview-info { flex: 1; min-width: 0; }
.dropzone-preview-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropzone-preview-size {
  font-size: 11px;
  color: var(--text-dim);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field { margin-bottom: 14px; }

/* Input com botão de olho (toggle senha) */
.input-with-toggle {
  position: relative;
}
.input-with-toggle input {
  padding-right: 42px;
}
.input-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.input-toggle:hover { color: var(--red); background: rgba(230,57,70,0.1); }

/* Plugin hero (play_rat / kaizen_bypass) */
.plugin-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(230,57,70,0.2), rgba(220,38,38,0.08));
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.plugin-hero-icon {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
}

/* Botão "Acessar Plugin" no hero */
.plugin-cta {
  flex-shrink: 0;
  align-self: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: #fff !important;
  padding: 14px 22px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(230,57,70,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 6px !important;
}

/* Layout do vídeo em coluna única (sem sidebar de início rápido) */
.plugin-video-full {
  max-width: 920px;
  margin: 0 auto 22px;
}
.plugin-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(230,57,70,0.6);
}

/* Embed responsivo do YouTube (16:9) */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .plugin-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .plugin-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   PÁGINA DE STATS DE SUPORTE (admin)
   ============================================================ */
.stats-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(220,38,38,0.06));
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.stats-hero-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(230,57,70,0.4);
}
.stats-hero-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
}
.stats-hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 720px;
}

.stats-filter {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.stats-filter-chips {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 280px;
}
.stats-filter-dates {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.stats-period-info {
  margin: 4px 0 14px;
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stats-period-info strong { color: var(--text-muted); font-family: var(--font-mono, monospace); }

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.stat-summary-card:hover { border-color: rgba(230,57,70,0.3); }
.stat-summary-primary {
  background: linear-gradient(135deg, rgba(230,57,70,0.1), var(--bg-dark) 70%);
  border-color: rgba(230,57,70,0.25);
}
.ssc-ico {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(230,57,70,0.18);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.stat-summary-primary .ssc-ico {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}
.ssc-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.ssc-num-sub { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.ssc-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
}

/* Pódio top 3 */
.stats-section { margin-bottom: 24px; }
.stats-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0 4px;
}
.stats-section-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.stats-section-head h2 .icon { color: var(--red); }

.stats-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.podium-card {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.podium-card:hover { transform: translateY(-4px); }
.podium-1 {
  border-color: rgba(245,158,11,0.5);
  background: linear-gradient(180deg, rgba(245,158,11,0.12), var(--bg-dark) 70%);
  box-shadow: 0 6px 20px rgba(245,158,11,0.15);
}
.podium-2 {
  border-color: rgba(180,180,180,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), var(--bg-dark) 70%);
}
.podium-3 {
  border-color: rgba(205,127,50,0.4);
  background: linear-gradient(180deg, rgba(205,127,50,0.1), var(--bg-dark) 70%);
}
.podium-medal { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.podium-avatar { display: inline-block; margin-bottom: 8px; }
.podium-name { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.podium-role {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.podium-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.podium-stat { display: flex; flex-direction: column; align-items: center; }
.podium-stat strong {
  font-size: 18px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.podium-stat strong .icon { color: var(--warning, #F59E0B); }
.podium-stat span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Tabela de stats melhorada */
.stats-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
}
.stats-table td { vertical-align: middle; }
.stats-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.stats-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  border-radius: 3px;
  transition: width .4s ease;
}
.stats-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--warning, #F59E0B);
  font-weight: 700;
  font-size: 14px;
}
.stats-resolution {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.stats-resolution-ok {
  background: rgba(35,165,89,0.15);
  color: #6ee7a3;
}
.stats-resolution-mid {
  background: rgba(245,158,11,0.15);
  color: var(--warning, #F59E0B);
}
.stats-resolution-low {
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
}
.stats-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success, #23A559);
  font-size: 12px;
  font-weight: 600;
}
.stats-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success, #23A559);
  box-shadow: 0 0 6px rgba(35,165,89,0.7);
  animation: stats-online-pulse 1.6s ease-in-out infinite;
}
@keyframes stats-online-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Atividade — grid de cards com mini bar */
.stats-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.stats-activity-card {
  padding: 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.stats-activity-card:hover { border-color: rgba(230,57,70,0.3); }
.sa-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.sa-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
  margin: 4px 0 8px;
  word-break: break-word;
}
.sa-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.sa-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  border-radius: 2px;
}

/* CTA final */
.stats-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius);
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.stats-cta h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.stats-cta p { margin: 0; color: var(--text-muted); font-size: 13px; }

@media (max-width: 700px) {
  .stats-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .stats-filter-dates { width: 100%; }
  .stats-filter-dates .field { flex: 1; }
  .stats-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PÁGINA DE PLUGIN (play_rat / kaizen_bypass) — layout v2
   ============================================================ */

/* Hero rico com background gradient + grid interno */
.plugin-page-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 36px 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0608, #0f0a0c);
  border: 1px solid rgba(230,57,70,0.25);
}
.plugin-page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(230,57,70,0.25), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(220,38,38,0.18), transparent 60%);
  pointer-events: none;
}
.plugin-page-hero-zap .plugin-page-hero-bg {
  background:
    radial-gradient(circle at 0% 0%, rgba(245,158,11,0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(230,57,70,0.2), transparent 60%);
}
.plugin-page-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.plugin-page-hero-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(230,57,70,0.45);
  flex-shrink: 0;
}
.plugin-page-hero-zap .plugin-page-hero-icon {
  background: linear-gradient(135deg, #f59e0b, var(--red-dark));
  box-shadow: 0 12px 32px rgba(245,158,11,0.4);
}
.plugin-page-hero-text { flex: 1; min-width: 280px; }
.plugin-page-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230,57,70,0.15);
  color: var(--red-soft, #ef9aa3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plugin-page-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 10px 0 8px;
}
.plugin-page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 16px;
}
.plugin-page-badges {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.plugin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.plugin-badge-ok {
  background: rgba(35,165,89,0.12);
  border-color: rgba(35,165,89,0.3);
  color: #6ee7a3;
}
.plugin-badge-info {
  background: rgba(230,57,70,0.12);
  border-color: rgba(230,57,70,0.3);
  color: #fca5a5;
}
.plugin-page-hero-cta { flex-shrink: 0; }

/* Grid de vídeo + quick start */
.plugin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.plugin-video-card,
.plugin-side-card {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 18px;
}
.plugin-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.plugin-card-ico {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(230,57,70,0.15);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.plugin-card-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.plugin-card-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.plugin-quickstart {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plugin-quickstart li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.04);
}
.qs-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.plugin-side-cta {
  margin-top: 4px;
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: #fff !important;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.plugin-side-help {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

/* Seções genéricas */
.plugin-section { margin-bottom: 22px; }
.plugin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 0 4px;
}
.plugin-section-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.plugin-section-head h2 .icon { color: var(--red); }

/* Lista de downloads */
.plugin-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plugin-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: all .15s ease;
}
.plugin-file:hover {
  border-color: rgba(230,57,70,0.3);
  transform: translateY(-1px);
}
.plugin-file-latest {
  border-color: rgba(35,165,89,0.4);
  background: linear-gradient(135deg, rgba(35,165,89,0.06), var(--bg-dark) 60%);
}
.plugin-file-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(230,57,70,0.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.plugin-file-latest .plugin-file-icon {
  background: rgba(35,165,89,0.15);
  color: var(--success, #23A559);
}
.plugin-file-info { flex: 1; min-width: 0; }
.plugin-file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plugin-file-title strong { color: var(--text); font-size: 15px; }
.plugin-file-version {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}
.plugin-file-tag-latest {
  background: rgba(35,165,89,0.2);
  color: #6ee7a3;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plugin-file-changelog {
  margin: 6px 0 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.plugin-file-date {
  font-size: 11px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 4px;
}
.plugin-file-btn { flex-shrink: 0; }

.plugin-empty {
  background: var(--bg-dark);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
}
.plugin-empty .icon { color: var(--text-dim); margin-bottom: 8px; }
.plugin-empty p { margin: 8px 0; color: var(--text-muted); }

/* Passos numerados */
.plugin-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.plugin-step {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.plugin-step:hover { border-color: rgba(230,57,70,0.3); }
.plugin-step-num {
  position: absolute;
  top: -10px; left: 16px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}
.plugin-step-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(230,57,70,0.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.plugin-step h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}
.plugin-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA de ajuda no fim */
.plugin-help-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.plugin-help-cta h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}
.plugin-help-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsivo */
@media (max-width: 900px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .plugin-page-title { font-size: 30px; }
}
@media (max-width: 700px) {
  .plugin-page-hero { padding: 24px 20px; }
  .plugin-page-hero-content { flex-direction: column; align-items: flex-start; }
  .plugin-page-hero-cta { width: 100%; }
  .plugin-page-hero-cta .plugin-cta { width: 100%; justify-content: center; }
  .plugin-file { flex-wrap: wrap; }
  .plugin-file-btn { width: 100%; justify-content: center; }
  .plugin-help-cta .btn { width: 100%; justify-content: center; }
}
.plugin-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(230,57,70,0.25);
  color: var(--red-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.plugin-title {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-img { padding: 0; background-color: var(--bg-darkest); }
.avatar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-edit {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.avatar-form {
  display: flex; gap: 10px; align-items: center;
  flex: 1;
}
.avatar-form input[type="file"] {
  padding: 8px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  flex: 1;
  font-size: 13px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border-left: 4px solid;
}
.alert-error { background: rgba(220,38,38,0.15); border-color: var(--danger); color: #FCA5A5; }
.alert-ok { background: rgba(35,165,89,0.15); border-color: var(--success); color: #86EFAC; }

/* ---------- BLOQUEIO MOBILE (login/register) ---------- */
.mobile-block {
  position: fixed; inset: 0;
  background: radial-gradient(circle at top, #3b0a0d, var(--bg-darkest) 70%);
  z-index: 10000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.mobile-block-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  width: 100%; max-width: 420px;
  margin: auto;
  text-align: center;
  border: 2px solid var(--red);
  box-shadow: 0 20px 60px rgba(220,38,38,0.35);
  animation: modalPop 0.35s cubic-bezier(.2,.9,.25,1.2);
}
.mobile-block-icon {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(230,57,70,0.5);
}
.mobile-block-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(220,38,38,0.18);
  color: #FCA5A5;
  border: 1px solid rgba(220,38,38,0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.mobile-block-modal h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.mobile-block-modal p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 14px;
}
.mobile-block-eth {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid var(--warning);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
}
.mobile-block-eth strong { color: var(--warning); }
.mobile-block-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- LOGIN: lembrar usuário + sugestões ---------- */
.login-input-wrap { position: relative; }
.login-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.15s ease;
}
.login-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s ease;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.login-suggestion:hover {
  background: var(--bg-mid);
  color: var(--text);
  border-left-color: var(--red);
}
.login-suggestion > svg { color: var(--red); flex-shrink: 0; }
.login-suggestion > span { flex: 1; }
.login-suggestion-x {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  opacity: 0;
}
.login-suggestion:hover .login-suggestion-x { opacity: 1; }
.login-suggestion-x:hover { background: var(--danger); color: #fff; }

.login-remember {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
  user-select: none;
}
.login-remember:hover { color: var(--text); }
.login-remember input[type="checkbox"] { display: none; }
.login-remember-box {
  width: 18px; height: 18px;
  background: var(--bg-darkest);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.login-remember:hover .login-remember-box { border-color: var(--red); }
.login-remember input:checked + .login-remember-box {
  background: var(--red);
  border-color: var(--red);
}
.login-remember input:checked + .login-remember-box::after {
  content: ''; width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- GATE DE PERMISSÕES (login/register) ---------- */
.perm-gate {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.perm-gate-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 36px 32px 26px;
  width: 100%; max-width: 420px;
  text-align: center;
  border: 2px solid rgba(230,57,70,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalPop 0.3s cubic-bezier(.2,.9,.25,1.2);
}
.perm-list {
  list-style: none; padding: 0;
  margin: 14px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.perm-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: left;
}
.perm-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: var(--bg-mid);
  color: var(--text-dim);
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.2s ease;
}
.perm-list li.ok {
  border-color: rgba(35,165,89,0.35);
  background: rgba(35,165,89,0.08);
}
.perm-list li.ok .perm-check {
  background: var(--success);
  color: #fff;
}
.perm-list li.ok .perm-check::before {
  content: '✓';
  font-size: 14px;
}
.perm-list li.ok .perm-check { font-size: 0; }

/* ---------- AUTH (login/registro) ---------- */
.auth-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(circle at top, #3b0a0d 0%, var(--bg-darkest) 60%);
}
.auth-card { margin: auto; }
.auth-card > a { text-decoration: none; display: block; }
.auth-card {
  background: var(--bg-dark);
  padding: 36px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px !important;
  box-shadow: var(--shadow);
}

/* ========== SEÇÃO DE LICENÇA NO REGISTRO ========== */
.license-section {
  margin: 6px 0 14px;
  padding: 14px;
  background: rgba(230,57,70,0.04);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius-sm);
}
.license-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
}
.license-head strong { color: var(--text); font-size: 13px; }
.license-head svg { flex-shrink: 0; margin-top: 2px; }
.license-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.license-chip { cursor: pointer; }
.license-chip input { position: absolute; opacity: 0; pointer-events: none; }
.license-chip-box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.license-chip:hover .license-chip-box { border-color: rgba(230,57,70,0.4); }
.license-chip input:checked ~ .license-chip-box {
  border-color: var(--red);
  background: rgba(230,57,70,0.08);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}
.license-chip-name { font-weight: 700; font-size: 13px; color: var(--text); }
.license-chip-desc { font-size: 11px; color: var(--text-dim); }

.payment-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.payment-chip { cursor: pointer; }
.payment-chip input { position: absolute; opacity: 0; pointer-events: none; }
.payment-chip-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: all .15s ease;
  color: var(--text-dim);
}
.payment-chip-box > span { display: flex; flex-direction: column; }
.payment-chip-box strong { color: var(--text); font-size: 13px; }
.payment-chip:hover .payment-chip-box { border-color: rgba(230,57,70,0.4); color: var(--text); }
.payment-chip input:checked ~ .payment-chip-box {
  border-color: var(--red);
  background: rgba(230,57,70,0.08);
  color: var(--red);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}
.payment-chip input:checked ~ .payment-chip-box strong { color: var(--red); }

@media (max-width: 520px) {
  .license-chips, .payment-chips { grid-template-columns: 1fr; }
}
.auth-card h1 {
  font-size: 26px;
  color: var(--red);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.auth-card .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.auth-card .footer-link {
  margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-dim);
}

/* ========== ESQUECI A SENHA ========== */
.forgot-link-wrap {
  text-align: center;
  margin-top: 14px;
  margin-bottom: -4px;
}
.forgot-link {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: none;
  transition: color .15s ease;
}
.forgot-link:hover { color: var(--red); text-decoration: underline; }

.forgot-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.forgot-modal {
  position: relative;
  background: var(--bg-dark);
  padding: 32px 28px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(230,57,70,0.25);
}
.forgot-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.forgot-close:hover { color: #fff; background: var(--danger); }

.forgot-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 18px 0 8px;
}
.forgot-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  transition: all .2s ease;
}
.forgot-step-pill span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.forgot-step-pill.active {
  background: rgba(230,57,70,0.15);
  border-color: rgba(230,57,70,0.4);
  color: var(--red);
}
.forgot-step-pill.active span {
  background: var(--red);
  color: #fff;
}
.forgot-step-pill.done {
  background: rgba(35,165,89,0.1);
  border-color: rgba(35,165,89,0.3);
  color: #6ee7a3;
}
.forgot-step-pill.done span {
  background: var(--success, #23A559);
  color: #fff;
}
.forgot-step-line {
  flex: 0 0 16px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.forgot-step { margin-top: 4px; }

.forgot-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 18px;
}
.forgot-code-digit {
  width: 56px;
  height: 64px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  background: var(--bg-darkest);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  transition: all .15s ease;
}
.forgot-code-digit:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(230,57,70,0.06);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.18);
}

@media (max-width: 460px) {
  .forgot-code-digit { width: 48px; height: 56px; font-size: 24px; }
  .forgot-step-pill { font-size: 10px; padding: 4px 8px; }
}

/* =========================================================
   LANDING PAGE (/)
   ========================================================= */

.landing {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(230,57,70,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(220,38,38,0.10) 0%, transparent 50%),
    var(--bg-darkest);
}

/* ---------- Navbar topo ---------- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 8%;
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,31,34,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar .logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  color: var(--red); letter-spacing: 2px;
  text-decoration: none;
}
.navbar .logo-text { color: var(--text); font-weight: 500; }
.navbar .logo-text b { color: var(--red); font-weight: 700; }
.navbar nav { display: flex; gap: 28px; align-items: center; }
.navbar nav a { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.navbar nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 8% 80px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero .tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.35);
  border-radius: 999px;
  color: var(--red-soft);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

.hero-stats {
  display: flex; justify-content: center; gap: 60px;
  margin-top: 60px; flex-wrap: wrap;
}
.hero-stats .stat .num {
  font-size: 36px; font-weight: 700; color: var(--red);
}
.hero-stats .stat .lbl {
  color: var(--text-dim); font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px; margin-top: 4px;
}

/* ---------- Seções ---------- */
.section {
  padding: 80px 8%;
  max-width: 1200px; margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .kicker {
  color: var(--red); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ---------- Grid de features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,70,0.4);
  box-shadow: 0 12px 40px rgba(230,57,70,0.15);
}
.feature::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.feature:hover::before { transform: scaleX(1); }
.feature .ico {
  font-size: 32px; margin-bottom: 14px;
  display: inline-block;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ---------- Roles showcase ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.role-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}
.role-card:hover { transform: translateY(-3px); }
.role-card .role-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
}
.role-card h4 {
  font-size: 17px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.role-card p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.role-card.president { border-color: var(--red-dark); }
.role-card.president .role-icon { background: var(--red-dark); }
.role-card.support { border-color: var(--warning); }
.role-card.support .role-icon { background: var(--warning); color: #1E1F22; }
.role-card.admin { border-color: var(--red); }
.role-card.admin .role-icon { background: var(--red); }
.role-card.member .role-icon { background: var(--bg-light); }

/* ---------- Steps (como funciona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step .num {
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}
.step h4 { font-size: 17px; margin: 14px 0 8px; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ---------- PRODUTOS (landing) ---------- */
.products-section { padding-bottom: 40px; }
.product-block {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.product-block-head { text-align: center; margin-bottom: 22px; }
.product-block-head h3 {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin: 10px 0 6px;
}
.product-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(230,57,70,0.15);
  color: var(--red-soft);
  border: 1px solid rgba(230,57,70,0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* BT MOB */
.btmob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .btmob-grid { grid-template-columns: 1fr; } }
.btmob-card {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btmob-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,70,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.btmob-highlight {
  background: linear-gradient(135deg, rgba(230,57,70,0.12), var(--bg-darkest));
  border-color: rgba(230,57,70,0.4);
  box-shadow: 0 10px 30px rgba(230,57,70,0.15);
  transform: scale(1.02);
}
.btmob-highlight:hover { transform: translateY(-4px) scale(1.02); }
.btmob-version {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 6px;
}
.btmob-highlight .btmob-version {
  background: linear-gradient(135deg, #fff, var(--red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btmob-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.btmob-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-mid);
  color: var(--text-dim);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.btmob-highlight .btmob-tag {
  background: var(--red);
  color: #fff;
}
.btmob-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.btmob-list li {
  padding-left: 20px;
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.btmob-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Botão "Adquirir" — vermelho do sistema */
.btn-buy {
  background: linear-gradient(135deg, #E63946, var(--red-dark, #b91c2a)) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(230,57,70,0.4);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  margin-top: 12px;
}
.btn-buy:hover {
  background: linear-gradient(135deg, var(--red-dark, #b91c2a), #7f1d1d) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230,57,70,0.55);
}
.btmob-card { display: flex; flex-direction: column; }
.btmob-card .btmob-list { flex: 1; }

/* Banner "tudo incluso" no topo da seção BT MOB */
.bundle-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(35,165,89,0.12), rgba(124,58,237,0.10));
  border: 1px solid rgba(35,165,89,0.35);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bundle-banner-ico {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.bundle-banner strong { color: var(--text); }

/* Selo "Incluso na BT MOB" usado nos blocos Bypass e Play Store */
.bundle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(35,165,89,0.14);
  color: #86efac;
  border: 1px solid rgba(35,165,89,0.45);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.bundle-tag:hover {
  background: rgba(35,165,89,0.22);
  transform: translateY(-1px);
  color: #86efac;
}
.bundle-tag strong { color: #fff; }

/* Métodos de pagamento aceitos nos cards de BT MOB */
.btmob-pays {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
}
.btmob-pays-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.pay-chip:hover { transform: translateY(-1px) scale(1.05); }
.pay-chip svg { width: 18px; height: 18px; display: block; }
.pay-pix  { background: #32BCAD; }
.pay-usdt { background: #26A17B; }
.pay-btc  { background: #F7931A; }

/* Mini ícone EQP no rodapé */
.eqp-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid rgba(230,57,70,0.5);
  display: inline-block;
}

/* BYPASS BLOCK */
.bypass-block {
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(220,38,38,0.05) 50%, var(--bg-dark));
  border: 1px solid rgba(230,57,70,0.35);
  padding: 0;
}
.bypass-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 200%;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.22), transparent 65%);
  pointer-events: none;
}
.bypass-inner { padding: 40px 36px; position: relative; z-index: 1; }
.bypass-tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(230,57,70,0.45);
}
.bypass-title {
  font-size: 36px;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bypass-desc {
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--text);
}
.bypass-desc strong { color: var(--red-soft); }
.bypass-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.bypass-point {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.bypass-point strong { color: var(--text); display: inline-block; margin-bottom: 2px; }
.bypass-point-ico {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* PLAY STORE BLOCK */
.playstore-block {
  display: flex; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--bg-dark), rgba(35,165,89,0.06));
  border-color: rgba(35,165,89,0.2);
}
@media (max-width: 720px) {
  .playstore-block { flex-direction: column; align-items: flex-start; }
}
.playstore-icon {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(35,165,89,0.4);
}
.playstore-body { flex: 1; }
.playstore-body h3 {
  font-size: 30px;
  letter-spacing: -0.5px;
  margin: 10px 0 4px;
}
.playstore-tagline {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.playstore-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.playstore-feat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(35,165,89,0.1);
  color: #86EFAC;
  border: 1px solid rgba(35,165,89,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.playstore-feat .icon { color: var(--success); }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(220,38,38,0.08));
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 8% 80px;
  max-width: 1000px;
  margin-left: auto; margin-right: auto;
}
.cta-final h2 { font-size: 32px; margin-bottom: 14px; }
.cta-final p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  padding: 40px 8% 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links a { color: var(--text-muted); margin-left: 18px; }
.footer-links a:hover { color: var(--red); }

/* ---------- Cards de conteúdo (home) ---------- */
.card-highlight {
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, rgba(230,57,70,0.15), var(--bg-dark));
}
.card-title { margin: 10px 0 6px; font-size: 18px; }
.card-empty { text-align: center; color: var(--text-dim); padding: 30px; }
.text-muted { color: var(--text-muted); font-size: 14px; }

.section-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.section-bar-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600;
}
.section-bar-title .icon { color: var(--red); }

.badge-inline { display: inline-flex; align-items: center; gap: 6px; }

/* ========== TABELAS ========== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  background: var(--bg-dark);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.table thead th {
  background: var(--bg-darkest);
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 14px;
}
.table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ========== PÍLULAS / STATUS ========== */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pill-low { background: rgba(181,186,193,0.2); color: var(--text-muted); }
.pill-medium { background: rgba(59,130,246,0.2); color: #60A5FA; }
.pill-high { background: rgba(245,158,11,0.2); color: #FCD34D; }
.pill-urgent { background: rgba(220,38,38,0.2); color: #FCA5A5; }

.pill-status-open { background: rgba(59,130,246,0.2); color: #60A5FA; }
.pill-status-in_progress { background: rgba(245,158,11,0.2); color: #FCD34D; }
.pill-status-finished { background: rgba(35,165,89,0.2); color: #86EFAC; }
.pill-status-rated { background: rgba(181,186,193,0.2); color: var(--text-muted); }

.text-dim { color: var(--text-dim); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 16px;
}

.card-link {
  text-decoration: none; color: inherit;
  display: block; transition: var(--transition);
}
.card-link:hover { transform: translateY(-1px); border-color: var(--red); }

/* ========== TICKETS ========== */
.ticket-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.ticket-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* Hero profissional */
.ticket-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darkest));
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 4px solid var(--red);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.ticket-hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 200%;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.12), transparent 70%);
  pointer-events: none;
}
.ticket-hero-low    { border-left-color: var(--text-dim); }
.ticket-hero-medium { border-left-color: #3b82f6; }
.ticket-hero-high   { border-left-color: var(--warning); }
.ticket-hero-urgent { border-left-color: var(--danger); }
.ticket-hero-main { position: relative; z-index: 1; }
.ticket-hero-badges {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ticket-hero-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: rgba(230,57,70,0.12);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(230,57,70,0.3);
}
.ticket-hero-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.ticket-hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}
.ticket-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-hero-meta .icon { color: var(--red); }
.ticket-hero-meta strong { color: var(--text); font-weight: 600; }

/* Hero compacto (colapsado) */
.ticket-hero-compact {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darkest));
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.ticket-hero-id {
  font-family: var(--font-mono, monospace);
  font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.ticket-hero-compact.ticket-hero-low { border-left-color: var(--text-dim); }
.ticket-hero-compact.ticket-hero-medium { border-left-color: #3b82f6; }
.ticket-hero-compact.ticket-hero-high { border-left-color: var(--warning); }
.ticket-hero-compact.ticket-hero-urgent { border-left-color: var(--danger); }
.ticket-hero-compact-main {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; flex: 1; min-width: 0;
}
.ticket-hero-compact-title {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.2px;
  color: var(--text);
}
.ticket-hero-compact-pills {
  display: flex; gap: 6px; align-items: center;
}

/* Toggle de detalhes */
.ticket-details-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.ticket-details-toggle:hover {
  background: var(--bg-mid);
  color: var(--text);
  border-color: rgba(230,57,70,0.25);
}
.ticket-details-toggle.expanded {
  background: rgba(230,57,70,0.1);
  color: var(--red);
  border-color: rgba(230,57,70,0.3);
}
.ticket-details-toggle-arrow {
  transition: transform 0.25s ease;
}
.ticket-details-toggle.expanded .ticket-details-toggle-arrow {
  transform: rotate(180deg);
}

/* Caixa de detalhes colapsável */
.ticket-details-box {
  animation: detailsSlide 0.3s ease;
}
@keyframes detailsSlide {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 1200px; }
}

/* Descrição */
.ticket-desc {
  border-left: 3px solid rgba(255,255,255,0.05);
}
.ticket-desc-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticket-desc-icon { color: var(--red); }
.ticket-desc-body {
  color: var(--text);
  line-height: 1.65;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Aguardando atendimento */
.ticket-waiting {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), var(--bg-dark));
  border-left: 3px solid #3b82f6;
}
.ticket-waiting-info {
  display: flex; align-items: center; gap: 14px;
  flex: 1;
}
.ticket-waiting-icon {
  width: 44px; height: 44px;
  background: rgba(59,130,246,0.15);
  color: #60A5FA;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ========== TICKET NA FILA (aguardando) ========== */
.ticket-queue-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), var(--bg-dark));
  border-left: 4px solid #3b82f6;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.ticket-queue-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 180%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.14), transparent 70%);
  pointer-events: none;
}
.ticket-queue-head {
  display: flex; gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.ticket-queue-spinner {
  position: relative;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}
.ticket-queue-spinner-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(59,130,246,0.5);
  border-top-color: transparent;
  animation: queueSpin 1.4s linear infinite;
}
@keyframes queueSpin { to { transform: rotate(360deg); } }
.ticket-queue-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.35);
  color: #93C5FD;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.ticket-queue-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.ticket-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ticket-queue-stat {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.ticket-queue-num {
  font-size: 24px;
  font-weight: 700;
  color: #60A5FA;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ticket-queue-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.ticket-queue-assume,
.ticket-queue-cancel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ticket-queue-cancel {
  margin-top: 10px;
  padding-top: 12px;
}

/* ========== ABRIR TICKET (FORM PRO) ========== */
.new-ticket-shell { max-width: 820px; margin: 0 auto; }
.new-ticket-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(230,57,70,0.12), var(--bg-dark));
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.new-ticket-hero-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
}
.new-ticket-hero h1 {
  font-size: 26px; letter-spacing: -0.5px; margin-bottom: 4px;
}

.new-ticket-steps {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nt-step { display: inline-flex; align-items: center; gap: 6px; }
.nt-step-n {
  width: 20px; height: 20px;
  background: var(--bg-mid);
  color: var(--red);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  border: 1px solid rgba(230,57,70,0.3);
}
.nt-step-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, rgba(230,57,70,0.3), rgba(230,57,70,0.05));
  border-radius: 1px;
  max-width: 80px;
}

.new-ticket-section {
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease;
}
.new-ticket-section:focus-within { border-left-color: var(--red); }
.nt-section-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nt-section-n {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.nt-section-head h3 { font-size: 17px; margin-bottom: 2px; }
.nt-section-head p { font-size: 13px; }

/* Categorias */
.nt-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.nt-cat-chip { cursor: pointer; }
.nt-cat-chip input { display: none; }
.nt-cat-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-darkest);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nt-cat-chip:hover .nt-cat-box { border-color: rgba(230,57,70,0.25); }
.nt-cat-chip input:checked + .nt-cat-box {
  border-color: var(--red);
  background: rgba(230,57,70,0.1);
}
.nt-cat-ico {
  width: 36px; height: 36px;
  background: var(--bg-mid);
  color: var(--text-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.nt-cat-chip input:checked + .nt-cat-box .nt-cat-ico {
  background: var(--red); color: #fff;
}
.nt-cat-text { flex: 1; font-size: 14px; font-weight: 500; }
.nt-cat-check {
  color: transparent;
  transition: color 0.15s ease;
}
.nt-cat-chip input:checked + .nt-cat-box .nt-cat-check {
  color: var(--red);
}

/* Prioridades */
.nt-priorities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.nt-prio-chip { cursor: pointer; }
.nt-prio-chip input { display: none; }
.nt-prio-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-darkest);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nt-prio-chip:hover .nt-prio-box { border-color: var(--prio-color); }
.nt-prio-chip input:checked + .nt-prio-box {
  border-color: var(--prio-color);
  background: color-mix(in srgb, var(--prio-color) 12%, var(--bg-darkest));
}
.nt-prio-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--prio-color);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--prio-color);
  transition: box-shadow 0.2s ease;
}
.nt-prio-chip input:checked + .nt-prio-box .nt-prio-dot {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--prio-color) 30%, transparent);
}
.nt-prio-name { font-weight: 600; font-size: 14px; }
.nt-prio-desc { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

.new-ticket-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 0;
}

/* ========== FORMULÁRIO DE CRIAÇÃO (genérico admin) ========== */
.create-shell {
  max-width: 880px;
  margin: 0 auto;
}

.create-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(230,57,70,0.14), rgba(220,38,38,0.04) 60%, var(--bg-dark));
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.create-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 280px; height: 200%;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.15), transparent 70%);
  pointer-events: none;
}
.create-hero-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(230,57,70,0.45);
  position: relative;
  z-index: 1;
}
.create-hero-text { position: relative; z-index: 1; }
.create-hero-text h1 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.create-hero-text p {
  color: var(--text-muted);
  font-size: 14px;
}

.create-section {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}
.create-section:focus-within {
  border-left-color: var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.create-section-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.create-section-n {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.create-section-head h3 {
  font-size: 16px;
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}
.create-section-head h3 .icon { color: var(--red); }
.create-section-head p {
  color: var(--text-muted);
  font-size: 13px;
}

.create-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  margin-top: 8px;
}
.create-footer-hint {
  color: var(--text-dim);
  font-size: 12px;
}
.create-footer-actions {
  display: flex; gap: 10px;
}

/* Toggles (pinned / broadcast / etc.) */
.create-toggles {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.create-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  color: var(--text-muted);
}
.create-toggle:hover { border-color: rgba(230,57,70,0.3); color: var(--text); }
.create-toggle input { display: none; }
.create-toggle .create-toggle-check {
  width: 18px; height: 18px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.create-toggle input:checked ~ .create-toggle-check {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.create-toggle input:checked ~ .create-toggle-label { color: var(--text); }
.create-toggle-label { display: flex; align-items: center; gap: 6px; }

/* Chips de layout no admin/posts */
.layout-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.layout-chips-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) {
  .layout-chips-4 { grid-template-columns: repeat(2, 1fr); }
}
.layout-chip { cursor: pointer; }
.layout-chip input { display: none; }
.layout-chip-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px;
  background: var(--bg-darkest);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-align: center;
}
.layout-chip:hover .layout-chip-box { border-color: rgba(230,57,70,0.25); }
.layout-chip input:checked + .layout-chip-box {
  border-color: var(--red);
  background: rgba(230,57,70,0.08);
}
.layout-chip-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.layout-chip input:checked + .layout-chip-box .layout-chip-label {
  color: var(--red);
  font-weight: 600;
}

/* Previews miniatura */
.layout-preview {
  width: 80px; height: 50px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex;
  padding: 4px;
  gap: 4px;
  overflow: hidden;
}
.layout-preview > span {
  display: block;
  background: var(--bg-light);
  border-radius: 2px;
}
/* Tamanho geral */
.layout-preview-100 > span { width: 100%; height: 100%; background: var(--red); }
.layout-preview-50 > span { width: 50%; height: 100%; background: var(--red); margin: 0 auto; }
/* Posições */
.layout-preview.pos-top, .layout-preview.pos-bottom { flex-direction: column; }
.layout-preview.pos-left, .layout-preview.pos-right { flex-direction: row; }
.layout-preview .lp-media { background: var(--red); flex: 1; }
.layout-preview .lp-text {
  background: var(--bg-light);
  flex: 1;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--bg-light) 0, var(--bg-light) 2px,
    transparent 2px, transparent 5px
  );
}
.layout-chip input:checked + .layout-chip-box .layout-preview .lp-media { background: #fff; }

/* Lista de itens existentes (padrão visual) */
.items-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 14px;
  padding: 0 4px;
}
.items-section-title h3 {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.items-section-title .text-dim { font-size: 12px; }

.item-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all 0.15s ease;
  border: 1px solid rgba(255,255,255,0.03);
}
.item-row:hover { border-color: rgba(230,57,70,0.2); }
.item-row-thumb {
  width: 56px; height: 42px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
}
.item-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-row-info { flex: 1; min-width: 0; }
.item-row-title {
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.item-row-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.item-row-actions {
  display: flex; gap: 8px;
  flex-shrink: 0;
}

/* Blacklist grid */
.blacklist-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.blacklist-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Space Grotesk', monospace;
}
.blacklist-chip:hover { border-color: var(--danger); color: #FCA5A5; }
.blacklist-x {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.blacklist-chip:hover .blacklist-x { color: var(--danger); }

/* Conversação (timeline) */
.ticket-conv-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticket-conv-head h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
}
.ticket-timeline {
  display: flex; flex-direction: column; gap: 14px;
  padding: 8px 0;
  max-height: 600px;
  overflow-y: auto;
}
.ticket-timeline::-webkit-scrollbar { width: 6px; }
.ticket-timeline::-webkit-scrollbar-thumb { background: var(--bg-mid); border-radius: 3px; }
.ticket-timeline-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; text-align: center;
  color: var(--text-dim);
}
.ticket-timeline-empty .icon { color: var(--red); margin-bottom: 12px; opacity: 0.6; }

.ticket-msg {
  display: flex; gap: 10px;
  animation: fadeUp 0.25s ease;
}
.ticket-msg-body { flex: 1; min-width: 0; }
.ticket-msg-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ticket-msg-head strong { font-size: 13px; }
.ticket-msg-bubble {
  background: var(--bg-darkest);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
  display: inline-block;
  max-width: 100%;
  word-wrap: break-word;
  border: 1px solid rgba(255,255,255,0.03);
}
.ticket-msg-mine { flex-direction: row-reverse; }
.ticket-msg-mine .ticket-msg-body { text-align: right; }
.ticket-msg-mine .ticket-msg-head { justify-content: flex-end; }
.ticket-msg-mine .ticket-msg-bubble {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: transparent;
  border-radius: 12px 12px 4px 12px;
  text-align: left;
}

/* Form de resposta */
.ticket-reply-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ticket-reply-wrap {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.ticket-reply-wrap textarea {
  flex: 1;
  background: var(--bg-darkest);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 60px;
  resize: vertical;
}

/* Rating cards */
.ticket-rate-card, .ticket-rated-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), var(--bg-dark));
  border-left: 4px solid var(--warning);
}
.ticket-rate-head {
  display: flex; align-items: center; gap: 16px;
}
.ticket-rate-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--warning), #b45309);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}

/* Estrelas pro (ordem invertida para efeito hover encadeado) */
.stars-input-pro {
  display: flex; flex-direction: row-reverse; justify-content: flex-end;
  gap: 4px; margin: 14px 0 16px;
}
.stars-input-pro input { display: none; }
.stars-input-pro label {
  cursor: pointer;
  color: var(--bg-light);
  transition: color 0.15s ease, transform 0.15s ease;
}
.stars-input-pro label:hover,
.stars-input-pro label:hover ~ label,
.stars-input-pro input:checked ~ label {
  color: var(--warning);
  transform: scale(1.1);
}

/* Avaliação feita */
.ticket-rated-stars {
  display: flex; align-items: center; gap: 4px;
  margin: 14px 0;
}
.ticket-rated-stars .star-on { color: var(--warning); }
.ticket-rated-stars .star-off { color: var(--bg-light); }
.ticket-rated-score {
  margin-left: 8px;
  font-size: 18px;
  color: var(--warning);
}
.ticket-rated-comment {
  background: var(--bg-darkest);
  border-left: 3px solid var(--warning);
  padding: 12px 16px;
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Avaliações mútuas lado a lado */
.mutual-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 640px) { .mutual-rates { grid-template-columns: 1fr; } }
.mutual-rate {
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left: 3px solid var(--warning);
}
.mutual-rate-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.mutual-rate-label .icon { color: var(--warning); }
.mutual-rate-pending {
  border-left-color: var(--bg-light);
  opacity: 0.6;
}

/* Pergunta "resolvido?" */
.resolved-question {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
}
.resolved-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font-size: 14px; font-weight: 600;
}
.resolved-label .icon { color: var(--warning); }
.resolved-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) { .resolved-options { grid-template-columns: 1fr; } }
.resolved-chip { cursor: pointer; }
.resolved-chip input { display: none; }
.resolved-chip-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-mid);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 14px;
}
.resolved-chip:hover .resolved-chip-box { border-color: rgba(255,255,255,0.1); }
.resolved-yes input:checked + .resolved-chip-box {
  border-color: var(--success);
  background: rgba(35,165,89,0.1);
  color: #86EFAC;
}
.resolved-yes input:checked + .resolved-chip-box .icon { color: var(--success); }
.resolved-no input:checked + .resolved-chip-box {
  border-color: var(--danger);
  background: rgba(220,38,38,0.1);
  color: #FCA5A5;
}
.resolved-no input:checked + .resolved-chip-box .icon { color: var(--danger); }

.resolved-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: 14px;
}
.resolved-banner-yes {
  background: rgba(35,165,89,0.12);
  color: #86EFAC;
  border-left: 3px solid var(--success);
}
.resolved-banner-no {
  background: rgba(220,38,38,0.12);
  color: #FCA5A5;
  border-left: 3px solid var(--danger);
}

.queue-num {
  width: 36px; height: 36px;
  background: var(--bg-darkest);
  color: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(230,57,70,0.2);
}

/* ========== FILA DE ATENDIMENTO (rows) ========== */
.queue-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.queue-row:hover { border-color: rgba(230,57,70,0.25); transform: translateX(2px); }
.queue-row-active {
  background: linear-gradient(135deg, rgba(35,165,89,0.06), var(--bg-dark));
  border-left-color: var(--success);
}
.queue-row.wait-short { border-left-color: #3b82f6; }
.queue-row.wait-medium { border-left-color: var(--warning); }
.queue-row.wait-long { border-left-color: var(--danger); animation: waitUrgent 2s ease-in-out infinite; }
@keyframes waitUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.2); }
  50%      { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}

.queue-row-body { flex: 1; min-width: 0; }
.queue-row-title {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.queue-row-title strong { font-size: 14px; }
.queue-row-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(230,57,70,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(230,57,70,0.25);
}
.queue-row-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.queue-row-wait {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  flex-shrink: 0;
}
.queue-row-wait .icon { color: var(--red); }
.queue-wait-timer { font-weight: 600; }
.queue-wait-lbl { color: var(--text-dim); font-size: 11px; }
.queue-row.wait-medium .queue-row-wait { border-color: rgba(245,158,11,0.35); color: #FCD34D; }
.queue-row.wait-medium .queue-row-wait .icon { color: var(--warning); }
.queue-row.wait-long .queue-row-wait {
  border-color: rgba(220,38,38,0.45);
  background: rgba(220,38,38,0.12);
  color: #FCA5A5;
}
.queue-row.wait-long .queue-row-wait .icon { color: var(--danger); }

.queue-row-actions {
  display: flex; gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .queue-row { flex-wrap: wrap; }
  .queue-row-body { flex-basis: 100%; }
}

.messages {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 500px; overflow-y: auto;
  padding: 4px;
}
.msg { display: flex; gap: 10px; }
.msg-mine { flex-direction: row-reverse; }
.msg-mine .msg-content { text-align: right; }
.msg-content { flex: 1; }
.msg-head { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 4px; }
.msg-mine .msg-head { justify-content: flex-end; }
.msg-body {
  background: var(--bg-darkest);
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
  display: inline-block;
  max-width: 100%;
}
.msg-mine .msg-body { background: var(--red); color: #fff; }

.stars-input {
  display: flex; gap: 4px; margin-bottom: 16px;
}
.stars-input label {
  cursor: pointer; color: var(--bg-light);
  transition: var(--transition);
}
.stars-input input { display: none; }
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--warning); }

/* ========== CHAT GLOBAL PRO ========== */
.chat-pro {
  display: flex; flex-direction: column;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.chat-pro-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--bg-dark), rgba(230,57,70,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.chat-pro-head-left {
  display: flex; align-items: center; gap: 14px;
}
.chat-pro-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(230,57,70,0.35);
}
.chat-pro-head-right {
  display: flex; align-items: center; gap: 14px;
}
.chat-pro-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(35,165,89,0.15);
  border: 1px solid rgba(35,165,89,0.35);
  color: #86EFAC;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.chat-pro-messages,
.ticket-timeline {
  background-image:
    linear-gradient(rgba(11, 13, 16, 0.78), rgba(11, 13, 16, 0.78)),
    url('/public/assets/img/wallpaper.png');
  background-size: cover, 320px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-attachment: local, local;
}
.chat-pro-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.chat-pro-messages::-webkit-scrollbar { width: 8px; }
.chat-pro-messages::-webkit-scrollbar-thumb { background: var(--bg-mid); border-radius: 4px; }
.chat-pro-messages::-webkit-scrollbar-thumb:hover { background: var(--red); }

.chat-pro-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  text-align: center;
  min-height: 300px;
}
.chat-pro-empty .icon { color: var(--red); margin-bottom: 14px; }
.chat-pro-empty h4 { color: var(--text); margin-bottom: 6px; font-size: 17px; }

.chat-pro-date-sep {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 0 8px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.chat-pro-date-sep span {
  padding: 3px 12px;
  background: var(--bg-darkest);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.04);
}

.chat-pro-msg {
  display: flex; gap: 10px;
  padding: 4px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  position: relative;
  max-width: 80%;
  animation: fadeUp 0.2s ease;
}
.chat-pro-msg:hover { background: rgba(255,255,255,0.02); }
.chat-pro-msg.is-mine {
  flex-direction: row-reverse;
  margin-left: auto;
}
.chat-pro-msg-body { flex: 1; min-width: 0; }
.chat-pro-msg.is-mine .chat-pro-msg-body { text-align: right; }
.chat-pro-msg-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.chat-pro-msg.is-mine .chat-pro-msg-head { justify-content: flex-end; flex-direction: row-reverse; }
.chat-pro-msg.is-mine .chat-pro-actions { margin-left: 0; margin-right: auto; }
.chat-pro-msg-head strong { font-size: 13px; color: var(--text); }
.chat-pro-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
}
.chat-pro-username:hover { color: var(--red); text-decoration: underline; }
.chat-pro-avatar-link { display: inline-block; text-decoration: none; }
.chat-pro-role-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}
.chat-pro-time { font-size: 11px; color: var(--text-dim); }
.chat-pro-actions {
  margin-left: auto;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.chat-pro-msg:hover .chat-pro-actions { opacity: 1; }
.chat-pro-action {
  width: 26px; height: 26px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.chat-pro-action:hover { background: var(--red); color: #fff; border-color: var(--red); }
.chat-pro-del:hover { background: #dc2626 !important; border-color: #dc2626 !important; }

/* Ações em mensagem própria (alinhadas à esquerda do bubble) */
.chat-pro-actions-mine {
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  position: absolute;
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
}
.chat-pro-msg.is-mine .chat-pro-msg-body { position: relative; }
.chat-pro-msg.is-mine:hover .chat-pro-actions-mine { opacity: 1; }

/* Mensagem apagada — bubble em tom discreto */
.chat-pro-msg-deleted {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04) !important;
  color: var(--text-dim) !important;
  font-style: italic;
  padding: 6px 12px !important;
  border: 1px dashed rgba(255,255,255,0.1) !important;
}
.chat-pro-msg-deleted .chat-pro-bubble-body em { font-style: italic; }
.chat-pro-msg.is-deleted .chat-pro-actions,
.chat-pro-msg.is-deleted .chat-pro-actions-mine { display: none !important; }
.chat-pro-msg-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  padding: 8px 12px 6px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px 12px 12px 4px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}
.chat-pro-msg.is-mine .chat-pro-msg-text {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: transparent;
  border-radius: 12px 12px 4px 12px;
  text-align: left;
}

/* Bolha com texto + hora alinhada ao final */
.chat-pro-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
  position: relative;
}
.chat-pro-bubble-body {
  display: inline-block;
  word-wrap: break-word;
  white-space: pre-wrap;
  align-self: flex-start;
}
.chat-pro-bubble-time {
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  align-self: flex-end;
  opacity: 0.85;
  white-space: nowrap;
}
.chat-pro-msg.is-mine .chat-pro-bubble-time {
  color: rgba(255,255,255,0.75);
}
/* Para imagens/vídeos, hora como overlay no canto inferior direito */
.chat-pro-bubble-media {
  position: relative;
  display: inline-block;
}
.chat-pro-bubble-time-overlay {
  position: absolute;
  bottom: 8px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff !important;
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.chat-pro-form {
  display: flex; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-darkest);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  align-items: center;
}
.chat-pro-input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
  transition: border-color 0.15s ease;
}
.chat-pro-input-wrap:focus-within { border-color: var(--red); }
.chat-input-shell {
  position: relative;
  flex: 1;
  display: flex;
}
.chat-pro-input-wrap input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--text);
}

/* Dropdown de @menções */
.mention-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
  padding: 4px;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s ease;
}
.mention-item:hover,
.mention-item.active {
  background: rgba(230,57,70,0.15);
}
.mention-item .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.mention-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mention-name { font-weight: 600; color: var(--text); font-size: 13px; flex: 1; }
.mention-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.mention-hint {
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-style: italic;
}

/* Destaque de @menção em mensagem */
.chat-mention {
  display: inline-block;
  background: rgba(230,57,70,0.18);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s ease;
}
.chat-mention:hover { background: rgba(230,57,70,0.3); }

/* @todos / @all — pill de broadcast (megafone vermelho mais forte) */
.chat-mention-broadcast {
  background: linear-gradient(135deg, #dc2626, #7c2d12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
  text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 11px; padding: 2px 8px;
  cursor: default;
}
.chat-mention-broadcast:hover { background: linear-gradient(135deg, #ef4444, #991b1b); }

/* Quando a menção é PRA MIM, destaque amarelo (chamando minha atenção) */
.chat-mention-self {
  background: rgba(245,158,11,0.22);
  color: var(--warning, #f59e0b);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.45);
}
.chat-mention-self:hover { background: rgba(245,158,11,0.32); }

/* Item de @todos/@all no dropdown de menções */
.mention-item.mention-broadcast {
  background: linear-gradient(90deg, rgba(220,38,38,0.12), transparent);
  border-left: 2px solid #dc2626;
}
.mention-item.mention-broadcast.active,
.mention-item.mention-broadcast:hover {
  background: linear-gradient(90deg, rgba(220,38,38,0.22), rgba(220,38,38,0.05));
}
.mention-item.mention-broadcast .mention-name { color: #fff; font-weight: 700; }
.chat-pro-input-wrap input:focus { outline: none; border: none; }
.chat-pro-send {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  justify-content: center;
}
.chat-pro-mic {
  width: 36px; height: 36px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.chat-pro-mic:hover { background: var(--bg-mid); color: var(--red); }

.chat-anon-toggle:hover { color: var(--text); }
.chat-anon-toggle.is-on {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.45) inset;
}
.chat-anon-toggle.is-on:hover { color: #ddd6fe; }

.chat-anon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.chat-record-bar {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 999px;
  font-size: 13px;
  color: #FCA5A5;
}
.chat-record-dot {
  width: 10px; height: 10px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulseDot 0.9s ease-in-out infinite;
}
.chat-record-bar > span:nth-of-type(2) { flex: 1; }
.chat-record-cancel {
  background: transparent;
  border: 1px solid rgba(220,38,38,0.4);
  color: #FCA5A5;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.chat-record-cancel:hover { background: var(--danger); color: #fff; }

/* ========== AUDIO PLAYER CUSTOM ========== */
.voice-player {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 999px;
  min-width: 240px; max-width: 320px;
}
.chat-pro-msg.is-mine .voice-player {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.vp-play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  position: relative;
}
.vp-play:hover { transform: scale(1.08); box-shadow: 0 4px 10px rgba(230,57,70,0.4); }
.voice-player.playing .vp-play { background: var(--bg-mid); color: var(--red); }
.chat-pro-msg.is-mine .vp-play { background: #fff; color: var(--red); }
.vp-play::after {
  content: ''; display: block;
  width: 0; height: 0;
  border-left: 10px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.voice-player.playing .vp-play::after {
  content: ''; width: 10px; height: 10px;
  border: none; margin: 0;
  background:
    linear-gradient(to right, currentColor 3px, transparent 3px, transparent 7px, currentColor 7px);
}
.vp-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-mid);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.chat-pro-msg.is-mine .vp-bar { background: rgba(255,255,255,0.2); }
.vp-progress {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.chat-pro-msg.is-mine .vp-progress { background: #fff; }
.vp-time {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.chat-pro-msg.is-mine .vp-time { color: rgba(255,255,255,0.8); }

/* Imagens em DM */
.chat-media-img {
  max-width: 280px;
  max-height: 320px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease;
}
.chat-media-img:hover { transform: scale(1.02); }
.chat-media-file {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}
.chat-pro-msg.is-mine .chat-media-file {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.chat-media-file:hover { border-color: var(--red); }

/* ========== CHAT (estilo legado — tickets messages) ========== */
.chat-shell {
  display: flex; flex-direction: column;
  height: calc(100vh - 120px);
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-msg {
  display: flex; gap: 10px;
  max-width: 80%;
  animation: fadeUp 0.2s ease;
}
.chat-msg-mine {
  flex-direction: row-reverse;
  margin-left: auto;
}
.chat-msg-content { flex: 1; min-width: 0; }
.chat-msg-mine .chat-msg-content { text-align: right; }
.chat-msg-head {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; margin-bottom: 4px;
}
.chat-msg-mine .chat-msg-head { justify-content: flex-end; flex-direction: row-reverse; }
.chat-msg-body {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}
.chat-msg-mine .chat-msg-body {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: transparent;
  border-radius: 12px 12px 4px 12px;
  text-align: left;
}
.chat-form {
  display: flex; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.chat-form input[type="text"] { flex: 1; }

/* ========== DM (chat privado) ========== */
.dm-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-rows: 1fr;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  max-width: 1500px;
  margin: 0 auto;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.dm-sidebar {
  border-right: 1px solid rgba(255,255,255,0.05);
  overflow-y: auto;
  background: var(--bg-darkest);
}
.dm-search { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dm-search input { font-size: 13px; padding: 8px 12px; }
.dm-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.dm-item:hover { background: var(--bg-mid); color: var(--text); }
.dm-item.active { background: var(--red); color: #fff; }
.dm-name { font-weight: 600; font-size: 14px; }
.dm-avatar-wrap { position: relative; flex-shrink: 0; }
.dm-status-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}
.dm-status-sm { width: 10px; height: 10px; }
.dm-item-body { flex: 1; min-width: 0; }
.dm-item-meta {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: capitalize;
}
.dm-item.active .dm-item-meta { color: rgba(255,255,255,0.8); }

/* Preview da última mensagem */
.dm-item-preview {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin-top: 2px;
}
.dm-item.active .dm-item-preview { color: rgba(255,255,255,0.85); }

/* Lista header + seleção em massa */
.dm-list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dm-select-all-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.dm-select-all-wrap input[type="checkbox"] {
  width: auto; margin: 0;
  accent-color: var(--red);
}
.dm-bulk-actions {
  display: flex; align-items: center; gap: 8px;
}
.dm-bulk-actions > span { font-size: 11px; }

/* Wrapper permite checkbox + link lado a lado */
.dm-item-wrap {
  display: flex; align-items: center;
  transition: background 0.15s ease;
  position: relative;
}
.dm-item-wrap:hover { background: rgba(230,57,70,0.04); }
.dm-item-wrap.active { background: rgba(230,57,70,0.08); }
.dm-item-wrap > .dm-item {
  flex: 1;
  padding: 10px 14px 10px 6px;
}
.dm-item-wrap > .dm-item:hover { background: transparent; }
.dm-item-wrap.active > .dm-item { background: transparent; }
.dm-item-wrap.active .dm-name { color: var(--red); }

/* Checkbox customizado */
.dm-chk-wrap {
  display: inline-flex; align-items: center;
  padding: 10px 6px 10px 14px;
  cursor: pointer;
}
.dm-chk-wrap input[type="checkbox"] {
  display: none;
}
.dm-chk-box {
  width: 18px; height: 18px;
  background: var(--bg-darkest);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}
.dm-chk-wrap:hover .dm-chk-box { border-color: var(--red); }
.dm-chk-wrap input:checked + .dm-chk-box {
  background: var(--red);
  border-color: var(--red);
}
.dm-chk-wrap input:checked + .dm-chk-box::after {
  content: ''; width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.dm-unread-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: pulseBadge 2s ease-in-out infinite;
}
.dm-item.active .dm-unread-badge { background: #fff; color: var(--red); }

.dm-main {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(135deg, var(--bg-dark), rgba(230,57,70,0.04));
}
.dm-header-user {
  display: flex; align-items: center; gap: 12px;
  flex: 1;
  text-decoration: none;
  color: var(--text);
}
.dm-header-user:hover .dm-header-name { color: var(--red); }
.dm-header-name {
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.15s ease;
}
.dm-header-actions {
  display: flex; gap: 6px;
}
.dm-blocked-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.4);
  color: #FCA5A5;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.dm-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  padding: 40px;
  text-align: center;
}
.dm-empty .icon { color: var(--red); margin-bottom: 16px; }
.dm-empty h3 { margin-bottom: 6px; color: var(--text); }

@media (max-width: 800px) {
  .dm-shell { grid-template-columns: 1fr; }
  .dm-main { display: none; }
  .dm-shell:has(.dm-header) .dm-main { display: flex; }
  .dm-shell:has(.dm-header) .dm-sidebar { display: none; }
}

/* ========== VOZ (estilo Meet/Discord) ========== */
.meet-shell {
  display: flex; flex-direction: column;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg-darkest);
  border-radius: var(--radius);
  overflow: hidden;
}
.meet-shell-with-sidebar {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr;
}
.meet-shell-with-sidebar > .meet-main {
  min-height: 0; /* permite que flex children respeitem o height do grid cell */
}
.meet-sidebar {
  background: var(--bg-dark);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.meet-sidebar-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.meet-sidebar-head h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.participants-list {
  overflow-y: auto;
  padding: 8px 0;
}
.participant-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-left: 3px solid transparent;
  animation: participantIn 0.35s ease both;
}
@keyframes participantIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.participant-item.speaking .avatar {
  animation: avatarPulse 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 0 3px var(--success), 0 0 12px rgba(35,165,89,0.55);
}
@keyframes avatarPulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.participant-item:hover { background: var(--bg-mid); }
.participant-item.me { background: rgba(230,57,70,0.08); border-left-color: var(--red); }
.participant-item.speaking { border-left-color: var(--success); background: rgba(35,165,89,0.08); }
.participant-info { flex: 1; min-width: 0; }
.participant-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
.participant-name:hover { color: var(--red); text-decoration: underline; }
.participant-role { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participant-actions {
  display: flex; gap: 4px;
  opacity: 0; transition: var(--transition);
}
.participant-item:hover .participant-actions { opacity: 1; }

.meet-main {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.meet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.meet-head-pro {
  background: linear-gradient(135deg, var(--bg-dark), rgba(230,57,70,0.08));
  padding: 16px 22px;
}
.meet-head-info {
  display: flex; align-items: center; gap: 14px;
}
.meet-head-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.meet-head-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(35,165,89,0.15);
  border: 1px solid rgba(35,165,89,0.35);
  color: #86EFAC;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-dot-live {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@media (max-width: 800px) {
  .meet-shell-with-sidebar { grid-template-columns: 1fr; }
  .meet-sidebar { display: none; }
}
.meet-counter {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-mid);
  border-radius: 999px;
}
.meet-grid {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-content: start;
}
.meet-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 300px;
  color: var(--text-dim);
  text-align: center;
}
.meet-empty .icon { color: var(--red); margin-bottom: 16px; }
.meet-empty h3 { color: var(--text); margin-bottom: 6px; }

.meet-tile {
  background: var(--bg-dark);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: tileIn 0.35s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes tileIn {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.meet-tile.speaking {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(35,165,89,0.35), 0 0 24px rgba(35,165,89,0.55);
  animation: speakingPulse 0.6s ease-in-out infinite alternate;
}
@keyframes speakingPulse {
  from { box-shadow: 0 0 0 4px rgba(35,165,89,0.35), 0 0 18px rgba(35,165,89,0.45); }
  to   { box-shadow: 0 0 0 6px rgba(35,165,89,0.5),  0 0 32px rgba(35,165,89,0.7); }
}
.meet-tile.mic-off::after {
  content: '';
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
}
.meet-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.meet-tile-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.meet-tile-label {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.meet-tile-mic .icon { color: var(--success); }
.meet-tile.mic-off .meet-tile-mic .icon { color: var(--danger); }
.meet-tile.mic-off .meet-tile-mic::after {
  content: ''; width: 14px; height: 2px; background: var(--danger);
  position: absolute; transform: rotate(45deg);
}
.meet-tile-mod {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  border: none; color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.meet-tile:hover .meet-tile-mod { opacity: 1; }
.meet-tile-mod:hover { background: var(--red); }

.meet-tile-screen {
  aspect-ratio: auto;
  grid-column: span 2;
  max-height: 500px;
  position: relative;
  background: #000;
}
/* Camada de GPU dedicada para evitar artefatos verdes em fullscreen e
   ghost cursor (bug conhecido do compositor do Chrome em hardware accel). */
.meet-tile-screen video {
  object-fit: contain;
  background: #000;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Botão fullscreen em tiles de tela compartilhada — sempre visível
   (antes ficava opacity:0 até hover, o que escondia totalmente em popups
   pequenos). Em popups o usuário precisa achar o botão imediatamente. */
.fs-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  opacity: 0.85;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.meet-tile-screen:hover .fs-btn { opacity: 1; }
.fs-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.08);
  opacity: 1;
}
/* Em fullscreen: tela cheia, fundo preto sólido, sem bordas, sem
   transformações na camada (corrige tela verde + duplicação de cursor). */
.meet-tile-screen:fullscreen,
.meet-tile-screen:-webkit-full-screen {
  width: 100vw; height: 100vh;
  max-height: none; max-width: none;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.meet-tile-screen:fullscreen video,
.meet-tile-screen:-webkit-full-screen video {
  width: 100vw; height: 100vh;
  max-width: 100vw; max-height: 100vh;
  object-fit: contain;
  background: #000;
  transform: none;
  will-change: auto;
}
.meet-tile-screen:fullscreen .fs-btn,
.meet-tile-screen:-webkit-full-screen .fs-btn { opacity: 1; }
.meet-tile-screen:fullscreen .meet-tile-label,
.meet-tile-screen:-webkit-full-screen .meet-tile-label { opacity: 0.85; }
video:fullscreen, video:-webkit-full-screen {
  background: #000;
  width: 100vw; height: 100vh;
  object-fit: contain;
}

/* Controles inferiores estilo Meet */
.meet-controls {
  display: flex; justify-content: center; align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.meet-btn {
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease,
              transform .12s cubic-bezier(.2,.8,.25,1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden; /* contém o ripple */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.meet-btn:hover:not(:disabled) {
  background: var(--bg-light);
  color: var(--text);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
/* Press: feedback INSTANTÂNEO sem depender de JS */
.meet-btn:active:not(:disabled) {
  transform: scale(0.9);
  transition: transform .06s ease-out;
}
.meet-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.meet-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.3), 0 6px 20px rgba(230,57,70,0.4);
}
.meet-btn.muted {
  background: linear-gradient(135deg, var(--danger), #7f1d1d);
  color: #fff;
  border-color: transparent;
  animation: pulseDanger 1.4s ease-in-out infinite;
}

/* Ícone com leve transição entre estados */
.meet-btn .icon,
.meet-btn svg {
  transition: transform .25s cubic-bezier(.2,.8,.25,1);
}
.meet-btn.active svg,
.meet-btn.muted svg {
  transform: scale(1.08);
}
.meet-btn.muted svg {
  animation: micShake 0.4s ease;
}
@keyframes micShake {
  0%   { transform: scale(1) rotate(0); }
  20%  { transform: scale(1.15) rotate(-8deg); }
  50%  { transform: scale(0.95) rotate(8deg); }
  80%  { transform: scale(1.1) rotate(-4deg); }
  100% { transform: scale(1.08) rotate(0); }
}

/* Bounce ao clicar (Discord-like) — mais pronunciado */
.meet-btn.btn-bounce {
  animation: btnBounce .42s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes btnBounce {
  0%   { transform: scale(1); }
  18%  { transform: scale(0.85); }
  45%  { transform: scale(1.22); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Ripple no clique — efeito de onda sobre o botão */
.meet-btn.btn-bounce::after {
  content: '';
  position: absolute;
  inset: 50% 50% 50% 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple .55s ease-out;
}
@keyframes ripple {
  0%   { width: 0; height: 0; opacity: 0.5; }
  100% { width: 220%; height: 220%; opacity: 0; }
}

/* Estado glowing quando ativa (mic ligado) */
@keyframes activePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230,57,70,0.3), 0 6px 20px rgba(230,57,70,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(230,57,70,0.5), 0 6px 24px rgba(230,57,70,0.6); }
}
.meet-btn.active {
  animation: activePulse 2.4s ease-in-out infinite;
}

@keyframes pulseDanger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

/* Botão ENTRAR — pílula verde vibrante */
.meet-btn-join {
  width: auto;
  padding: 0 24px;
  height: 52px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  border: none;
  border-radius: 999px;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(35,165,89,0.45);
  animation: joinPulse 2.2s ease-in-out infinite;
}
.meet-btn-join:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d9850, #15803d);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(35,165,89,0.6);
}
@keyframes joinPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(35,165,89,0.45), 0 0 0 0 rgba(35,165,89,0.4); }
  50%      { box-shadow: 0 6px 20px rgba(35,165,89,0.45), 0 0 0 12px rgba(35,165,89,0); }
}

/* Botão SAIR — redondo vermelho com ícone centralizado */
.meet-btn-leave {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--danger), #7f1d1d);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 6px 18px rgba(220,38,38,0.5);
}
.meet-btn-leave:hover {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #fff;
  transform: translateY(-2px) scale(1.05) rotate(90deg);
  box-shadow: 0 10px 24px rgba(220,38,38,0.65);
}

/* ========== DOWNLOADS / ITENS ========== */
.download-item {
  display: flex; align-items: center; gap: 16px;
}

/* ========== TUTORIAIS ========== */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
}
.filter-chip:hover { background: var(--bg-mid); color: var(--text); }
.filter-chip.active { background: var(--red); color: #fff; }

.filter-row {
  display: flex; flex-wrap: wrap;
  align-items: end; gap: 14px;
}
.filter-row .filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tutorial-card {
  display: block;
  text-decoration: none; color: inherit;
  transition: var(--transition);
  position: relative;
}
.tutorial-card:hover { transform: translateY(-3px); border-color: rgba(230,57,70,0.3); }

/* ========== TUTORIAIS v2 (mais visual) ========== */
.tut-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.04);
}
.tut-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(230,57,70,0.2);
  border-color: rgba(230,57,70,0.3);
}
.tut-featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.tut-featured-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tut-featured:hover .tut-featured-thumb img { transform: scale(1.05); }
.tut-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.4));
}
.tut-featured-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  background: rgba(230,57,70,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(230,57,70,0.5);
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(230,57,70,0.5); }
  50%      { box-shadow: 0 10px 50px rgba(230,57,70,0.8); }
}
.tut-featured-info {
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.tut-featured-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: rgba(230,57,70,0.2);
  color: var(--red-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  align-self: flex-start;
  border: 1px solid rgba(230,57,70,0.3);
}
.tut-featured-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.tut-featured-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 800px) {
  .tut-featured { grid-template-columns: 1fr; }
}

/* Filtros aprimorados */
.tut-filters {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-dark);
  border-radius: var(--radius);
}
.tut-filter-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.tut-filter-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-right: 6px;
}

/* Gallery cards */
.tut-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tut-card {
  display: block;
  text-decoration: none; color: inherit;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255,255,255,0.04);
}
.tut-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,70,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.tut-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-darkest);
  overflow: hidden;
}
.tut-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tut-card:hover .tut-card-thumb img { transform: scale(1.05); }
.tut-card-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  gap: 8px;
  font-size: 12px;
}
.tut-card-placeholder .icon { opacity: 0.4; }

.tut-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px; height: 52px;
  background: rgba(230,57,70,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(230,57,70,0.5);
}
.tut-card:hover .tut-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.tut-card-video .tut-card-play { opacity: 0.9; }
.tut-card-video:hover .tut-card-play { transform: translate(-50%, -50%) scale(1.1); }

.tut-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tut-card-done {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.tut-card-body { padding: 14px 16px 16px; }
.tut-card-title {
  font-size: 15px;
  line-height: 1.35;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tut-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}

.tut-empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 50px 20px;
  text-align: center;
}
.tut-empty .icon { color: var(--red); opacity: 0.6; margin-bottom: 12px; }
.tut-empty h3 { margin-bottom: 6px; }

/* Tutorial manage pro */
.tut-manage-card {
  border-left: 4px solid var(--red);
}
.tut-manage-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tut-manage-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(230,57,70,0.35);
}
.tut-manage-head h3 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.3px; }

.tut-form { display: flex; flex-direction: column; gap: 16px; }

/* YouTube preview */
.yt-preview {
  margin-top: 10px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 260px;
}
.yt-preview img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.yt-preview-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(230,57,70,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Attachments list */
.atts-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px;
}
.att-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-mid);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: left;
}
.att-icon { font-size: 16px; }
.att-info { flex: 1; min-width: 0; }
.att-name {
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.att-size { font-size: 11px; color: var(--text-dim); }
.tutorial-level {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tutorial-level-beginner { background: rgba(35,165,89,0.2); color: #86EFAC; }
.tutorial-level-intermediate { background: rgba(245,158,11,0.2); color: #FCD34D; }
.tutorial-level-advanced { background: rgba(220,38,38,0.2); color: #FCA5A5; }
.tutorial-done {
  display: flex; align-items: center; gap: 6px;
  color: var(--success); font-size: 13px;
  margin-top: 10px;
}
.tutorial-content {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.video-embed iframe, .video-embed video {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.attachment-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.attachment-link:hover { background: var(--bg-mid); color: var(--text); }
.attachment-link .icon { color: var(--red); }

/* ========== PRÊMIOS ========== */
.award-card {
  padding: 0;
  border-left: 4px solid var(--red);
  overflow: hidden;
}
.award-banner {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}
.award-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.award-content {
  display: flex; gap: 20px;
  padding: 20px;
}
.award-trophy {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.award-info {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.award-info .icon { color: var(--red); margin-top: 2px; flex-shrink: 0; }

.warning-history-item {
  padding: 12px 14px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--bg-light);
}
.warning-history-item.unread { border-left-color: var(--warning); background: rgba(245,158,11,0.08); }

/* ========== ALERTA BROADCAST ========== */
.alert-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: overlayIn 0.25s ease;
}
@keyframes overlayIn {
  from { background: rgba(0,0,0,0); backdrop-filter: blur(0); }
  to   { background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); }
}
.alert-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  text-align: center;
  border: 3px solid var(--danger);
  box-shadow: 0 20px 80px rgba(220,38,38,0.5);
  animation: alertShake 0.8s ease-in-out infinite alternate;
  margin: auto;
}
.alert-modal::-webkit-scrollbar { width: 8px; }
.alert-modal::-webkit-scrollbar-thumb { background: var(--bg-mid); border-radius: 4px; }
.alert-modal::-webkit-scrollbar-thumb:hover { background: var(--danger); }
.sev-warning .alert-modal  { border-color: var(--warning); box-shadow: 0 20px 80px rgba(245,158,11,0.45); animation: alertPulse 1.2s ease-in-out infinite alternate; }
.sev-info    .alert-modal  { border-color: #3b82f6;         box-shadow: 0 20px 80px rgba(59,130,246,0.35); animation: none; }
.sev-update  .alert-modal  {
  border-color: #10b981;
  box-shadow: 0 20px 80px rgba(16,185,129,0.45);
  background: linear-gradient(180deg, rgba(16,185,129,0.06), var(--bg-dark) 60%);
  animation: alertGlowGreen 2s ease-in-out infinite alternate;
}
@keyframes alertGlowGreen {
  from { box-shadow: 0 20px 80px rgba(16,185,129,0.35); }
  to   { box-shadow: 0 20px 100px rgba(16,185,129,0.65); }
}
@keyframes alertShake {
  0%, 100% { transform: translateX(-4px) scale(1); box-shadow: 0 20px 80px rgba(220,38,38,0.5); }
  50%      { transform: translateX( 4px) scale(1.01); box-shadow: 0 20px 100px rgba(220,38,38,0.75); }
}
@keyframes alertPulse {
  from { box-shadow: 0 20px 80px rgba(245,158,11,0.45); }
  to   { box-shadow: 0 20px 100px rgba(245,158,11,0.65); }
}

.alert-icon-wrap {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, var(--danger), #7f1d1d);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: #fff;
  animation: bellShake 0.6s ease-in-out infinite alternate;
}
.sev-warning .alert-icon-wrap { background: linear-gradient(135deg, var(--warning), #b45309); }
.sev-info    .alert-icon-wrap { background: linear-gradient(135deg, #3b82f6, #1e40af); animation: none; }
.sev-update  .alert-icon-wrap {
  background: linear-gradient(135deg, #10b981, #047857);
  animation: sparkleSpin 2.4s ease-in-out infinite;
}
@keyframes sparkleSpin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(8deg); }
}
@keyframes bellShake {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(10deg); }
}

.alert-severity-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
  background: rgba(220,38,38,0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220,38,38,0.4);
}
.sev-warning .alert-severity-tag { background: rgba(245,158,11,0.2); color: #FCD34D; border-color: rgba(245,158,11,0.4); }
.sev-info    .alert-severity-tag { background: rgba(59,130,246,0.2);  color: #93C5FD; border-color: rgba(59,130,246,0.4); }
.sev-update  .alert-severity-tag { background: rgba(16,185,129,0.18); color: #6EE7B7; border-color: rgba(16,185,129,0.45); }
.sev-update  .alert-severity-tag::before { content: "✨ "; }

/* Card "Aviso de Atualização" no admin */
.card-update {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), var(--bg-dark));
}

.alert-title { font-size: 26px; margin-bottom: 14px; letter-spacing: -0.5px; }
.alert-message { color: var(--text-muted); line-height: 1.6; margin-bottom: 26px; white-space: pre-wrap; }
.alert-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}

/* Bloco crítico na warnings.php */
.card-critical {
  border-left: 4px solid var(--danger);
  background: linear-gradient(135deg, rgba(220,38,38,0.08), var(--bg-dark));
}
.alert-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; margin-top: 10px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--danger);
}
.alert-item-warning { border-left-color: var(--warning); }
.alert-item-info { border-left-color: #3b82f6; }

/* ========== SESSÃO DE SUPORTE (v2 profissional) ========== */
.ticket-session-card {
  background: linear-gradient(135deg, rgba(35,165,89,0.08), var(--bg-dark) 60%);
  border: 1px solid rgba(35,165,89,0.2);
  border-left: 4px solid var(--success);
  padding: 0;
  overflow: hidden;
}
.ticket-session-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(90deg, rgba(35,165,89,0.1), transparent);
}
.ticket-session-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(35,165,89,0.2);
  border: 1px solid rgba(35,165,89,0.4);
  color: #86EFAC;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.ticket-session-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 1.2s ease-in-out infinite;
}
.ticket-session-info { flex: 1; }
.ticket-session-info h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.ticket-session-status {
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 12px;
  background: var(--bg-darkest);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.04);
}

.ticket-session-waiting {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-dim);
  text-align: center;
  grid-column: 1 / -1;
}
.ticket-session-waiting .icon { color: var(--success); opacity: 0.7; }

/* Mantém compat com support-session legada */
.support-session {
  border-left: 4px solid var(--success);
  background: linear-gradient(135deg, rgba(35,165,89,0.06), var(--bg-dark));
}
.session-peers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  min-height: 200px;
  background: var(--bg-darkest);
  padding: 20px;
}
.session-tile {
  animation: tileIn 0.35s cubic-bezier(.2,.8,.25,1) both;
}
.session-controls {
  justify-content: center;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Header especial da EQP PULGA */
.eqp-head {
  background: linear-gradient(135deg, rgba(220,38,38,0.18), rgba(245,158,11,0.12));
  border-bottom: 1px solid rgba(245,158,11,0.25);
}
.eqp-head .section-bar-title .icon { color: var(--warning); }

/* ========== MODAL HTML/CSS (substitui alert/confirm/prompt) ========== */
.ec-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ec-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 30px 28px 22px;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  animation: modalPop 0.25s cubic-bezier(.2,.9,.25,1.2);
  text-align: center;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ec-modal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}
.ec-modal-icon-info    { background: linear-gradient(135deg, #3b82f6, #1e40af); box-shadow: 0 6px 16px rgba(59,130,246,0.35); }
.ec-modal-icon-success { background: linear-gradient(135deg, var(--success), #16a34a); box-shadow: 0 6px 16px rgba(35,165,89,0.35); }
.ec-modal-icon-error   { background: linear-gradient(135deg, var(--danger), #7f1d1d); box-shadow: 0 6px 16px rgba(220,38,38,0.4); }
.ec-modal-icon-warning { background: linear-gradient(135deg, var(--warning), #b45309); box-shadow: 0 6px 16px rgba(245,158,11,0.4); }
.ec-modal-icon-question{ background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 6px 16px rgba(230,57,70,0.4); }

.ec-modal-title {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.ec-modal-body {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 14px;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.ec-modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}
.ec-modal-input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
.ec-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  flex-wrap: wrap;
}
.ec-modal-actions .btn { min-width: 100px; justify-content: center; }

/* ========== ENQUETES (admin) ========== */
.poll-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poll-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px 8px 8px;
  transition: border-color .15s ease, background .15s ease;
}
.poll-opt-row:focus-within {
  border-color: rgba(230,57,70,0.45);
  background: rgba(230,57,70,0.04);
}
.poll-opt-idx {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(230,57,70,0.3);
}
.poll-opt-row input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 4px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.poll-opt-row input::placeholder { color: var(--text-dim); }
.poll-opt-rm {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s ease;
}
.poll-opt-rm:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  transform: scale(1.05);
}

/* ========== MONITOR DE ATENDIMENTOS (PRESIDENT) ========== */
.active-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.active-ticket {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--success, #23A559);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: all .15s ease;
}
.active-ticket:hover {
  border-color: rgba(255,255,255,0.12);
  border-left-color: var(--red);
}
.active-ticket-long {
  border-left-color: var(--warning, #F59E0B);
}
.active-ticket-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.active-ticket-id {
  font-family: var(--font-mono, monospace);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
}
.active-ticket-subject {
  flex: 1;
  min-width: 0;
}
.active-ticket-subject strong {
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-ticket-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.12);
  color: var(--warning, #F59E0B);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.active-ticket-long .active-ticket-time {
  background: rgba(220,38,38,0.15);
  color: #FCA5A5;
}
.active-ticket-people {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.active-ticket-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.apt-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.apt-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.active-ticket-arrow {
  color: var(--text-dim);
  margin-top: 14px;
}
.active-ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  gap: 8px;
}
.text-success { color: var(--success, #23A559); font-weight: 600; }

.active-ticket-thread {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(255,255,255,0.1);
}
.att-thread-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.att-msg {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}
.att-msg + .att-msg { border-top: 1px dashed rgba(255,255,255,0.05); }
.att-msg-body { flex: 1; min-width: 0; }
.att-msg-head { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.att-msg-head strong { font-size: 12px; }
.att-msg-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

.att-quick-reply {
  margin-top: 10px;
  padding: 10px;
  background: rgba(230,57,70,0.04);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius-sm);
}
.att-quick-reply textarea {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.att-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

/* ========== CONTATOS AUTORIZADOS ========== */
/* ========== CONTATOS AUTORIZADOS — CARDS PRO ========== */
/* ==================== AUTHORIZED CONTACTS (simple) ==================== */
.auth-contacts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.auth-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  transition: border-color .15s ease;
}
.auth-contact:hover { border-color: rgba(230,57,70,0.25); }
.auth-contact-inactive { opacity: 0.55; }

/* HEADER */
.auth-contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-contact-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.auth-contact-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.auth-contact-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-contact-func {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.2;
  min-width: 0;
}
.auth-contact-func span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-contact-status {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.auth-contact-inactive .auth-contact-status { background: var(--text-dim); }

/* BODY */
.auth-contact-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.auth-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.auth-contact-row-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.auth-contact-row-value {
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
}
.auth-contact-notes {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FOOTER */
.auth-contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: auto;
}
.auth-contact-meta {
  flex: 1;
  min-width: 0;
  color: var(--text-dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-contact-meta strong { color: var(--text); font-weight: 600; }
.auth-contact-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.auth-action {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px !important;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.auth-action:hover { color: var(--text); border-color: rgba(230,57,70,0.35); }
.auth-action-wa:hover { color: var(--success); border-color: rgba(35,165,89,0.45); }
.auth-action-del:hover { color: var(--red); border-color: rgba(230,57,70,0.45); }

/* EDIT FORM (inline toggle) */
.auth-contact-edit {
  padding: 10px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}
.auth-contact-edit .row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.auth-contact-edit .row:last-of-type { margin-bottom: 0; }
.auth-contact-edit .field { margin-bottom: 6px; }
.auth-contact-edit label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ========== USER PICKER (radio cards com avatar) ========== */
.user-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.user-pick-card { cursor: pointer; }
.user-pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.user-pick-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.user-pick-card:hover .user-pick-inner {
  border-color: rgba(230,57,70,0.3);
  background: rgba(230,57,70,0.04);
}
.user-pick-card input:checked ~ .user-pick-inner {
  border-color: var(--red);
  background: rgba(230,57,70,0.08);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.15);
}
.user-pick-info {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.user-pick-name {
  font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-pick-role {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.poll-result-card {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.poll-result-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; margin-bottom: 14px;
}
.poll-results {
  display: flex; flex-direction: column; gap: 8px;
}
.poll-result-row {
  display: grid;
  grid-template-columns: 180px 1fr 90px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
@media (max-width: 640px) {
  .poll-result-row { grid-template-columns: 1fr; }
}
.poll-result-label { color: var(--text); font-weight: 500; }
.poll-result-bar {
  height: 8px;
  background: var(--bg-mid);
  border-radius: 4px;
  overflow: hidden;
}
.poll-result-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  border-radius: 4px;
  transition: width 0.4s ease;
}
.poll-result-num {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========== MODAL DE ENQUETE OBRIGATÓRIA ========== */
.mandatory-poll {
  position: fixed; inset: 0;
  background: radial-gradient(circle at top, rgba(230,57,70,0.14), rgba(0,0,0,0.95) 70%);
  backdrop-filter: blur(14px);
  z-index: 3400;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.mandatory-poll-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  width: 100%; max-width: 520px;
  margin: auto;
  border: 2px solid var(--red);
  box-shadow: 0 20px 60px rgba(230,57,70,0.4);
  animation: modalPop 0.35s cubic-bezier(.2,.9,.25,1.2);
}
.mandatory-poll-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(230,57,70,0.45);
}
.mandatory-poll-tag {
  display: block;
  text-align: center;
  padding: 4px 14px;
  background: rgba(230,57,70,0.18);
  color: var(--red-soft);
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 auto 12px;
  width: fit-content;
}
.mandatory-poll-modal h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.mp-question {
  text-align: center;
  font-size: 14px;
  margin-bottom: 18px;
}

.mp-options {
  display: flex; flex-direction: column; gap: 8px;
}
.mp-option { cursor: pointer; }
.mp-option input { display: none; }
.mp-option-box {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-darkest);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.mp-option:hover .mp-option-box { border-color: rgba(230,57,70,0.3); }
.mp-option input:checked + .mp-option-box {
  border-color: var(--red);
  background: rgba(230,57,70,0.1);
}
.mp-option-marker {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.mp-option input[type="checkbox"] + .mp-option-box .mp-option-marker {
  border-radius: 5px;
}
.mp-option input:checked + .mp-option-box .mp-option-marker {
  border-color: var(--red);
  background: var(--red);
}
.mp-option input:checked + .mp-option-box .mp-option-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.mp-option input[type="radio"]:checked + .mp-option-box .mp-option-marker::after {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.mp-option input[type="checkbox"]:checked + .mp-option-box .mp-option-marker::after {
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.mp-option-text { font-size: 14px; font-weight: 500; }

/* ========== AVALIAÇÃO OBRIGATÓRIA (modal bloqueante) ========== */
.mandatory-rate {
  position: fixed; inset: 0;
  background: radial-gradient(circle at top, rgba(245,158,11,0.12), rgba(0,0,0,0.95) 70%);
  backdrop-filter: blur(14px);
  z-index: 3500;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.mandatory-rate-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 40px 36px 30px;
  width: 100%; max-width: 500px;
  margin: auto;
  text-align: center;
  border: 2px solid var(--warning);
  box-shadow: 0 20px 60px rgba(245,158,11,0.35);
  animation: modalPop 0.35s cubic-bezier(.2,.9,.25,1.2);
}
.mandatory-rate-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--warning), #b45309);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(245,158,11,0.45);
  animation: starPulse 1.5s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.mandatory-rate-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(245,158,11,0.2);
  color: #FCD34D;
  border: 1px solid rgba(245,158,11,0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.mandatory-rate-modal h2 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.mr-block {
  margin-bottom: 18px;
  text-align: left;
}
.mr-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.mr-resolved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 500px) { .mr-resolved { grid-template-columns: 1fr; } }

/* ========== TOASTS ========== */
.ec-toasts {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 3100;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.ec-toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 400px;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(.2,.9,.25,1.2);
  pointer-events: auto;
}
.ec-toast.show { transform: translateX(0); }
.ec-toast-ico { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; }
.ec-toast-ico svg { width: 22px; height: 22px; }
.ec-toast-info    { border-left: 3px solid #3b82f6; }
.ec-toast-info .ec-toast-ico    { color: #60A5FA; }
.ec-toast-success { border-left: 3px solid var(--success); }
.ec-toast-success .ec-toast-ico { color: #86EFAC; }
.ec-toast-error   { border-left: 3px solid var(--danger); }
.ec-toast-error .ec-toast-ico   { color: #FCA5A5; }
.ec-toast-warning { border-left: 3px solid var(--warning); }
.ec-toast-warning .ec-toast-ico { color: #FCD34D; }

/* ========== RING (CHAMADA ENTRANTE) ========== */
.ring-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: overlayIn 0.25s ease;
}
.ring-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 44px 36px 32px;
  width: 100%; max-width: 440px;
  text-align: center;
  border: 3px solid var(--success);
  box-shadow: 0 20px 80px rgba(35,165,89,0.4);
  animation: ringShake 0.5s ease-in-out infinite alternate;
}
@keyframes ringShake {
  0%   { transform: translateX(-3px) scale(1); }
  100% { transform: translateX( 3px) scale(1.01); }
}
.ring-icon-wrap {
  position: relative;
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(35,165,89,0.5);
}
.ring-ripple {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--success);
  opacity: 0;
  animation: ringRipple 1.6s linear infinite;
}
.ring-ripple-2 { animation-delay: 0.8s; }
@keyframes ringRipple {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0;   }
}

.ring-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 10px;
  background: rgba(35,165,89,0.15);
  color: #86EFAC;
  border: 1px solid rgba(35,165,89,0.35);
}
.ring-title {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.ring-msg {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 26px;
}
.ring-actions {
  display: flex; gap: 12px; justify-content: center;
}
.ring-btn-accept {
  background: var(--success); border: none;
  animation: pulseSuccess 1.5s ease-in-out infinite;
}
.ring-btn-accept:hover { background: #16a34a; }
.ring-btn-reject {
  background: var(--danger); border: none;
}
.ring-btn-reject:hover { background: #991b1b; }
@keyframes pulseSuccess {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35,165,89,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(35,165,89,0); }
}

/* Widget de call no topbar */
.call-widget {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(35,165,89,0.15);
  border: 1px solid rgba(35,165,89,0.4);
  color: #86EFAC;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  animation: callPulse 1.8s ease-in-out infinite;
}
.call-widget:hover { background: rgba(35,165,89,0.25); color: #86EFAC; }
.call-widget-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}
@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35,165,89,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(35,165,89,0); }
}

/* ========== PERFIL (LEGADO - mantido para stats e stat-card) ========== */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-card .num {
  font-size: 28px; font-weight: 700; color: var(--red);
}
.stat-card .lbl {
  font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}

/* ========== PERFIL (NOVO) ========== */
.profile-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
  margin-bottom: 14px;
}
.profile-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--red), var(--bg-darkest));
  position: relative;
  background-size: cover;
  background-position: center;
}
.profile-cover-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.profile-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-dark));
}

.cover-preview-current {
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/1;
  background: var(--bg-darkest);
}
.cover-preview-current img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Reviews no perfil */
.reviews-list {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 14px;
}
.review-item {
  display: flex; gap: 12px;
  padding: 14px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
}
.review-body { flex: 1; min-width: 0; }
.review-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.review-head strong { font-size: 14px; }
.review-stars {
  display: flex; gap: 2px; margin-bottom: 6px;
}
.review-stars .star-on { color: var(--warning); }
.review-stars .star-off { color: var(--bg-light); }
.review-comment {
  background: var(--bg-mid);
  border-left: 3px solid rgba(245,158,11,0.3);
  padding: 8px 12px;
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
}
.profile-hero-inner {
  display: flex; gap: 24px;
  padding: 0 28px 24px;
  margin-top: -70px;
  position: relative;
  z-index: 1;
}
.profile-avatar-big {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar-big .avatar {
  width: 140px !important; height: 140px !important;
  font-size: 54px;
  border: 5px solid var(--bg-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.profile-status-dot {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 4px solid var(--bg-dark);
}
.profile-status-dot-small {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-online  { background: var(--success); }
.status-away    { background: var(--warning); }
.status-busy    { background: var(--danger); }
.status-offline { background: var(--text-dim); }

.profile-hero-info { flex: 1; padding-top: 78px; }
.profile-name {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.profile-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.badge-lg {
  padding: 5px 12px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.profile-bio {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 14px;
}
.profile-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--text-dim);
  font-size: 12px;
}
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .icon { color: var(--red); }

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.profile-action-btn:hover {
  background: var(--red-dark, #c52d3d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,0.45);
}

@media (max-width: 700px) {
  .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .profile-hero-info { padding-top: 0; }
  .profile-badges, .profile-meta { justify-content: center; }
}

/* Stats em linha profissional */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pstat {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.pstat:hover { transform: translateY(-2px); border-color: var(--red); }
.pstat-ico {
  width: 44px; height: 44px;
  background: rgba(230,57,70,0.15);
  color: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pstat-num {
  font-size: 22px; font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.pstat-lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Awards chips */
.awards-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.award-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(220,38,38,0.1));
  border: 1px solid rgba(245,158,11,0.3);
  color: #FCD34D;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.award-chip .icon { color: var(--warning); }

/* Abas do perfil */
.profile-tabs {
  display: flex; gap: 4px;
  margin: 20px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}
.profile-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.profile-pane { display: none; animation: fadeUp 0.25s ease; }
.profile-pane.active { display: block; }

/* Avatar edit aprimorado */
.avatar-edit-pro {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.avatar-preview .avatar {
  width: 120px !important; height: 120px !important;
  font-size: 48px;
  border: 4px solid var(--bg-darkest);
}
.avatar-form-pro {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.avatar-form-pro input[type="file"] {
  padding: 8px 12px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
}

/* Support stats no perfil */
.support-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.sstat {
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--red);
}
.sstat-ok { border-left-color: var(--success); }
.sstat-warn { border-left-color: var(--warning); }
.sstat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.sstat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.sstat-bar {
  height: 4px;
  background: var(--bg-mid);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.sstat-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.sstat-bar-approval { background: var(--warning); }

/* Histórico de turnos no perfil */
.shift-history {
  display: flex; flex-direction: column; gap: 6px;
}
.shift-hist-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--bg-light);
  font-size: 13px;
}
.shift-hist-row.shift-hist-open {
  border-left-color: var(--success);
  background: rgba(35,165,89,0.06);
}
.shift-hist-dot {
  width: 8px; height: 8px;
  background: var(--bg-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.shift-hist-open .shift-hist-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 1.5s ease-in-out infinite;
}
.shift-hist-dates { flex: 1; }
.shift-hist-dur {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-mid);
  border-radius: 999px;
}

/* Listas expansíveis (5 inicial + ver todos) */
.expandable-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.expandable-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.expandable-toggle:hover {
  background: var(--bg-mid);
  color: var(--red);
  border-color: rgba(230,57,70,0.3);
}
.expandable-toggle .el-arrow {
  transition: transform 0.2s ease;
}
.expandable-extra { display: none; }
.expandable-list.expanded .expandable-extra {
  display: flex;
  animation: fadeIn 0.25s ease;
}
/* Review-item é grid — usa display default */
.reviews-list.expanded .expandable-extra { display: flex; }

/* ========== TURNO DE SUPORTE (tickets/index) ========== */
.shift-card {
  background: linear-gradient(135deg, rgba(35,165,89,0.06), var(--bg-dark) 60%);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 4px solid var(--bg-light);
  transition: border-left-color 0.3s ease;
}
.shift-card:has(#shift-checkbox:checked) {
  border-left-color: var(--success);
  background: linear-gradient(135deg, rgba(35,165,89,0.1), var(--bg-dark) 60%);
}
.shift-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 14px;
}
.shift-indicator {
  display: flex; align-items: center; gap: 14px;
}
.shift-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-light);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.shift-dot-on {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulseDot 1.5s ease-in-out infinite;
}
.shift-status-label {
  font-size: 16px;
  font-weight: 600;
}
.shift-status-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Toggle switch */
.shift-toggle {
  position: relative;
  display: inline-block;
  width: 64px; height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.shift-toggle input { display: none; }
.shift-toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  transition: background 0.25s ease;
}
.shift-toggle-slider::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.shift-toggle input:checked + .shift-toggle-slider {
  background: linear-gradient(135deg, var(--success), #16a34a);
  border-color: transparent;
}
.shift-toggle input:checked + .shift-toggle-slider::after {
  left: 35px;
}

.shift-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.shift-stat {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}
.shift-stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.shift-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.shift-stat-deadline .shift-stat-val {
  color: var(--warning);
  font-size: 14px;
}

/* ========== HOME — ATALHOS (carousel horizontal) ========== */
.quick-carousel-shell {
  position: relative;
  margin-bottom: 20px;
  padding: 0 44px; /* espaço pras setas laterais */
}
.home-quick-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  scrollbar-width: none; /* firefox */
}
.home-quick-actions::-webkit-scrollbar { display: none; }

.quick-action {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.quick-action:hover {
  transform: translateY(-3px) rotate(-1.2deg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.quick-action .icon {
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-action:hover .icon {
  transform: rotate(360deg);
}
.quick-action strong { display: block; margin-bottom: 2px; }

.quick-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-mid, #1a1d22);
  color: var(--text, #f9fafb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.quick-carousel-arrow:hover { background: var(--red, #E63946); border-color: var(--red, #E63946); }
.quick-carousel-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.quick-carousel-prev { left: 0; }
.quick-carousel-next { right: 0; }

@media (max-width: 600px) {
  .quick-carousel-shell { padding: 0 36px; }
  .quick-action { flex: 0 0 230px; }
}

.voice-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success, #23A559);
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(35,165,89,0.8);
  animation: voice-pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes voice-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}
.voice-mini-stack {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.voice-mini-av {
  display: inline-flex;
  margin-right: -8px;
  border: 2px solid var(--bg-dark, #1E1F22);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark, #1E1F22);
}
.voice-mini-av:last-child { margin-right: 0; }
.voice-mini-av .avatar {
  border: none !important;
}
.voice-mini-more {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 26px; height: 26px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 13px;
  background: rgba(230,57,70,0.15);
  color: var(--red);
  border: 2px solid var(--bg-dark, #1E1F22);
  font-size: 11px;
  font-weight: 700;
}

/* ========== ONBOARDING MODAL ========== */
.onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.onboarding-modal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(230,57,70,0.3);
  animation: fadeUp 0.3s ease-out;
  margin: auto;
}
.onboarding-modal::-webkit-scrollbar { width: 8px; }
.onboarding-modal::-webkit-scrollbar-track { background: transparent; }
.onboarding-modal::-webkit-scrollbar-thumb {
  background: var(--bg-mid);
  border-radius: 4px;
}
.onboarding-modal::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Termo de consentimento no onboarding */
.onb-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(230,57,70,0.06);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius-sm);
  margin: 14px 0 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.onb-consent:hover { border-color: rgba(230,57,70,0.45); }
.onb-consent input { position: absolute; opacity: 0; pointer-events: none; }
.onb-consent-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-darkest);
  color: transparent;
  margin-top: 1px;
  transition: all .15s ease;
}
.onb-consent input:checked ~ .onb-consent-box {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.onb-consent-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.onb-consent-text strong { color: var(--text); }
.onb-consent-text em { color: var(--red); font-style: normal; }
#onb-submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========== MODERAÇÃO (chat + voz) ========== */
.mod-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.mod-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.mod-controls {
  display: flex; gap: 4px;
  margin-top: 6px;
}

.restriction-banner {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #FCA5A5;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

/* ========== MODO JANELA (voice popup ativo) ========== */
.window-mode-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(230,57,70,0.04));
  border: 1px solid rgba(230,57,70,0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
  animation: window-mode-pulse 2s ease-in-out infinite;
}
@keyframes window-mode-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.0); }
  50% { box-shadow: 0 0 0 3px rgba(230,57,70,0.15); }
}
.window-mode-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(230,57,70,0.2);
  color: var(--red);
}
.window-mode-text { flex: 1; min-width: 0; }
.window-mode-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.window-mode-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.muted-indicator {
  color: var(--danger);
  font-size: 11px;
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px;
}

/* Compartilhamento de tela na voz */
.voice-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.voice-screen {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--bg-mid);
  position: relative;
}
.voice-screen video { width: 100%; display: block; }
.voice-screen .label {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.post-card { transition: var(--transition); }
.post-card:hover { transform: translateY(-1px); border-color: rgba(230,57,70,0.2); }
.post-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
}
.post-meta { flex: 1; }
.post-author {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.post-date { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.post-pinned { color: var(--red); }
.post-title { font-size: 17px; margin-bottom: 8px; }
.post-body { color: var(--text-muted); line-height: 1.6; }

.post-media {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-darkest);
}
.post-media img { width: 100%; max-height: 500px; object-fit: cover; display: block; }
.post-media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.post-media-video iframe {
  width: 100%; height: 100%;
  border: 0;
}
.post-file-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.04);
}
.post-file-link:hover { background: var(--bg-mid); color: var(--text); border-color: var(--red); }
.post-file-link > span { flex: 1; }
.post-file-link .icon:first-child { color: var(--red); }

/* ========== POST V2 (layout profissional) ========== */
.post-v2 {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-v2:hover { border-color: rgba(255,255,255,0.08); }
.post-v2-pinned {
  border-color: rgba(230,57,70,0.25);
  box-shadow: 0 2px 12px rgba(230,57,70,0.08);
}
.post-v2-pin-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(220,38,38,0.05));
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(230,57,70,0.15);
}
.post-v2-pin-bar .icon { color: var(--red); }

/* HEADER */
.post-v2-head {
  padding: 16px 20px 12px;
}
.post-v2-author {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}
.post-v2-author:hover { opacity: 0.85; }
.post-v2-author:hover .post-v2-author-name { color: var(--red); }
.post-v2-author-info { line-height: 1.3; }
.post-v2-author-name {
  font-weight: 700;
  font-size: 15px;
  transition: color 0.15s ease;
}
.post-v2-author-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.post-v2-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 8px;
  border: 1px solid;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.02);
}
.post-v2-time {
  font-size: 12px;
  color: var(--text-dim);
}

/* Botões de gerenciamento do post (edit/delete) */
.post-v2-head { display: flex; align-items: center; gap: 12px; }
.post-v2-author { flex: 1; }
.post-v2-manage {
  display: flex; gap: 4px;
  flex-shrink: 0;
}
.post-v2-manage-btn {
  width: 32px; height: 32px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.post-v2-manage-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* BODY */
.post-v2-body {
  padding: 0 20px 14px;
}
.post-v2-title {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text);
}
.post-v2-text {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* CONTEÚDO (wrapper que controla layout texto+mídia) */
.post-v2-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* MÍDIA */
.post-v2-media {
  display: block;
  background: var(--bg-darkest);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
}
.post-v2-media-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-v2-media-image:hover img { transform: scale(1.02); }
.post-v2-media-video {
  position: relative;
  aspect-ratio: 16/9;
}
.post-v2-media-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ====== LAYOUTS DE MÍDIA ====== */
/* Tamanho 50%: mídia ocupa metade, centralizada */
.post-v2-size-50 .post-v2-media {
  max-width: 50%;
  margin: 10px auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
}
.post-v2-size-50 .post-v2-media-image img { max-height: 340px; }

/* Posição top/bottom com tamanho 100%: empilhado full */
.post-v2-layout-top.post-v2-size-100 .post-v2-content,
.post-v2-layout-bottom.post-v2-size-100 .post-v2-content {
  display: block;
}

/* Posição LEFT/RIGHT: layout lado-a-lado em grid 1:1 */
.post-v2-layout-left .post-v2-content,
.post-v2-layout-right .post-v2-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.post-v2-layout-left .post-v2-media,
.post-v2-layout-right .post-v2-media {
  max-width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,0.03);
}
.post-v2-layout-right .post-v2-media {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.03);
}
.post-v2-layout-left .post-v2-body,
.post-v2-layout-right .post-v2-body {
  padding: 16px 20px;
}
.post-v2-layout-left .post-v2-media-image img,
.post-v2-layout-right .post-v2-media-image img {
  height: 100%;
  max-height: none;
  min-height: 220px;
}
@media (max-width: 700px) {
  .post-v2-layout-left .post-v2-content,
  .post-v2-layout-right .post-v2-content {
    grid-template-columns: 1fr;
  }
}

/* ANEXO */
.post-v2-file {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 20px;
  padding: 12px 16px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}
.post-v2-file:hover {
  border-color: var(--red);
  background: rgba(230,57,70,0.05);
}
.post-v2-file-ico {
  width: 40px; height: 40px;
  background: rgba(230,57,70,0.12);
  color: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-v2-file-info { flex: 1; min-width: 0; }
.post-v2-file-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-v2-file-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.post-v2-file-dl { color: var(--text-dim); flex-shrink: 0; }
.post-v2-file:hover .post-v2-file-dl { color: var(--red); }

/* STATS LINE */
.post-v2-stats {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--text-muted);
}
.post-v2-stat {
  display: inline-flex; align-items: center; gap: 6px;
}
.post-v2-stat strong { color: var(--text); font-weight: 600; }
.post-v2-stat-ico {
  display: inline-flex;
  width: 22px; height: 22px;
  background: rgba(230,57,70,0.15);
  color: var(--red);
  border-radius: 50%;
  align-items: center; justify-content: center;
}

/* ACTIONS */
.post-v2-actions {
  display: flex;
  padding: 6px 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
  gap: 4px;
}
.post-v2-action {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.post-v2-action:hover { background: var(--bg-mid); color: var(--text); }
.post-v2-action.active { color: var(--red); }
.post-v2-action.active .icon { fill: var(--red); stroke: var(--red); }
.post-v2-action.post-action-like.active .icon { animation: heartPop 0.4s ease; }

/* Pílula de contador no botão */
.count-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px;
  padding: 0 7px;
  background: var(--bg-mid);
  color: var(--text-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.count-pill[hidden] { display: none; }
.post-v2-action.active .count-pill { background: var(--red); color: #fff; }

/* Enquete no feed da home */
.post-v2-poll { border-left: 3px solid var(--red); }
.feed-poll {
  padding: 14px 20px 18px;
}
.feed-poll-form {
  display: flex; flex-direction: column; gap: 8px;
}
.feed-poll-voted-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(35,165,89,0.15);
  color: #86EFAC;
  border: 1px solid rgba(35,165,89,0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.poll-result-mine .poll-result-label { color: var(--red); font-weight: 700; }
.poll-result-mine .poll-result-fill { background: linear-gradient(90deg, var(--red), var(--red-dark)); box-shadow: 0 0 8px rgba(230,57,70,0.4); }

/* COMENTÁRIOS no novo layout */
.post-v2-comments {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 14px 20px;
  background: var(--bg-darkest);
}
.post-v2-comment-form {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  margin-top: 10px;
  transition: border-color 0.15s ease;
}
.post-v2-comment-form:focus-within { border-color: var(--red); }
.post-v2-comment-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--text);
}
.post-v2-comment-form input:focus { outline: none; box-shadow: none; }
.post-v2-comment-form .btn {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* Responsivo */
@media (max-width: 560px) {
  .post-v2-body, .post-v2-head, .post-v2-stats, .post-v2-comments { padding-left: 14px; padding-right: 14px; }
  .post-v2-title { font-size: 17px; }
  .post-v2-text { font-size: 14px; }
  .post-v2-file { margin: 12px 14px; }
}

.post-actions {
  display: flex; gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.post-action {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.post-action:hover { background: var(--bg-mid); color: var(--text); }
.post-action.active { color: var(--red); }
.post-action.active .icon { fill: var(--red); stroke: var(--red); }
.post-action-like:hover { color: var(--red); }
.post-action-like.active .icon { animation: heartPop 0.4s ease; }
@keyframes heartPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.comment-form { position: relative; }
.comment-form-avatar { display: inline-flex; }
.comment-form input[type="text"] { flex: 1; }

.post-comments {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.comments-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.comment-item {
  display: flex; gap: 10px;
  background: var(--bg-darkest);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.comment-body { flex: 1; }
.comment-head {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 4px;
}
.comment-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.comment-form {
  display: flex; gap: 8px;
}
.comment-form input[type="text"] { flex: 1; }

/* ---------- Animações ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero, .section, .cta-final { animation: fadeUp 0.6s ease-out; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px; }
  .navbar { padding: 16px 5%; }
  .navbar nav { gap: 14px; }
  .navbar nav a:not(.btn) { display: none; }
  .hero { padding: 60px 5% 50px; }
  .section { padding: 50px 5%; }
  .hero-stats { gap: 30px; }
}

/* ==================== PLAY RAT (Play Store CRUD) ==================== */
.play-rat-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .play-rat-form .row { grid-template-columns: 1fr; }
}
.play-rat-form .field { display: flex; flex-direction: column; gap: 6px; }
.play-rat-form .field label { font-size: 12px; color: var(--text-dim); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.play-rat-form input[type="text"],
.play-rat-form input[type="number"],
.play-rat-form input[type="file"],
.play-rat-form select,
.play-rat-form textarea {
  width: 100%;
  background: var(--bg-darkest);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
}
.play-rat-form input:focus,
.play-rat-form select:focus,
.play-rat-form textarea:focus { outline: none; border-color: rgba(230,57,70,0.5); }

.pr-reviews-section {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.pr-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.pr-reviews-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pr-reviews-head h3::before {
  content: "★";
  color: #fbbf24;
  font-size: 14px;
}
.pr-reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px;
  background: var(--bg-dark);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-dim);
  text-align: center;
  font-size: 12.5px;
}
.pr-reviews-empty-icon { font-size: 22px; }

.pr-reviews-list { display: flex; flex-direction: column; gap: 10px; }

.pr-review-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px 12px;
  padding: 12px 12px 12px 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  transition: border-color .15s ease, transform .15s ease;
  animation: pr-review-in .22s ease;
}
.pr-review-row:hover { border-color: rgba(255,255,255,0.10); }
.pr-review-row:focus-within { border-color: rgba(230,57,70,0.4); }
@keyframes pr-review-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.pr-review-row .pr-review-name { grid-column: 1; grid-row: 1; }
.pr-review-row .pr-review-stars-input { grid-column: 2; grid-row: 1; }
.pr-review-row textarea { grid-column: 1 / -1; grid-row: 2; resize: vertical; min-height: 56px; }

.pr-review-row input[type="text"],
.pr-review-row textarea {
  background: var(--bg-darkest) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
}
.pr-review-row input[type="text"]:focus,
.pr-review-row textarea:focus { border-color: rgba(230,57,70,0.4) !important; }

/* Star input clicável */
.pr-review-stars-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.pr-stars-picker {
  display: inline-flex;
  gap: 2px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.pr-stars-picker .pr-pick {
  color: rgba(255,255,255,0.18);
  transition: color .12s ease, transform .12s ease;
}
.pr-stars-picker:hover .pr-pick { color: rgba(255,255,255,0.30); }
.pr-stars-picker .pr-pick.on,
.pr-stars-picker:hover .pr-pick.hover-on { color: #fbbf24; }
.pr-stars-picker .pr-pick:hover { transform: scale(1.15); }
.pr-stars-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Botão remover review */
.pr-review-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px; height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px !important;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pr-review-del:hover {
  background: rgba(230,57,70,0.15);
  border-color: rgba(230,57,70,0.45);
  color: #fca5a5;
}

/* Botão "+ Adicionar" */
.pr-review-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230,57,70,0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(230,57,70,0.35) !important;
  font-weight: 600;
}
.pr-review-add:hover {
  background: rgba(230,57,70,0.18) !important;
  border-color: rgba(230,57,70,0.55) !important;
  color: #fff !important;
}

@media (max-width: 560px) {
  .pr-review-row { grid-template-columns: 1fr; }
  .pr-review-row .pr-review-name,
  .pr-review-row .pr-review-stars-input { grid-column: 1; }
  .pr-review-row .pr-review-stars-input { grid-row: 2; }
  .pr-review-row textarea { grid-row: 3; }
}

/* ---- Toolbar acima da listagem ---- */
.pr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.pr-toolbar-left { display: flex; align-items: center; gap: 10px; }
.pr-toolbar-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pr-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(230,57,70,0.15);
  color: #fca5a5;
  border: 1px solid rgba(230,57,70,0.30);
}
.pr-toolbar-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0 14px;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
  color: var(--text-dim);
  transition: var(--transition);
}
.pr-toolbar-search:focus-within {
  border-color: rgba(230,57,70,0.4);
  color: var(--text);
}
.pr-toolbar-search input {
  flex: 1;
  background: transparent;
  border: none !important;
  padding: 9px 0 !important;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
@media (max-width: 560px) {
  .pr-toolbar { flex-direction: column; align-items: stretch; }
  .pr-toolbar-search { max-width: 100%; }
}

/* ---- Listing list (rows) ---- */
.play-rat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.play-rat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.play-rat-row:hover {
  border-color: rgba(230,57,70,0.30);
  background: var(--bg-mid);
}
.play-rat-row-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-darkest);
  flex-shrink: 0;
}
.play-rat-row-icon.play-rat-icon-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.play-rat-row-identity {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.play-rat-row-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-rat-row-company {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-rat-row-rating {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.play-rat-row-meta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.play-rat-row-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.play-rat-row-meta-item strong { color: var(--text); font-weight: 700; }
.play-rat-row-btn-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.2px;
}
.play-rat-row-btn-pill.is-install {
  color: #86efac;
  background: rgba(35,165,89,0.10);
  border-color: rgba(35,165,89,0.30);
}
.play-rat-row-btn-pill.is-update {
  color: #fbbf24;
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.30);
}
.play-rat-row-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .play-rat-row { flex-wrap: wrap; }
  .play-rat-row-rating { order: 4; }
  .play-rat-row-meta   { order: 5; }
  .play-rat-row-actions { order: 6; margin-left: auto; }
}
@media (max-width: 560px) {
  .play-rat-row { padding: 10px 12px; gap: 10px; }
  .play-rat-row-meta { gap: 8px; flex-wrap: wrap; }
  .play-rat-row-actions { width: 100%; justify-content: flex-end; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.04); }
}

/* Mantém a antiga grid removida (compat se algum lugar usar) */
.play-rat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.play-rat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 80%),
    var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.play-rat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230,57,70,0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.play-rat-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.play-rat-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-darkest);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.play-rat-icon-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-darkest), var(--bg-mid));
}
.play-rat-card-info { flex: 1; min-width: 0; }
.play-rat-card-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-rat-card-company {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.play-rat-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.pr-stars { display: inline-flex; color: #fbbf24; gap: 1px; }
.pr-star { display: block; }
.pr-star-off { color: rgba(255,255,255,0.18); }
.pr-rating-num { font-weight: 700; color: var(--text); }
.pr-rating-count { color: var(--text-dim); }

.play-rat-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 8px;
}
.pr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  min-width: 0;
}
.pr-stat-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pr-stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-rat-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.play-rat-card-link:hover {
  color: var(--text);
  border-color: rgba(230,57,70,0.3);
}
.play-rat-card-link svg { flex-shrink: 0; opacity: 0.7; }
.pr-link-text {
  flex: 1; min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-rat-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.play-rat-card-actions .btn {
  padding: 8px 12px;
  font-size: 12.5px;
  flex: 1;
  justify-content: center;
}
.play-rat-card-actions .btn-icon-only { flex: 0 0 auto; }

.btn-icon-only {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-surface {
  background: var(--bg-darkest);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}
.btn-surface:hover { border-color: rgba(230,57,70,0.4); transform: translateY(-1px); }
.copy-btn.is-copied { background: var(--success, #23A559) !important; }

/* ---- Empty states ---- */
.pr-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-dark);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text-dim);
}
.pr-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--bg-darkest);
  color: var(--red);
  margin-bottom: 14px;
  font-size: 28px;
}
.pr-empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.pr-empty p { margin: 0; font-size: 13px; }
.pr-empty strong { color: var(--text); }

/* ---- Play Rat slim header ---- */
.pr-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(230,57,70,0.10) 0%, rgba(230,57,70,0) 55%),
    var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.pr-header::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), transparent);
  opacity: 0.85;
}
.pr-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pr-header-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red) 0%, #b32635 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(230,57,70,0.30);
}
.pr-header-text { min-width: 0; }
.pr-header-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pr-header-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.pr-header > .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .pr-header { flex-direction: column; align-items: stretch; }
  .pr-header-left { justify-content: flex-start; }
  .pr-header > .btn { width: 100%; justify-content: center; }
}

/* ---- Modal genérico (criar / editar) ---- */
.pr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.pr-modal[hidden] { display: none !important; }
.pr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,10,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: pr-fade .18s ease;
}
.pr-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: pr-pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pr-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pr-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.pr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.pr-modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pr-modal-close {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px !important;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  padding: 0;
}
.pr-modal-close:hover { background: var(--bg-darkest); color: var(--text); border-color: rgba(230,57,70,0.4); }

.pr-modal-card > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pr-modal-body {
  padding: 18px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-width: 0;
}
.pr-modal-body * { box-sizing: border-box; }
.pr-modal-body .field { min-width: 0; max-width: 100%; }
.pr-modal-body .pr-dropzone { width: 100%; max-width: 100%; }
.pr-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-darkest);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pr-modal-foot .pr-foot-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.pr-modal-foot .pr-foot-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Inputs e file inputs dentro do modal */
.pr-modal .play-rat-form .row { margin-bottom: 12px; }
.pr-modal .play-rat-form .field label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Dropzone com preview (icon + apk) */
.pr-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
    var(--bg-darkest);
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  min-height: 88px;
}
.pr-dropzone:hover {
  border-color: rgba(230,57,70,0.55);
  background:
    linear-gradient(180deg, rgba(230,57,70,0.06), transparent),
    var(--bg-darkest);
}
.pr-dropzone.is-drag {
  border-style: solid;
  border-color: var(--red);
  background: rgba(230,57,70,0.10);
}
.pr-dropzone.is-filled {
  border-style: solid;
  border-color: rgba(35,165,89,0.35);
  background:
    linear-gradient(180deg, rgba(35,165,89,0.04), transparent),
    var(--bg-darkest);
}

/* Esconde o native input por completo — sem "Nenhum arquivo escolhido" leak */
.pr-dz-input { display: none !important; }

.pr-dz-preview {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.pr-dz-icon-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pr-dz-icon-preview img[hidden] { display: none !important; }
.pr-dz-apk-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(22,163,74,0.35);
}
.pr-dropzone.is-filled .pr-dz-preview {
  box-shadow: inset 0 0 0 1px rgba(35,165,89,0.35), 0 4px 12px rgba(0,0,0,0.3);
}
.pr-dz-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pr-dz-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.pr-dz-name {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  display: block;
  max-width: 100%;
  min-width: 0;
}
.pr-dz-info { overflow: hidden; min-width: 0; }
.pr-dz-info > * { max-width: 100%; }
.pr-dz-name a { color: #86efac; text-decoration: none; font-weight: 600; }
.pr-dz-name a:hover { text-decoration: underline; }

/* Microbadge "trocar" quando filled */
.pr-dropzone.is-filled .pr-dz-title { display: flex; align-items: center; gap: 8px; }
.pr-dropzone.is-filled .pr-dz-title::after {
  content: "Pronto";
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(35,165,89,0.15);
  border: 1px solid rgba(35,165,89,0.35);
  padding: 2px 7px;
  border-radius: 999px;
}

.pr-dz-clear {
  position: relative;
  z-index: 2;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px !important;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition);
}
.pr-dz-clear:hover {
  background: rgba(230,57,70,0.18);
  border-color: rgba(230,57,70,0.55);
  color: #fca5a5;
}
.pr-modal .pr-reviews-section {
  background: var(--bg-darkest);
  margin-top: 14px;
}
.pr-modal .pr-reviews-head h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .pr-modal { padding: 0; }
  .pr-modal-card { border-radius: 0; max-height: 100vh; height: 100vh; width: 100%; }
  .pr-modal-foot { flex-direction: column; align-items: stretch; }
  .pr-modal-foot .pr-foot-actions { width: 100%; justify-content: stretch; }
  .pr-modal-foot .pr-foot-actions .btn { flex: 1; justify-content: center; }
}

/* ==================== KAIZEN BYPASS — status pills ==================== */
.kz-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.kz-status-build {
  color: #fbbf24;
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.35);
}
.kz-status-done {
  color: #86efac;
  background: rgba(35,165,89,0.12);
  border-color: rgba(35,165,89,0.40);
}
.kz-status-error {
  color: #fca5a5;
  background: rgba(230,57,70,0.12);
  border-color: rgba(230,57,70,0.40);
}

.kz-spin {
  width: 10px; height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: kz-rotate 0.9s linear infinite;
  display: inline-block;
}
@keyframes kz-rotate { to { transform: rotate(360deg); } }

.kz-publish-btn {
  background: rgba(35,165,89,0.12) !important;
  color: #86efac !important;
  border: 1px solid rgba(35,165,89,0.40) !important;
}
.kz-publish-btn:hover {
  background: rgba(35,165,89,0.22) !important;
  border-color: rgba(35,165,89,0.60) !important;
  color: #fff !important;
}

/* ==================== ENGENHARIAS ==================== */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.eng-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.eng-card:hover {
  border-color: rgba(230,57,70,0.30);
  transform: translateY(-2px);
}
.eng-card-cover {
  position: relative;
  height: 140px;
  background: var(--bg-darkest);
  overflow: hidden;
}
.eng-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eng-card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-darkest), var(--bg-mid));
}
.eng-level-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.eng-level-iniciante     { color: #86efac; border-color: rgba(35,165,89,0.5); }
.eng-level-intermediario { color: #fbbf24; border-color: rgba(245,158,11,0.5); }
.eng-level-avancado      { color: #fca5a5; border-color: rgba(230,57,70,0.5); }

.eng-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}
.eng-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eng-card-summary {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eng-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-top: auto;
  padding-top: 8px;
}
.eng-card-actions {
  display: flex;
  gap: 6px;
  padding: 0 14px 14px;
}
.eng-card-actions .btn-sm { padding: 6px 12px; }
.eng-card-actions .btn-sm:first-child { flex: 1; justify-content: center; }

/* ---- Modal de leitura ---- */
.eng-read-card { width: min(820px, 100%); }
.eng-read-summary {
  font-size: 14px;
  color: var(--text-dim);
  border-left: 3px solid var(--red);
  padding: 6px 12px;
  background: var(--bg-darkest);
  border-radius: 0 8px 8px 0;
}
.eng-read-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: normal;
}
.eng-read-content br { display: block; content: ""; margin-top: 6px; }

/* ==========================================================
   ANIMAÇÕES GLOBAIS DE BOTÕES DE AÇÃO
   - .is-clicking: ripple + leve scale ao clicar
   - .is-loading: spinner sobreposto enquanto a ação processa
   ========================================================== */
.btn,
.copy-btn,
.pr-edit-btn,
.pr-delete-btn,
.kz-publish-btn,
.kz-finalize-btn,
.kz-delete-btn,
.auth-action {
  position: relative;
}
.btn.is-clicking,
.copy-btn.is-clicking,
.pr-edit-btn.is-clicking,
.pr-delete-btn.is-clicking,
.kz-publish-btn.is-clicking,
.kz-finalize-btn.is-clicking,
.kz-delete-btn.is-clicking,
.auth-action.is-clicking {
  overflow: hidden;
  animation: btnPress .35s cubic-bezier(.34, 1.56, .64, 1);
}
.btn.is-clicking::after,
.copy-btn.is-clicking::after,
.pr-edit-btn.is-clicking::after,
.pr-delete-btn.is-clicking::after,
.kz-publish-btn.is-clicking::after,
.kz-finalize-btn.is-clicking::after,
.kz-delete-btn.is-clicking::after,
.auth-action.is-clicking::after {
  content: '';
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: btnRipple .55s ease-out;
}
@keyframes btnPress {
  0%   { transform: scale(1); }
  40%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
@keyframes btnRipple {
  0%   { width: 0; height: 0; opacity: 0.5; }
  100% { width: 220%; height: 220%; opacity: 0; }
}

.btn.is-loading,
.copy-btn.is-loading,
.pr-edit-btn.is-loading,
.pr-delete-btn.is-loading,
.kz-publish-btn.is-loading,
.kz-finalize-btn.is-loading,
.kz-delete-btn.is-loading,
.auth-action.is-loading {
  color: transparent !important;
  pointer-events: none;
  cursor: progress;
  overflow: hidden;
}
.btn.is-loading > *,
.copy-btn.is-loading > *,
.pr-edit-btn.is-loading > *,
.pr-delete-btn.is-loading > *,
.kz-publish-btn.is-loading > *,
.kz-finalize-btn.is-loading > *,
.kz-delete-btn.is-loading > *,
.auth-action.is-loading > * {
  visibility: hidden;
}
.btn.is-loading::before,
.copy-btn.is-loading::before,
.pr-edit-btn.is-loading::before,
.pr-delete-btn.is-loading::before,
.kz-publish-btn.is-loading::before,
.kz-finalize-btn.is-loading::before,
.kz-delete-btn.is-loading::before,
.auth-action.is-loading::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ==================== PLANOS VIP — estilização inline aplicada via vip_username_html() ==================== */
.vip-name-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.vip-name-icon svg {
  width: 14px; height: 14px;
  vertical-align: middle;
}
.vip-name-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Borda + glow do avatar quando o usuário tem plano VIP — aplicado via inline
   style nos elementos que usam `data-vip-border` e `data-vip-glow="1"`. */
/* Borda + glow estáticos só quando NÃO há efeito animado — senão o
   `!important` aqui bloquearia os keyframes do efeito. */
.avatar[data-vip-border]:not([data-vip-effect]) {
  box-shadow: 0 0 0 2px var(--vip-border, #FFD700) !important;
}
.avatar[data-vip-glow="1"]:not([data-vip-effect]) {
  box-shadow: 0 0 0 2px var(--vip-border, #FFD700), 0 0 16px var(--vip-border, #FFD700) !important;
}

/* =============================================================
   ✨ VIP EFFECTS — Discord-style cosmetics
   Cada efeito anima box-shadow do avatar (chamas, gelo, etc.)
   e text-shadow do nome. Pseudo-elementos foram evitados pra
   não conflitar com `.avatar { overflow:hidden }` da imagem.
   ============================================================= */

/* Reduz movimento pra quem tem prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .avatar.vip-fx,
  .vip-name-text.vip-name-fx { animation: none !important; }
}

/* ---- 🔥 Fire ---------------------------------------------- */
@keyframes vipFxFire {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FB923C),
      0 0 12px 2px rgba(255, 90, 0, 0.75),
      0 -8px 18px 3px rgba(255, 150, 0, 0.55),
      0 -14px 22px 5px rgba(255, 200, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FB923C),
      0 0 18px 4px rgba(255, 110, 0, 0.95),
      0 -14px 26px 6px rgba(255, 170, 0, 0.75),
      0 -22px 32px 9px rgba(255, 220, 80, 0.5),
      0 -30px 40px 12px rgba(255, 240, 130, 0.25);
  }
}
.avatar.vip-fx-fire { animation: vipFxFire 1.4s ease-in-out infinite !important; }
@keyframes vipFxNameFire {
  0%, 100% { text-shadow: 0 0 4px rgba(255,120,0,.6), 0 0 10px rgba(255,80,0,.4); }
  50%      { text-shadow: 0 0 8px rgba(255,150,0,.85), 0 0 18px rgba(255,90,0,.6); }
}
.vip-name-fx-fire { animation: vipFxNameFire 1.4s ease-in-out infinite; }

/* ---- ❄️ Ice ----------------------------------------------- */
@keyframes vipFxIce {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #7DD3FC),
      0 0 10px 2px rgba(125, 211, 252, 0.7),
      0 0 22px 6px rgba(186, 230, 253, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #7DD3FC),
      0 0 16px 4px rgba(125, 211, 252, 0.95),
      0 0 30px 9px rgba(186, 230, 253, 0.65),
      0 0 44px 14px rgba(224, 242, 254, 0.3);
  }
}
.avatar.vip-fx-ice { animation: vipFxIce 2.6s ease-in-out infinite !important; }
@keyframes vipFxNameIce {
  0%, 100% { text-shadow: 0 0 5px rgba(125,211,252,.6), 0 0 14px rgba(186,230,253,.35); }
  50%      { text-shadow: 0 0 9px rgba(125,211,252,.9), 0 0 22px rgba(186,230,253,.55); }
}
.vip-name-fx-ice { animation: vipFxNameIce 2.6s ease-in-out infinite; }

/* ---- 🍃 Leaves -------------------------------------------- */
@keyframes vipFxLeaves {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #65A30D),
      0 -6px 14px 3px rgba(132, 204, 22, 0.55),
      6px 4px 14px 2px rgba(190, 242, 100, 0.45),
      -6px 4px 14px 2px rgba(132, 204, 22, 0.45);
  }
  33% {
    box-shadow:
      0 0 0 2px var(--vip-border, #65A30D),
      4px -8px 16px 3px rgba(101, 163, 13, 0.7),
      -7px 2px 16px 3px rgba(190, 242, 100, 0.6),
      8px 6px 18px 3px rgba(132, 204, 22, 0.55);
  }
  66% {
    box-shadow:
      0 0 0 2px var(--vip-border, #65A30D),
      -5px -7px 16px 3px rgba(132, 204, 22, 0.7),
      8px 0px 16px 3px rgba(101, 163, 13, 0.6),
      -2px 8px 18px 3px rgba(190, 242, 100, 0.55);
  }
}
.avatar.vip-fx-leaves { animation: vipFxLeaves 3.2s ease-in-out infinite !important; }
@keyframes vipFxNameLeaves {
  0%, 100% { text-shadow: 0 0 6px rgba(132,204,22,.5); }
  50%      { text-shadow: 0 0 12px rgba(190,242,100,.75); }
}
.vip-name-fx-leaves { animation: vipFxNameLeaves 3.2s ease-in-out infinite; }

/* ---- ⚡ Lightning ----------------------------------------- */
@keyframes vipFxLightning {
  0%, 6%, 14%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FACC15),
      0 0 10px 2px rgba(250, 204, 21, 0.6),
      0 0 20px 5px rgba(254, 240, 138, 0.3);
  }
  3%, 10% {
    box-shadow:
      0 0 0 2px #FFFFFF,
      0 0 18px 5px rgba(255, 255, 255, 0.95),
      0 0 36px 12px rgba(250, 204, 21, 0.85),
      0 0 60px 20px rgba(254, 240, 138, 0.5);
  }
}
.avatar.vip-fx-lightning { animation: vipFxLightning 2.4s linear infinite !important; }
@keyframes vipFxNameLightning {
  0%, 6%, 14%, 100% { text-shadow: 0 0 5px rgba(250,204,21,.6); color: inherit; }
  3%, 10%           { text-shadow: 0 0 12px #fff, 0 0 24px rgba(250,204,21,.9); }
}
.vip-name-fx-lightning { animation: vipFxNameLightning 2.4s linear infinite; }

/* ---- ⭐ Stars --------------------------------------------- */
@keyframes vipFxStars {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FDE68A),
      0 0 8px 2px rgba(253, 230, 138, 0.6),
      8px -10px 0 1px rgba(255, 255, 255, 0.9),
      -10px -6px 0 0.5px rgba(253, 230, 138, 0.85),
      6px 12px 0 0.5px rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FDE68A),
      0 0 12px 3px rgba(253, 230, 138, 0.85),
      -8px -12px 0 1px rgba(255, 255, 255, 0.9),
      11px -4px 0 0.5px rgba(253, 230, 138, 0.85),
      -6px 14px 0 0.5px rgba(255, 255, 255, 0.8);
  }
}
.avatar.vip-fx-stars { animation: vipFxStars 2.8s ease-in-out infinite !important; }
@keyframes vipFxNameStars {
  0%, 100% { text-shadow: 0 0 6px rgba(253,230,138,.6), 0 0 12px rgba(255,255,255,.4); }
  50%      { text-shadow: 0 0 10px rgba(253,230,138,.9), 0 0 20px rgba(255,255,255,.6); }
}
.vip-name-fx-stars { animation: vipFxNameStars 2.8s ease-in-out infinite; }

/* ---- 🌸 Petals (sakura) ----------------------------------- */
@keyframes vipFxPetals {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #F9A8D4),
      0 -7px 12px 2px rgba(249, 168, 212, 0.6),
      7px 5px 12px 2px rgba(244, 114, 182, 0.45),
      -7px 5px 12px 2px rgba(252, 231, 243, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #F9A8D4),
      0 -10px 16px 3px rgba(249, 168, 212, 0.85),
      10px 7px 16px 3px rgba(244, 114, 182, 0.65),
      -10px 7px 16px 3px rgba(252, 231, 243, 0.7);
  }
}
.avatar.vip-fx-petals { animation: vipFxPetals 3s ease-in-out infinite !important; }
@keyframes vipFxNamePetals {
  0%, 100% { text-shadow: 0 0 6px rgba(249,168,212,.55); }
  50%      { text-shadow: 0 0 12px rgba(244,114,182,.8); }
}
.vip-name-fx-petals { animation: vipFxNamePetals 3s ease-in-out infinite; }

/* ---- 🌈 Rainbow ------------------------------------------- */
@keyframes vipFxRainbow {
  0%   { box-shadow: 0 0 0 2px #ff0080, 0 0 18px 4px rgba(255,0,128,.7); }
  20%  { box-shadow: 0 0 0 2px #ff8800, 0 0 18px 4px rgba(255,136,0,.7); }
  40%  { box-shadow: 0 0 0 2px #ffe100, 0 0 18px 4px rgba(255,225,0,.7); }
  60%  { box-shadow: 0 0 0 2px #00d4ff, 0 0 18px 4px rgba(0,212,255,.7); }
  80%  { box-shadow: 0 0 0 2px #8b5cf6, 0 0 18px 4px rgba(139,92,246,.7); }
  100% { box-shadow: 0 0 0 2px #ff0080, 0 0 18px 4px rgba(255,0,128,.7); }
}
.avatar.vip-fx-rainbow { animation: vipFxRainbow 4s linear infinite !important; }
@keyframes vipFxNameRainbow {
  0%   { color: #ff0080; }
  20%  { color: #ff8800; }
  40%  { color: #ffe100; }
  60%  { color: #00d4ff; }
  80%  { color: #8b5cf6; }
  100% { color: #ff0080; }
}
.vip-name-fx-rainbow { animation: vipFxNameRainbow 4s linear infinite; text-shadow: 0 0 8px currentColor; }

/* ---- 💡 Neon (cyber) -------------------------------------- */
@keyframes vipFxNeon {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #22D3EE),
      0 0 8px 1px rgba(34, 211, 238, 0.7),
      0 0 18px 5px rgba(34, 211, 238, 0.5),
      0 0 36px 10px rgba(34, 211, 238, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #22D3EE),
      0 0 14px 3px rgba(34, 211, 238, 1),
      0 0 28px 8px rgba(34, 211, 238, 0.75),
      0 0 56px 16px rgba(34, 211, 238, 0.45);
  }
}
.avatar.vip-fx-neon { animation: vipFxNeon 1.8s ease-in-out infinite !important; }
@keyframes vipFxNameNeon {
  0%, 100% { text-shadow: 0 0 4px rgba(34,211,238,.7), 0 0 10px rgba(34,211,238,.45); }
  50%      { text-shadow: 0 0 8px rgba(34,211,238,1), 0 0 20px rgba(34,211,238,.7); }
}
.vip-name-fx-neon { animation: vipFxNameNeon 1.8s ease-in-out infinite; }

/* ---- 🌑 Shadow -------------------------------------------- */
@keyframes vipFxShadow {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #6B21A8),
      0 0 14px 4px rgba(0, 0, 0, 0.85),
      0 0 26px 10px rgba(76, 29, 149, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #6B21A8),
      0 0 22px 7px rgba(0, 0, 0, 0.95),
      0 0 40px 14px rgba(76, 29, 149, 0.75);
  }
}
.avatar.vip-fx-shadow { animation: vipFxShadow 3s ease-in-out infinite !important; }
@keyframes vipFxNameShadow {
  0%, 100% { text-shadow: 0 0 6px rgba(0,0,0,.85), 0 0 14px rgba(76,29,149,.5); }
  50%      { text-shadow: 0 0 12px rgba(0,0,0,.95), 0 0 22px rgba(76,29,149,.75); }
}
.vip-name-fx-shadow { animation: vipFxNameShadow 3s ease-in-out infinite; }

/* ---- 🌋 Lava ---------------------------------------------- */
@keyframes vipFxLava {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #DC2626),
      0 0 12px 3px rgba(220, 38, 38, 0.7),
      0 6px 18px 5px rgba(245, 158, 11, 0.55),
      0 12px 22px 8px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #DC2626),
      0 0 18px 5px rgba(220, 38, 38, 0.95),
      0 9px 24px 8px rgba(245, 158, 11, 0.8),
      0 18px 30px 12px rgba(251, 191, 36, 0.5);
  }
}
.avatar.vip-fx-lava { animation: vipFxLava 1.6s ease-in-out infinite !important; }
@keyframes vipFxNameLava {
  0%, 100% { text-shadow: 0 0 6px rgba(220,38,38,.65), 0 2px 8px rgba(245,158,11,.5); }
  50%      { text-shadow: 0 0 12px rgba(220,38,38,.95), 0 4px 16px rgba(245,158,11,.75); }
}
.vip-name-fx-lava { animation: vipFxNameLava 1.6s ease-in-out infinite; }

/* ---- 🌌 Aurora -------------------------------------------- */
@keyframes vipFxAurora {
  0%   { box-shadow: 0 0 0 2px #34D399, 0 0 16px 4px rgba(52,211,153,.7), 0 0 30px 10px rgba(167,139,250,.4); }
  33%  { box-shadow: 0 0 0 2px #A78BFA, 0 0 16px 4px rgba(167,139,250,.7), 0 0 30px 10px rgba(96,165,250,.4); }
  66%  { box-shadow: 0 0 0 2px #60A5FA, 0 0 16px 4px rgba(96,165,250,.7), 0 0 30px 10px rgba(52,211,153,.4); }
  100% { box-shadow: 0 0 0 2px #34D399, 0 0 16px 4px rgba(52,211,153,.7), 0 0 30px 10px rgba(167,139,250,.4); }
}
.avatar.vip-fx-aurora { animation: vipFxAurora 5s ease-in-out infinite !important; }
@keyframes vipFxNameAurora {
  0%   { text-shadow: 0 0 8px rgba(52,211,153,.7), 0 0 16px rgba(167,139,250,.4); }
  33%  { text-shadow: 0 0 8px rgba(167,139,250,.7), 0 0 16px rgba(96,165,250,.4); }
  66%  { text-shadow: 0 0 8px rgba(96,165,250,.7), 0 0 16px rgba(52,211,153,.4); }
  100% { text-shadow: 0 0 8px rgba(52,211,153,.7), 0 0 16px rgba(167,139,250,.4); }
}
.vip-name-fx-aurora { animation: vipFxNameAurora 5s ease-in-out infinite; }

/* ---- 👻 Hologram ------------------------------------------ */
@keyframes vipFxHologram {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #67E8F9),
      2px 0 0 rgba(255, 0, 128, 0.55),
      -2px 0 0 rgba(34, 211, 238, 0.55),
      0 0 14px 4px rgba(103, 232, 249, 0.6);
  }
  20% {
    box-shadow:
      0 0 0 2px var(--vip-border, #67E8F9),
      -3px 0 0 rgba(255, 0, 128, 0.7),
      3px 0 0 rgba(34, 211, 238, 0.7),
      0 0 18px 5px rgba(103, 232, 249, 0.85);
  }
  40% {
    box-shadow:
      0 0 0 2px var(--vip-border, #67E8F9),
      4px 0 0 rgba(255, 0, 128, 0.7),
      -4px 0 0 rgba(34, 211, 238, 0.7),
      0 0 14px 4px rgba(103, 232, 249, 0.6);
  }
}
.avatar.vip-fx-hologram { animation: vipFxHologram 0.6s steps(4, end) infinite !important; }
@keyframes vipFxNameHologram {
  0%, 100% { text-shadow: 1px 0 rgba(255,0,128,.6), -1px 0 rgba(34,211,238,.6); }
  20%      { text-shadow: -2px 0 rgba(255,0,128,.85), 2px 0 rgba(34,211,238,.85); }
  40%      { text-shadow: 2px 0 rgba(255,0,128,.85), -2px 0 rgba(34,211,238,.85); }
}
.vip-name-fx-hologram { animation: vipFxNameHologram 0.6s steps(4, end) infinite; }

/* ---- 🫧 Bubbles ------------------------------------------- */
@keyframes vipFxBubbles {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #A5F3FC),
      0 0 10px 2px rgba(165, 243, 252, 0.6),
      8px -8px 0 -2px rgba(255, 255, 255, 0.85),
      -10px -4px 0 -3px rgba(165, 243, 252, 0.7),
      6px 10px 0 -3px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #A5F3FC),
      0 0 14px 3px rgba(165, 243, 252, 0.85),
      10px -12px 0 -2px rgba(255, 255, 255, 0.95),
      -12px -8px 0 -3px rgba(165, 243, 252, 0.85),
      8px 14px 0 -3px rgba(255, 255, 255, 0.75);
  }
}
.avatar.vip-fx-bubbles { animation: vipFxBubbles 2.4s ease-in-out infinite !important; }
@keyframes vipFxNameBubbles {
  0%, 100% { text-shadow: 0 0 5px rgba(165,243,252,.7); }
  50%      { text-shadow: 0 0 9px rgba(165,243,252,1), 0 -2px 6px rgba(255,255,255,.6); }
}
.vip-name-fx-bubbles { animation: vipFxNameBubbles 2.4s ease-in-out infinite; }

/* ---- 💨 Smoke (rato sneaky) ------------------------------- */
@keyframes vipFxSmoke {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #94A3B8),
      0 0 10px 3px rgba(148, 163, 184, 0.55),
      0 -6px 16px 5px rgba(100, 116, 139, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #94A3B8),
      0 0 16px 5px rgba(148, 163, 184, 0.75),
      0 -10px 24px 8px rgba(100, 116, 139, 0.65),
      0 -18px 30px 10px rgba(71, 85, 105, 0.35);
  }
}
.avatar.vip-fx-smoke { animation: vipFxSmoke 2.8s ease-in-out infinite !important; }
@keyframes vipFxNameSmoke {
  0%, 100% { text-shadow: 0 0 6px rgba(148,163,184,.55), 0 -2px 10px rgba(71,85,105,.4); }
  50%      { text-shadow: 0 0 10px rgba(148,163,184,.8), 0 -4px 14px rgba(71,85,105,.6); }
}
.vip-name-fx-smoke { animation: vipFxNameSmoke 2.8s ease-in-out infinite; }

/* ---- 🩸 Blood --------------------------------------------- */
@keyframes vipFxBlood {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #DC2626),
      0 0 10px 2px rgba(220, 38, 38, 0.7),
      0 6px 12px 3px rgba(127, 29, 29, 0.6),
      0 12px 16px 5px rgba(127, 29, 29, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #DC2626),
      0 0 16px 4px rgba(220, 38, 38, 0.95),
      0 10px 18px 5px rgba(127, 29, 29, 0.85),
      0 18px 24px 8px rgba(127, 29, 29, 0.5);
  }
}
.avatar.vip-fx-blood { animation: vipFxBlood 2.2s ease-in-out infinite !important; }
@keyframes vipFxNameBlood {
  0%, 100% { text-shadow: 0 0 6px rgba(220,38,38,.7), 0 2px 6px rgba(127,29,29,.55); }
  50%      { text-shadow: 0 0 12px rgba(220,38,38,1), 0 4px 10px rgba(127,29,29,.8); }
}
.vip-name-fx-blood { animation: vipFxNameBlood 2.2s ease-in-out infinite; }

/* ---- ✨ Gold Shimmer (subtle) ----------------------------- */
@keyframes vipFxGoldShimmer {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FFD700),
      0 0 8px 2px rgba(255, 215, 0, 0.55),
      0 0 18px 6px rgba(255, 235, 100, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--vip-border, #FFD700),
      0 0 14px 4px rgba(255, 215, 0, 0.85),
      0 0 28px 9px rgba(255, 235, 100, 0.5);
  }
}
.avatar.vip-fx-gold-shimmer { animation: vipFxGoldShimmer 3s ease-in-out infinite !important; }
@keyframes vipFxNameGoldShimmer {
  0%, 100% { text-shadow: 0 0 5px rgba(255,215,0,.55); }
  50%      { text-shadow: 0 0 12px rgba(255,215,0,.9), 0 0 22px rgba(255,235,100,.45); }
}
.vip-name-fx-gold-shimmer { animation: vipFxNameGoldShimmer 3s ease-in-out infinite; }

/* =============================================================
   🏆 AWARDS NO FEED — cards de premiação inline em /home.php
   ============================================================= */
.post-v2-award {
  border-color: rgba(255, 215, 0, 0.32);
  background: linear-gradient(180deg, rgba(255,215,0,0.04), transparent 80px), var(--bg-card, #1a1d22);
  box-shadow: 0 2px 14px rgba(255, 215, 0, 0.08);
}
.post-v2-award:hover { border-color: rgba(255, 215, 0, 0.55); }
.post-v2-award-ribbon {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,165,0,0.08));
  color: #FFD700;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.post-v2-award-tag {
  margin-left: auto;
  font-size: 10px; padding: 3px 9px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 999px;
  color: #FFE082;
  text-transform: none; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 4px;
}
.post-v2-award-tag-finished {
  background: rgba(120, 120, 120, 0.18);
  border-color: rgba(120, 120, 120, 0.45);
  color: var(--text-dim);
}
.post-v2-award-banner {
  width: 100%;
  max-height: 220px; overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.post-v2-award-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-v2-award .post-v2-title {
  display: flex; align-items: center; gap: 8px;
}
.post-v2-award-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim);
  margin: 14px 0 8px;
}
.post-v2-award-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.post-v2-award-product {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.post-v2-award-product img,
.post-v2-award-product-placeholder {
  width: 50px; height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.post-v2-award-product-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.post-v2-award-product-info strong { color: var(--text); line-height: 1.25; }
.post-v2-award-product-info .text-dim { font-size: 11.5px; line-height: 1.35; }
.post-v2-award-meta-row {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text);
}
.post-v2-award-meta-label {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}
.post-v2-award-winners-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.post-v2-award-winner {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 12px; font-weight: 600;
  color: var(--text);
}

/* ===== Chooser modal: Nova publicação ↔ Nova premiação ===== */
.publish-choice-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.publish-choice-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all .15s ease;
}
.publish-choice-card:hover {
  background: rgba(230,57,70,0.08);
  border-color: rgba(230,57,70,0.55);
  transform: translateY(-1px);
}
.publish-choice-card strong { font-size: 15px; }
.publish-choice-card .text-dim { font-size: 11.5px; line-height: 1.4; max-width: 220px; }
.publish-choice-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(230,57,70,0.12);
  color: var(--red, #E63946);
  margin-bottom: 4px;
}
.publish-choice-card-award:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.55);
}
.publish-choice-card-award .publish-choice-icon {
  background: rgba(255,215,0,0.15);
  color: #FFD700;
}
