:root {
  --bg: #05070a;
  --panel: #0c1016;
  --panel-2: #111821;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f7fb;
  --muted: #9ba8b7;
  --green: #c8ff00;
  --green-2: #40ff93;
  --violet: #7c3cff;
  --pink: #ff48e0;
  --yellow: #ffdf35;
  --red: #ff5555;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(124, 60, 255, 0.28), transparent 32rem),
    radial-gradient(circle at 85% 20%, rgba(64, 255, 147, 0.18), transparent 28rem),
    linear-gradient(180deg, #05070a 0%, #090d12 50%, #05070a 100%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 17, 0.84);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.user-pill,
.ghost-btn,
.primary-btn,
.danger-btn,
.warning-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover,
.ghost-btn:hover {
  color: var(--text);
  border-color: rgba(200, 255, 0, 0.35);
}

.admin-link {
  color: var(--green);
}

.user-pill {
  color: var(--green);
  background: rgba(200, 255, 0, 0.08);
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

button {
  cursor: pointer;
}

.ghost-btn {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.primary-btn {
  color: #07100b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(64, 255, 147, 0.18);
}

.danger-btn {
  color: #fff;
  border-color: rgba(255, 85, 85, 0.35);
  background: rgba(255, 85, 85, 0.16);
  font-weight: 700;
}

.warning-btn {
  color: #160f00;
  border-color: transparent;
  background: var(--yellow);
  font-weight: 800;
}

.danger-link {
  border: 0;
  background: transparent;
  color: #ff9090;
  padding: 4px 0;
}

.small-btn {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 13px;
}

main {
  margin-top: 22px;
}

.flash {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.flash-success {
  border-color: rgba(64, 255, 147, 0.35);
  color: var(--green-2);
}

.flash-danger {
  border-color: rgba(255, 85, 85, 0.38);
  color: #ff9c9c;
}

.flash-warning {
  border-color: rgba(255, 223, 53, 0.38);
  color: var(--yellow);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.hero-card,
.auth-card,
.center-card,
.content-card,
.forum-hero,
.admin-hero,
.stat-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.88), rgba(8, 11, 16, 0.88));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 650px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 72, 224, 0.28), transparent 64%);
  pointer-events: none;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-card p,
.forum-hero p,
.admin-hero p,
.topic-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-points span,
.eyebrow {
  border: 1px solid rgba(200, 255, 0, 0.22);
  color: var(--green);
  background: rgba(200, 255, 0, 0.07);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.screen-preview {
  width: min(430px, 100%);
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(124, 60, 255, 0.75);
  margin-top: 26px;
  box-shadow: 0 16px 55px rgba(124, 60, 255, 0.24);
}

.auth-card {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 102px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 15px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.tab {
  text-align: center;
  padding: 11px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.stack-form,
.comment-form,
.reply-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  outline: 0;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(200, 255, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.06);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.center-card {
  width: min(520px, 100%);
  margin: 60px auto;
  padding: 28px;
}

.forum-hero,
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 30px;
  margin-bottom: 22px;
  overflow: hidden;
}

.forum-hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(64, 255, 147, 0.18));
}

.content-card {
  padding: 22px;
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topic-row:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 255, 0, 0.32);
  background: rgba(200, 255, 0, 0.045);
}

.topic-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-row p {
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.5;
}

.topic-row small,
.topic-meta span,
.topic-meta small {
  color: var(--muted);
}

.topic-meta {
  min-width: 118px;
  text-align: right;
  display: grid;
  align-content: center;
  gap: 3px;
}

.topic-meta strong {
  color: var(--green);
  font-size: 28px;
}

.status-badge,
.admin-mini,
.blocked-mini,
.ok-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.open,
.ok-mini {
  color: #07100b;
  background: var(--green);
}

.status-badge.closed,
.blocked-mini {
  color: #fff;
  background: rgba(255, 85, 85, 0.72);
}

.admin-mini {
  color: #160f00;
  background: var(--yellow);
  margin-left: 6px;
}

.back-link {
  color: var(--green);
  display: inline-flex;
  margin-bottom: 18px;
}

.topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topic-header h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.topic-admin-actions,
.table-actions,
.comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cooldown-note,
.admin-note,
.blocked-note {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.admin-note {
  color: var(--yellow);
  border-color: rgba(255, 223, 53, 0.3);
}

.blocked-note {
  color: #ff9c9c;
  border-color: rgba(255, 85, 85, 0.3);
}

.comment-form,
.reply-form {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 18px;
  padding: 14px;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 16px;
}

.comment-card.reply {
  margin-left: 34px;
  border-left: 3px solid rgba(200, 255, 0, 0.4);
}

.comment-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-card header small {
  color: var(--muted);
  white-space: nowrap;
}

.comment-card p {
  color: #d9e2ec;
  line-height: 1.6;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 18px;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  font-size: 34px;
  color: var(--green);
}

.stat-card span {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.compact-item small,
.compact-item p {
  display: block;
  color: var(--muted);
  margin: 4px 0 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 10px;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table a,
.compact-item a {
  color: var(--green);
}

.confirm-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: var(--panel);
  padding: 0;
  width: min(420px, calc(100% - 24px));
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.confirm-dialog form {
  padding: 22px;
}

.confirm-dialog p {
  color: var(--muted);
  line-height: 1.5;
}

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

.error-box {
  overflow: auto;
  color: #ffb1b1;
  background: rgba(255, 85, 85, 0.08);
  border: 1px solid rgba(255, 85, 85, 0.2);
  padding: 12px;
  border-radius: 12px;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 9px;
  }

  .topbar,
  .topic-header,
  .section-head,
  .forum-hero,
  .admin-hero,
  .topic-row,
  .compact-item {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .auth-grid,
  .admin-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    position: static;
  }

  .hero-card {
    min-height: auto;
    padding: 24px;
  }

  .forum-hero-logo {
    width: 110px;
    height: 110px;
  }

  .topic-meta {
    min-width: auto;
    text-align: left;
  }

  .comment-card.reply {
    margin-left: 12px;
  }
}

/* Ajustes visuais v2 - estilo comunidade/Discord */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(124, 60, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(200, 255, 0, 0.16), transparent 26rem),
    linear-gradient(180deg, #05070a 0%, #080b10 42%, #05070a 100%);
}

.icon-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 18px;
}

.icon-link:hover {
  color: var(--green);
  border-color: rgba(200, 255, 0, 0.34);
}

.mini-avatar,
.comment-avatar,
.profile-avatar {
  object-fit: cover;
  flex: 0 0 auto;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 60, 255, 0.8), rgba(64, 255, 147, 0.45));
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-fallback.big {
  font-size: 36px;
}

.flash-danger {
  background: linear-gradient(135deg, rgba(255, 85, 85, 0.18), rgba(255, 72, 224, 0.08));
  border-color: rgba(255, 85, 85, 0.7);
  color: #ffdede;
  box-shadow: 0 0 0 4px rgba(255, 85, 85, 0.06), 0 18px 50px rgba(255, 85, 85, 0.12);
  font-weight: 800;
}

.inline-alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.inline-alert.danger {
  border: 1px solid rgba(255, 85, 85, 0.65);
  background: rgba(255, 85, 85, 0.14);
  color: #ffdede;
}

.input-error,
.form-has-error input[type="password"],
.form-has-error input[name="username"] {
  border-color: rgba(255, 85, 85, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(255, 85, 85, 0.12) !important;
  background: rgba(255, 85, 85, 0.08);
}

.discord-hero-card {
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.92), rgba(8, 11, 16, 0.92)),
    radial-gradient(circle at 20% 15%, rgba(200, 255, 0, 0.18), transparent 24rem);
}

.discord-forum-hero,
.settings-hero,
.featured-section {
  border: 1px solid rgba(200, 255, 0, 0.13);
  background: linear-gradient(135deg, rgba(17, 24, 33, 0.92), rgba(30, 20, 54, 0.48));
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-topic-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid rgba(200, 255, 0, 0.24);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.featured-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 0, 0.55);
  background:
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.22), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.featured-topic-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.featured-topic-card p,
.featured-topic-card small {
  color: var(--muted);
  line-height: 1.5;
}

.discord-topic-list {
  gap: 10px;
}

.topic-row {
  align-items: center;
}

.topic-row.top-topic {
  border-color: rgba(200, 255, 0, 0.26);
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.09), rgba(255, 255, 255, 0.035));
}

.topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.18);
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
}

.topic-main {
  flex: 1 1 auto;
  min-width: 0;
}

.comments-panel {
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.86), rgba(7, 10, 14, 0.94));
}

.discord-comment-form {
  border-color: rgba(124, 60, 255, 0.22);
  background: rgba(10, 14, 20, 0.88);
}

.composer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.composer-row textarea {
  min-height: 96px;
}

.discord-comments-list {
  gap: 10px;
}

.comment-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.075);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comment-content {
  min-width: 0;
}

.comment-card header {
  align-items: center;
}

.comment-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-card.my-comment {
  border-color: rgba(64, 255, 147, 0.24);
  background: rgba(64, 255, 147, 0.045);
}

.comment-card.admin-comment {
  border-color: rgba(255, 223, 53, 0.46);
  background:
    radial-gradient(circle at top left, rgba(255, 223, 53, 0.16), transparent 15rem),
    linear-gradient(180deg, rgba(255, 223, 53, 0.08), rgba(124, 60, 255, 0.06));
  box-shadow: 0 18px 48px rgba(255, 223, 53, 0.08);
}

.comment-card.admin-comment .comment-content > header strong {
  color: var(--yellow);
  font-size: 17px;
}

.comment-card.admin-comment p {
  color: #fff8d7;
  font-size: 17px;
  line-height: 1.72;
}

.admin-avatar {
  border-color: rgba(255, 223, 53, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 223, 53, 0.08);
}

.comment-card.reply {
  margin-left: 48px;
  grid-template-columns: 40px minmax(0, 1fr);
  border-left: 3px solid rgba(124, 60, 255, 0.8);
}

.comment-card.reply .comment-avatar {
  width: 38px;
  height: 38px;
}

.settings-hero {
  padding: 28px;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  border: 1px solid rgba(200, 255, 0, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.password-card {
  grid-column: 1 / -1;
}

.top-gap {
  margin-top: 12px;
}

input[type="file"] {
  color: var(--muted);
  padding: 12px;
}

@media (max-width: 900px) {
  .featured-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .comment-card,
  .comment-card.reply {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .comment-card.reply {
    margin-left: 12px;
  }

  .profile-preview,
  .composer-row {
    align-items: stretch;
  }

  .profile-preview {
    flex-direction: column;
  }
}

/* Ajustes v3 - sem fotos, menu único, moderador e admin destacado */
.user-pill span:last-child {
  display: grid;
  line-height: 1.05;
}

.user-pill small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.user-pill.role-admin {
  color: #fff8d7;
  border-color: rgba(255, 223, 53, 0.45);
  background: rgba(255, 223, 53, 0.08);
}

.user-pill.role-moderator {
  color: #d7f4ff;
  border-color: rgba(86, 200, 255, 0.35);
  background: rgba(86, 200, 255, 0.08);
}

.user-menu {
  position: relative;
}

.menu-toggle {
  width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.menu-toggle:hover {
  color: var(--green);
  border-color: rgba(200, 255, 0, 0.35);
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 16, 22, 0.98);
  box-shadow: var(--shadow);
  z-index: 60;
}

.user-menu.open .menu-dropdown {
  display: grid;
  gap: 6px;
}

.menu-dropdown a,
.menu-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.menu-dropdown a:hover,
.menu-dropdown button:hover {
  background: rgba(200, 255, 0, 0.09);
  color: var(--green);
}

.menu-dropdown form {
  margin: 0;
}

.moderator-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #041016;
  background: #56c8ff;
}

.moderator-note {
  color: #bdeeff;
  border: 1px solid rgba(86, 200, 255, 0.36);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.comment-card.admin-comment {
  position: relative;
  border: 2px solid transparent !important;
  background:
    linear-gradient(#0b1017, #0b1017) padding-box,
    linear-gradient(135deg, #c8ff00, #40ff93, #7c3cff, #ff48e0, #ffdf35) border-box !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 28px rgba(200, 255, 0, 0.18),
    0 0 42px rgba(255, 72, 224, 0.10) !important;
}

.comment-card.admin-comment::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(200,255,0,.20), rgba(64,255,147,.12), rgba(124,60,255,.12), rgba(255,72,224,.18));
  opacity: .45;
  filter: blur(14px);
  z-index: -1;
}

.comment-card.admin-comment .comment-content > header strong {
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px !important;
  letter-spacing: .02em;
  text-shadow: 0 0 16px rgba(200, 255, 0, 0.28);
}

.comment-card.admin-comment p {
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

.comment-card.moderator-comment {
  border-color: rgba(86, 200, 255, 0.48) !important;
  background:
    radial-gradient(circle at top left, rgba(86, 200, 255, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(86, 200, 255, 0.08), rgba(124, 60, 255, 0.055)) !important;
  box-shadow: 0 18px 48px rgba(86, 200, 255, 0.08);
}

.comment-card.moderator-comment .comment-content > header strong {
  color: #bdeeff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
  letter-spacing: .01em;
}

.comment-card.moderator-comment p {
  color: #eaf9ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

.admin-avatar {
  border-color: rgba(200, 255, 0, 0.82) !important;
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.08), 0 0 18px rgba(255, 72, 224, 0.16) !important;
}

.moderator-avatar {
  border-color: rgba(86, 200, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(86, 200, 255, 0.08);
}

.no-photo-settings {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.admin-grid .content-card:nth-child(3) {
  grid-column: 1 / -1;
}

.stats-grid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .stats-grid,
  .no-photo-settings {
    grid-template-columns: 1fr;
  }

  .menu-dropdown {
    right: auto;
    left: 0;
  }
}

/* Moderador recebe o destaque anterior amarelo/dourado */
.moderator-mini {
  color: #160f00 !important;
  background: var(--yellow) !important;
}

.moderator-note {
  color: var(--yellow) !important;
  border-color: rgba(255, 223, 53, 0.30) !important;
}

.comment-card.moderator-comment {
  border-color: rgba(255, 223, 53, 0.46) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 53, 0.16), transparent 15rem),
    linear-gradient(180deg, rgba(255, 223, 53, 0.08), rgba(124, 60, 255, 0.06)) !important;
  box-shadow: 0 18px 48px rgba(255, 223, 53, 0.08) !important;
}

.comment-card.moderator-comment .comment-content > header strong {
  color: var(--yellow) !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-size: 18px !important;
  letter-spacing: .01em;
}

.comment-card.moderator-comment p {
  color: #fff8d7 !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.moderator-avatar {
  border-color: rgba(255, 223, 53, 0.78) !important;
  box-shadow: 0 0 0 4px rgba(255, 223, 53, 0.08) !important;
}


/* Ajustes v4 - menu admin mais estável e busca de usuários */
.topbar,
.top-actions {
  overflow: visible !important;
}

.top-actions .user-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  z-index: 5000 !important;
}

.top-actions .user-menu .menu-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 42px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(200, 255, 0, 0.25) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03) !important;
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.top-actions .user-menu .menu-toggle:hover,
.top-actions .user-menu.open .menu-toggle {
  color: var(--green) !important;
  border-color: rgba(200, 255, 0, 0.55) !important;
  background: rgba(200, 255, 0, 0.08) !important;
}

.top-actions .user-menu .menu-dropdown {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  left: auto !important;
  min-width: 210px !important;
  display: none !important;
  gap: 7px !important;
  padding: 9px !important;
  border: 1px solid rgba(200, 255, 0, 0.20) !important;
  border-radius: 16px !important;
  background: rgba(8, 12, 18, 0.98) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.46), 0 0 24px rgba(200,255,0,.06) !important;
  z-index: 6000 !important;
}

.top-actions .user-menu.open .menu-dropdown {
  display: grid !important;
}

.top-actions .user-menu .menu-dropdown a,
.top-actions .user-menu .menu-dropdown button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  width: 100% !important;
  min-height: 38px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-decoration: none !important;
}

.top-actions .user-menu .menu-dropdown a:hover,
.top-actions .user-menu .menu-dropdown button:hover {
  color: var(--green) !important;
  border-color: rgba(200, 255, 0, 0.25) !important;
  background: rgba(200, 255, 0, 0.09) !important;
}

.top-actions .user-menu .menu-dropdown form {
  display: block !important;
  margin: 0 !important;
}

.admin-users-head {
  align-items: flex-end;
  gap: 16px;
}

.admin-user-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.admin-user-search input {
  width: min(320px, 72vw);
  min-height: 38px;
}

.search-hint {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.search-hint strong {
  color: var(--green);
}

.empty-table-cell {
  text-align: center;
  color: var(--muted);
  padding: 22px !important;
}

@media (max-width: 760px) {
  .admin-users-head {
    align-items: stretch;
  }

  .admin-user-search {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .admin-user-search input {
    width: 100%;
  }
}


/* Ajuste v5 - menu de três tracinhos definitivo, sem estilo branco padrão */
#hookUserMenu.hook-user-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 42px !important;
  flex: 0 0 46px !important;
  margin-left: 2px !important;
  overflow: visible !important;
  z-index: 999999 !important;
}

#hookMenuToggle.hook-menu-toggle,
.topbar #hookMenuToggle.hook-menu-toggle,
.top-actions #hookMenuToggle.hook-menu-toggle {
  all: unset !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 40px !important;
  min-width: 42px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(200, 255, 0, 0.32) !important;
  border-radius: 13px !important;
  color: #e9fff2 !important;
  background: linear-gradient(180deg, rgba(18, 29, 23, 0.96), rgba(7, 10, 15, 0.96)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.32),
    0 10px 26px rgba(0, 0, 0, 0.22) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

#hookMenuToggle.hook-menu-toggle span {
  display: block !important;
  transform: translateY(-1px) !important;
}

#hookMenuToggle.hook-menu-toggle:hover,
#hookUserMenu.open #hookMenuToggle.hook-menu-toggle {
  color: var(--green) !important;
  border-color: rgba(200, 255, 0, 0.72) !important;
  background: linear-gradient(180deg, rgba(36, 57, 26, 0.98), rgba(11, 18, 14, 0.98)) !important;
  box-shadow: 0 0 22px rgba(200, 255, 0, 0.12) !important;
}

#hookMenuDropdown.hook-menu-dropdown,
.topbar #hookMenuDropdown.hook-menu-dropdown,
.top-actions #hookMenuDropdown.hook-menu-dropdown {
  box-sizing: border-box !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 12px) !important;
  left: auto !important;
  display: none !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  padding: 8px !important;
  gap: 7px !important;
  border: 1px solid rgba(200, 255, 0, 0.24) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.99), rgba(5, 8, 12, 0.99)) !important;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(200, 255, 0, 0.08) !important;
  z-index: 1000000 !important;
}

#hookUserMenu.open #hookMenuDropdown.hook-menu-dropdown {
  display: grid !important;
}

#hookMenuDropdown.hook-menu-dropdown a,
#hookMenuDropdown.hook-menu-dropdown button,
.topbar #hookMenuDropdown.hook-menu-dropdown a,
.topbar #hookMenuDropdown.hook-menu-dropdown button {
  all: unset !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: #f3f7fb !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  text-decoration: none !important;
}

#hookMenuDropdown.hook-menu-dropdown a:hover,
#hookMenuDropdown.hook-menu-dropdown button:hover {
  color: var(--green) !important;
  border-color: rgba(200, 255, 0, 0.32) !important;
  background: rgba(200, 255, 0, 0.10) !important;
}

#hookMenuDropdown.hook-menu-dropdown form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  #hookMenuDropdown.hook-menu-dropdown {
    right: 0 !important;
    left: auto !important;
  }
}

/* Ajustes v6 - respeito, popup visual e apagamento programado */
.respect-banner {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 16px;
  color: #dfead5;
  background:
    radial-gradient(circle at top left, rgba(200, 255, 0, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(12, 16, 22, 0.92), rgba(9, 14, 12, 0.92));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  line-height: 1.45;
}

.respect-banner strong {
  color: var(--green);
}

.respect-dialog {
  border: 1px solid rgba(200, 255, 0, 0.26);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.15), transparent 16rem),
    linear-gradient(180deg, rgba(14, 19, 27, 0.99), rgba(5, 8, 12, 0.99));
  padding: 0;
  width: min(500px, calc(100% - 24px));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 34px rgba(200, 255, 0, 0.10);
}

.respect-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.respect-dialog form {
  padding: 28px;
  display: grid;
  gap: 12px;
}

.respect-dialog h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.respect-dialog p {
  color: #c7d3df;
  line-height: 1.65;
  font-size: 16px;
}

.respect-modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 1000;
  letter-spacing: -0.05em;
  box-shadow: 0 14px 34px rgba(64, 255, 147, 0.18);
}

.delete-scheduled-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 85, 85, 0.78);
  border: 1px solid rgba(255, 170, 170, 0.25);
}

.delete-scheduled-mini.table-mini {
  margin-top: 6px;
}

.delete-schedule-banner {
  margin-top: 18px;
  border: 1px solid rgba(255, 85, 85, 0.34);
  border-radius: 16px;
  padding: 14px 16px;
  color: #ffdede;
  background:
    radial-gradient(circle at top left, rgba(255, 85, 85, 0.15), transparent 18rem),
    rgba(255, 85, 85, 0.075);
  line-height: 1.5;
}

.delete-schedule-banner strong {
  color: #fff;
}

@media (max-width: 760px) {
  .respect-dialog form {
    padding: 22px;
  }

  .respect-dialog h3 {
    font-size: 24px;
  }
}


/* Ajuste v7 - bloqueio de acesso e gerenciamento de moderadores */
.blocked-login-card {
  border: 1px solid rgba(255, 85, 85, 0.72);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 85, 85, 0.20), transparent 13rem),
    rgba(255, 85, 85, 0.09);
  color: #ffdede;
  box-shadow: 0 18px 50px rgba(255, 85, 85, 0.12);
}

.blocked-login-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.blocked-login-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.status-cell {
  min-width: 230px;
}

.status-cell .admin-mini,
.status-cell .moderator-mini,
.status-cell .ok-mini,
.status-cell .blocked-mini {
  margin: 2px 4px 2px 0;
}

.block-reason-mini {
  display: block;
  margin-top: 7px;
  color: #ffbdbd;
  line-height: 1.35;
  max-width: 240px;
}

.user-action-cell {
  min-width: 280px;
}

.inline-action-form {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  vertical-align: top;
}

.block-access-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-top: 6px;
  max-width: 520px;
}

.block-access-form textarea {
  min-height: 42px;
  max-height: 110px;
  padding: 10px 12px;
  resize: vertical;
  font-size: 13px;
}

@media (max-width: 880px) {
  .block-access-form {
    grid-template-columns: 1fr;
  }

  .user-action-cell {
    min-width: 230px;
  }
}

/* Ajuste v8 - suporte flutuante e ocultação pública de apagamento programado */
.support-bot {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9000;
  display: grid;
  justify-items: start;
  gap: 12px;
}

.support-bot-fab {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 0, 0.46);
  color: #07100b;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 25%),
    linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(200, 255, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.support-bot-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(200, 255, 0, 0.34);
}

.support-bot-panel {
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 116px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 255, 0, 0.13), transparent 16rem),
    linear-gradient(180deg, rgba(12, 16, 22, 0.98), rgba(5, 8, 12, 0.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 30px rgba(200,255,0,.08);
}

.support-bot.open .support-bot-panel {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
}

.support-bot-panel header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.support-bot-panel header strong,
.support-bot-panel header small {
  display: block;
}

.support-bot-panel header strong {
  color: var(--green);
  font-size: 18px;
}

.support-bot-panel header small {
  color: var(--muted);
  margin-top: 2px;
}

.support-bot-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  font-size: 22px;
  line-height: 1;
}

.support-bot-messages {
  overflow: auto;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.support-msg {
  max-width: 92%;
  border-radius: 16px;
  padding: 11px 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}

.support-msg.bot {
  justify-self: start;
  color: #e8f5ee;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.support-msg.user {
  justify-self: end;
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 900;
}

.support-bot-menu {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.support-bot-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(200,255,0,.16);
  border-radius: 13px;
  padding: 8px 9px;
  background: rgba(200,255,0,.045);
}

.support-bot-option b {
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07100b;
  background: var(--green);
  font-size: 13px;
}

.support-bot-form {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.support-bot-form input {
  min-height: 42px;
  text-transform: uppercase;
}

.support-bot-form button {
  border: 0;
  border-radius: 13px;
  padding: 0 14px;
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 900;
}

.support-admin-create,
.support-admin-edit {
  display: grid;
  gap: 12px;
  grid-template-columns: 90px 90px minmax(220px, 1fr);
  align-items: end;
}

.support-admin-create {
  border: 1px solid rgba(200,255,0,.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(200,255,0,.035);
  margin-bottom: 16px;
}

.support-title-field,
.support-response-field {
  grid-column: 1 / -1;
}

.support-response-field textarea,
.support-admin-edit textarea {
  min-height: 120px;
}

.support-admin-list {
  display: grid;
  gap: 12px;
}

.support-admin-item {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.03);
}

.support-admin-edit {
  grid-template-columns: 85px 85px 120px minmax(220px, 1fr);
  padding-right: 104px;
}

.support-admin-edit select {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  outline: 0;
}

.support-admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.support-admin-delete {
  position: absolute;
  right: 14px;
  top: 14px;
  margin: 0;
}

@media (max-width: 780px) {
  .support-bot {
    left: 14px;
    bottom: 14px;
  }

  .support-bot-fab {
    width: 56px;
    height: 56px;
  }

  .support-admin-create,
  .support-admin-edit {
    grid-template-columns: 1fr;
    padding-right: 14px;
  }

  .support-admin-delete {
    position: static;
    margin-top: 10px;
  }
}

/* Ajuste v9 - suporte por clique, submenu e botão voltar */
.support-bot.open .support-bot-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
}

.support-menu-card {
  width: min(100%, 340px);
}

.support-bot-option {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(200,255,0,.17);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(200,255,0,.055);
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.support-bot-option:hover {
  transform: translateY(-1px);
  border-color: rgba(200,255,0,.38);
  background: rgba(200,255,0,.1);
}

.support-bot-option:focus-visible,
.support-bot-back:focus-visible {
  outline: 2px solid rgba(200,255,0,.75);
  outline-offset: 2px;
}

.support-bot-option b {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07100b;
  background: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.support-bot-option span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.support-bot-back {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--green);
  background: rgba(255,255,255,.045);
  font-weight: 900;
  text-align: center;
}

.support-bot-back:hover {
  border-color: rgba(200,255,0,.36);
  background: rgba(200,255,0,.08);
}

.support-bot-empty {
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.support-bot-back-only {
  width: min(92%, 340px);
  justify-self: start;
}

.support-admin-click-create,
.support-admin-click-edit {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.support-admin-click-edit {
  padding-right: 104px;
}

.support-submenu-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(200,255,0,.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  background: rgba(200,255,0,.06);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 780px) {
  .support-admin-click-create,
  .support-admin-click-edit {
    grid-template-columns: 1fr;
    padding-right: 14px;
  }
}

/* Ajuste v10 - suporte roxo, botão no topo e FAB com texto */
.support-nav-link {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  color: #f1eaff;
  border-color: rgba(168, 85, 247, 0.30);
  background: linear-gradient(180deg, rgba(116, 55, 196, 0.20), rgba(255,255,255,0.03));
}

.support-nav-link:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.62);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.12);
}

.support-bot-fab {
  width: auto;
  min-width: 142px;
  height: 58px;
  padding: 0 17px 0 15px;
  gap: 9px;
  border-color: rgba(168, 85, 247, 0.62);
  color: #f8f1ff;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.24), transparent 27%),
    linear-gradient(135deg, #3b176c, #7c3aed 52%, #9d4edd);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.54),
    0 0 28px rgba(168, 85, 247, 0.22);
  font-size: 22px;
}

.support-bot-fab:hover {
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.62),
    0 0 36px rgba(168, 85, 247, 0.34);
}

.support-headset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.support-fab-label {
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .01em;
  text-shadow: 0 1px 16px rgba(255,255,255,.20);
}

.support-bot-panel {
  border-color: rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(12, 16, 22, 0.98), rgba(5, 8, 12, 0.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 30px rgba(168,85,247,.12);
}

.support-bot-panel header strong {
  color: #c084fc;
}

@media (max-width: 780px) {
  .support-bot-fab {
    min-width: 124px;
    height: 54px;
    padding: 0 14px;
  }

  .support-fab-label {
    font-size: 14px;
  }
}


/* Support bot links */
.support-msg.bot a {
  color: #baff00;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(186, 255, 0, 0.55);
  overflow-wrap: anywhere;
}

.support-msg.bot a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* v12 - links configuráveis no suporte */
.support-link-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 2fr);
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.055);
}

.support-link-fields strong {
  grid-column: 1 / -1;
  color: #d8b4fe;
  font-size: 12px;
  letter-spacing: .02em;
}

.support-link-fields label {
  min-width: 0;
}

.support-configured-link-wrap {
  margin-top: 12px;
}

.support-msg.bot a.support-configured-link,
.support-configured-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px solid rgba(192, 132, 252, 0.46);
  border-radius: 999px;
  padding: 9px 13px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(200, 255, 0, 0.10));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.12);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 132, 252, 0.46);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.support-msg.bot a.support-configured-link:hover,
.support-configured-link:hover {
  color: #c8ff00;
  border-color: rgba(200, 255, 0, 0.58);
  border-bottom-color: rgba(200, 255, 0, 0.58);
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.12);
}

@media (max-width: 780px) {
  .support-link-fields {
    grid-template-columns: 1fr;
  }
}

/* Ajustes v13 - suporte com resposta única e painel em blocos */
.top-actions .user-menu .menu-dropdown a[href$="#criar-assunto"],
.top-actions .user-menu .menu-dropdown a[href$="#suporte-bot"],
.top-actions .user-menu .menu-dropdown a[href$="#usuarios"] {
  font-weight: 900;
}

.support-option-row {
  display: grid;
  gap: 8px;
}

.support-option-row.is-open .support-bot-option {
  border-color: rgba(166, 0, 255, 0.75);
  background: linear-gradient(135deg, rgba(166, 0, 255, 0.22), rgba(36, 255, 130, 0.08));
}

.support-option-answer {
  margin: -2px 0 8px 14px;
  max-width: calc(100% - 14px);
  border-left: 2px solid rgba(166, 0, 255, 0.7);
  animation: supportAnswerIn .16s ease-out;
}

@keyframes supportAnswerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.support-menu-parent-response {
  border-color: rgba(166, 0, 255, 0.55);
  background: rgba(31, 16, 45, 0.88);
}

.support-admin-clean-create {
  grid-template-columns: 1fr 140px;
}

.support-admin-clean-create .support-title-field,
.support-admin-clean-create .support-response-field,
.support-admin-clean-create .support-link-fields,
.support-admin-clean-create button {
  grid-column: 1 / -1;
}

.support-admin-groups {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.support-admin-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.support-admin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.support-admin-group-head h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
}

.support-admin-group-head span {
  color: var(--muted);
  font-size: .86rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.22);
}

.support-admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.support-admin-card {
  border: 1px solid rgba(174, 255, 0, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 19, 23, 0.96), rgba(23, 16, 32, 0.92));
  overflow: hidden;
}

.support-admin-card.is-hidden {
  border-color: rgba(255, 255, 255, 0.09);
  opacity: .72;
}

.support-admin-card summary {
  cursor: pointer;
  list-style: none;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.support-admin-card summary::-webkit-details-marker {
  display: none;
}

.support-admin-card summary strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}

.support-admin-card summary small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: .78rem;
}

.support-admin-card summary b {
  color: var(--accent);
  border: 1px solid rgba(174, 255, 0, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
  white-space: nowrap;
}

.support-admin-clean-edit {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-admin-clean-edit .support-title-field,
.support-admin-clean-edit .support-response-field,
.support-admin-clean-edit .support-link-fields,
.support-admin-clean-edit .support-admin-actions {
  grid-column: 1 / -1;
}

.support-admin-card .support-admin-delete {
  padding: 0 14px 14px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .support-admin-clean-create,
  .support-admin-clean-edit {
    grid-template-columns: 1fr;
  }
}


/* Ajustes v14 - selects escuros e remoção clara dos botões do suporte */
.hook-dark-select,
.support-admin-create select,
.support-admin-edit select,
.support-admin-clean-create select,
.support-admin-clean-edit select,
select.hook-dark-select {
  width: 100% !important;
  min-height: 46px !important;
  color-scheme: dark !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  color: #f4fff8 !important;
  background-color: #090f13 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #c8ff00 50%),
    linear-gradient(135deg, #c8ff00 50%, transparent 50%),
    linear-gradient(135deg, rgba(166, 0, 255, 0.18), rgba(0, 0, 0, 0.10)) !important;
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%,
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(200, 255, 0, 0.22) !important;
  border-radius: 14px !important;
  padding: 0 42px 0 13px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 22px rgba(166,0,255,.055) !important;
}

.hook-dark-select option,
.support-admin-create select option,
.support-admin-edit select option,
.support-admin-clean-create select option,
.support-admin-clean-edit select option {
  color: #f4fff8 !important;
  background: #070b10 !important;
}

.hook-dark-select:focus,
.support-admin-create select:focus,
.support-admin-edit select:focus,
.support-admin-clean-create select:focus,
.support-admin-clean-edit select:focus {
  outline: none !important;
  border-color: rgba(200, 255, 0, 0.68) !important;
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.10), 0 0 24px rgba(166, 0, 255, 0.15) !important;
}

.support-admin-clean-create,
.support-admin-clean-edit {
  overflow: hidden !important;
}

.support-admin-clean-create,
.support-admin-clean-edit {
  grid-template-columns: 1fr 140px !important;
}

.support-admin-clean-edit {
  padding-top: 4px !important;
}

.support-admin-clean-edit .support-title-field,
.support-admin-clean-edit .support-response-field,
.support-admin-clean-edit .support-link-fields,
.support-admin-clean-edit .support-admin-actions {
  grid-column: 1 / -1 !important;
}

.support-link-fields,
.support-link-fields.support-link-fields-edit {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.support-link-fields input,
.support-link-fields label,
.support-title-field input,
.support-response-field textarea,
.support-admin-clean-create input,
.support-admin-clean-create textarea,
.support-admin-clean-edit input,
.support-admin-clean-edit textarea {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.support-admin-card[open] {
  border-color: rgba(200, 255, 0, 0.32) !important;
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.055), 0 0 36px rgba(166, 0, 255, 0.07) !important;
}

.support-admin-card summary b {
  background: rgba(200, 255, 0, 0.06) !important;
}

.support-admin-card .support-admin-delete {
  margin: 0 14px 14px !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid rgba(255, 70, 90, 0.18) !important;
  display: flex !important;
  justify-content: stretch !important;
}

.support-admin-card .support-admin-delete .danger-btn,
.support-admin-card .support-admin-delete button {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 14px !important;
  font-weight: 950 !important;
  letter-spacing: .01em !important;
}

.support-admin-group-head span::after {
  content: ' · abra um bloco para editar ou remover';
  color: rgba(190, 205, 215, 0.72);
}

@media (min-width: 900px) {
  .support-admin-card[open] {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .support-admin-clean-create,
  .support-admin-clean-edit {
    grid-template-columns: 1fr !important;
  }
  .support-admin-group-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .support-admin-group-head span::after {
    content: '';
  }
}

/* Ajustes v15 - painel separado por páginas e usuários paginados */
.admin-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-shortcut-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.88), rgba(8, 11, 16, 0.88));
  box-shadow: var(--shadow);
  min-height: 130px;
}

.admin-shortcut-card:hover {
  border-color: rgba(200, 255, 0, 0.38);
  transform: translateY(-1px);
}

.admin-shortcut-card strong {
  color: var(--green);
  font-size: 18px;
}

.admin-shortcut-card span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-single-card {
  max-width: 780px;
}

.users-admin-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(320px, 1.2fr);
  margin-bottom: 22px;
}

.admin-users-search-card {
  align-self: start;
}

.admin-user-search-page {
  justify-content: flex-start;
  margin-left: 0;
}

.admin-user-search-page input {
  flex: 1 1 320px;
  width: auto;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
}

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

.pagination-page {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.pagination-page.active {
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-color: transparent;
}

.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.top-actions .user-menu .menu-dropdown a[href="/jb7"],
.top-actions .user-menu .menu-dropdown a[href="/jb7/assuntos/novo"],
.top-actions .user-menu .menu-dropdown a[href="/jb7/assuntos"],
.top-actions .user-menu .menu-dropdown a[href="/jb7/suporte"],
.top-actions .user-menu .menu-dropdown a[href="/jb7/usuarios"] {
  font-weight: 900;
}

@media (max-width: 980px) {
  .admin-shortcuts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .pagination-bar {
    justify-content: flex-start;
  }

  .pagination-pages {
    width: 100%;
    order: -1;
  }
}

/* Ajuste v16 - hierarquia de comentários, alertas no sino e bloqueio com tempo */
.notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  cursor: pointer;
}

.notification-toggle b {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(5, 7, 10, 0.95);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 470px;
  overflow: auto;
  display: none;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 11, 16, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
  z-index: 80;
}

.notification-menu.open .notification-dropdown {
  display: block;
}

.notification-dropdown header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.notification-dropdown header strong {
  color: #fff;
}

.notification-dropdown header span {
  color: var(--yellow);
  font-size: 12px;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.notification-item.is-unread {
  border-color: rgba(255, 223, 53, 0.36);
  background: rgba(255, 223, 53, 0.08);
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.notification-item.is-unread .notification-dot {
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 223, 53, 0.45);
}

.notification-item strong,
.notification-item small,
.notification-item em {
  display: block;
}

.notification-item strong {
  color: #fff;
  font-size: 13px;
  margin-bottom: 3px;
}

.notification-item small {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.notification-item em {
  color: #d8e0ea;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.notification-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notifications-read-form {
  margin-top: 10px;
}

.notifications-read-form button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.comment-card.admin-comment {
  border-color: rgba(255, 223, 53, 0.72) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 53, 0.20), transparent 15rem),
    linear-gradient(180deg, rgba(255, 223, 53, 0.10), rgba(255, 223, 53, 0.045)) !important;
  box-shadow: 0 20px 56px rgba(255, 223, 53, 0.12) !important;
}

.comment-card.admin-comment .comment-content > header strong,
.comment-card.admin-comment p {
  color: var(--yellow) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: .01em;
}

.comment-card.admin-comment .comment-content > header strong {
  font-size: 21px !important;
  text-shadow: 0 0 18px rgba(255, 223, 53, 0.25);
}

.comment-card.admin-comment p {
  font-size: 18px !important;
  line-height: 1.82 !important;
}

.comment-card.moderator-comment {
  border-color: rgba(64, 255, 147, 0.56) !important;
  background:
    radial-gradient(circle at top left, rgba(64, 255, 147, 0.16), transparent 15rem),
    linear-gradient(180deg, rgba(64, 255, 147, 0.08), rgba(124, 60, 255, 0.045)) !important;
  box-shadow: 0 18px 48px rgba(64, 255, 147, 0.09) !important;
}

.comment-card.moderator-comment .comment-content > header strong,
.comment-card.moderator-comment p {
  color: var(--green-2) !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.comment-card.moderator-comment .comment-content > header strong {
  font-size: 18px !important;
}

.comment-card.moderator-comment p {
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.comment-card.user-comment {
  border-color: rgba(124, 60, 255, 0.48) !important;
  background:
    radial-gradient(circle at top left, rgba(124, 60, 255, 0.15), transparent 14rem),
    rgba(124, 60, 255, 0.055) !important;
}

.comment-card.user-comment .comment-content > header strong,
.comment-card.user-comment p {
  color: #c7a8ff !important;
}

.admin-avatar,
.composer-avatar.role-admin {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 223, 53, 0.88) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.46), transparent 1.15rem),
    linear-gradient(135deg, #ffdf35, #8f6d00) !important;
  color: #1d1400 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 0 0 4px rgba(255, 223, 53, 0.10), 0 0 22px rgba(255, 223, 53, 0.18) !important;
}

.moderator-avatar,
.composer-avatar.role-moderator {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(64, 255, 147, 0.82) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.42), transparent 1.15rem),
    linear-gradient(135deg, #40ff93, #05683f) !important;
  color: #001c0e !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 0 0 4px rgba(64, 255, 147, 0.09), 0 0 20px rgba(64, 255, 147, 0.18) !important;
}

.user-avatar,
.composer-avatar.role-user {
  border-color: rgba(124, 60, 255, 0.75) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.28), transparent 1.15rem),
    linear-gradient(135deg, #7c3cff, #33136f) !important;
  color: #fff !important;
}

.moderator-mini,
.moderator-note {
  color: var(--green-2) !important;
  border-color: rgba(64, 255, 147, 0.36) !important;
}

.moderator-mini {
  background: rgba(64, 255, 147, 0.14) !important;
}

.alert-icon-btn {
  border: 1px solid rgba(255, 223, 53, 0.38);
  border-radius: 999px;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  background: rgba(255, 223, 53, 0.09);
  color: var(--yellow);
  cursor: pointer;
}

.alert-icon-btn:hover {
  background: rgba(255, 223, 53, 0.16);
}

.moderation-alert-form {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 223, 53, 0.28);
  border-radius: 14px;
  background: rgba(255, 223, 53, 0.06);
}

.moderation-alert-form label {
  display: grid;
  gap: 6px;
  color: #fff1b2;
  font-size: 13px;
}

.moderation-alert-form select,
.block-access-form select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(5, 7, 10, 0.92);
  color: #fff;
}

.moderation-alert-form textarea {
  min-height: 76px;
  resize: vertical;
}

.moderation-alert-actions {
  display: flex;
  justify-content: flex-end;
}

.block-access-form {
  grid-template-columns: 130px minmax(180px, 1fr) auto !important;
}

.moderator-promote-btn {
  border-color: rgba(64, 255, 147, 0.38) !important;
}

@media (max-width: 880px) {
  .block-access-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .notification-dropdown {
    right: -80px;
  }

  .comment-card.admin-comment p,
  .comment-card.moderator-comment p {
    font-size: 16px !important;
  }
}

.moderation-alert-form.hidden {
  display: none !important;
}

.comment-block-action-form {
  display: inline-grid;
  grid-template-columns: 110px auto;
  gap: 6px;
  align-items: center;
  margin: 2px 4px 2px 0;
}

.comment-block-action-form select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(5, 7, 10, 0.92);
  color: #fff;
  font-size: 12px;
}

@media (max-width: 880px) {
  .comment-block-action-form {
    grid-template-columns: 1fr;
  }
}

/* v17 - chat ao vivo com anexos temporários */
.discord-live-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.discord-channel-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 18px;
  min-height: 420px;
  background:
    radial-gradient(circle at 25% 0%, rgba(124, 60, 255, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(11, 15, 22, 0.96), rgba(7, 10, 15, 0.96));
}

.channel-server-badge {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #061009;
  font-weight: 950;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 18px 44px rgba(64, 255, 147, 0.18);
}

.discord-channel-panel h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.08;
  word-break: break-word;
}

.discord-channel-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.channel-rule-list {
  display: grid;
  gap: 8px;
  color: #cbd6e2;
  font-size: 13px;
}

.channel-rule-list span {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green-2);
  border: 1px solid rgba(64, 255, 147, 0.26);
  background: rgba(64, 255, 147, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.live-status-pill b {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: 0 0 0 6px rgba(64, 255, 147, 0.08);
}

.discord-chat-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 60, 255, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(13, 18, 26, 0.96), rgba(7, 10, 15, 0.98));
}

.chat-room-head {
  position: sticky;
  top: 88px;
  z-index: 8;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(11, 15, 22, 0.94);
  backdrop-filter: blur(16px);
}

.live-message-feed {
  max-height: min(72vh, 820px);
  overflow-y: auto;
  padding: 10px 16px 18px;
  gap: 0 !important;
  scroll-behavior: smooth;
}

.live-message-feed .comment-card {
  border-radius: 12px;
  border-color: transparent;
  border-left: 3px solid rgba(124, 60, 255, 0.42);
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 14px 12px;
}

.live-message-feed .comment-card:hover {
  background: rgba(255,255,255,.035);
}

.live-message-feed .comment-card.reply {
  margin-left: 44px;
  border-left-color: rgba(124, 60, 255, 0.8);
}

.comment-card.user-comment {
  border-left-color: rgba(124, 60, 255, 0.75) !important;
}

.comment-card.user-comment .comment-content > header strong,
.comment-card.user-comment p {
  color: #c7b6ff !important;
}

.comment-card.admin-comment {
  border-left-color: rgba(255, 223, 53, 0.9) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 53, 0.14), transparent 14rem),
    rgba(255, 223, 53, 0.045) !important;
}

.comment-card.admin-comment .comment-content > header strong,
.comment-card.admin-comment p {
  color: var(--yellow) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-shadow: 0 0 14px rgba(255, 223, 53, 0.18) !important;
}

.comment-card.moderator-comment {
  border-left-color: rgba(64, 255, 147, 0.9) !important;
  background:
    radial-gradient(circle at top left, rgba(64, 255, 147, 0.12), transparent 14rem),
    rgba(64, 255, 147, 0.045) !important;
}

.comment-card.moderator-comment .comment-content > header strong,
.comment-card.moderator-comment p {
  color: var(--green-2) !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.moderator-mini,
.moderator-note {
  color: var(--green-2) !important;
  border-color: rgba(64, 255, 147, 0.38) !important;
}

.moderator-mini {
  background: rgba(64, 255, 147, 0.14) !important;
}

.comment-image-card {
  width: min(100%, 520px);
  margin: 10px 0 4px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}

.comment-image-card a {
  display: block;
}

.comment-image-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(0,0,0,.34);
}

.comment-image-card figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.sticky-composer {
  position: sticky;
  bottom: 0;
  z-index: 9;
  margin: 0 !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  background: rgba(11, 15, 22, 0.98) !important;
  backdrop-filter: blur(18px);
  padding: 14px 16px 16px !important;
}

.composer-field-stack {
  display: grid;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.composer-field-stack textarea {
  min-height: 74px;
  border-radius: 16px;
  background: rgba(5, 7, 10, 0.62);
}

.composer-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.image-attach-btn,
.image-attach-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  padding: 9px 11px;
  border: 1px solid rgba(124, 60, 255, 0.36);
  border-radius: 999px;
  color: #dacfff;
  background: rgba(124, 60, 255, 0.10);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.image-attach-btn input,
.image-attach-inline input {
  display: none;
}

.upload-hint {
  color: var(--muted);
  font-size: 12px;
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12px;
}

.image-preview img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
}

.composer-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cooldown-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cooldown-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: 0 0 0 5px rgba(64, 255, 147, 0.08);
}

.sticky-composer.is-cooling .cooldown-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 223, 53, 0.09);
}

.sticky-composer button[disabled],
.reply-form button[disabled] {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.25);
}

.reply-form .image-attach-inline {
  margin-top: -4px;
}

@media (max-width: 960px) {
  .discord-live-shell {
    grid-template-columns: 1fr;
  }

  .discord-channel-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .chat-room-head {
    top: 78px;
  }

  .live-message-feed {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .composer-row {
    flex-direction: row;
  }

  .composer-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .live-message-feed .comment-card.reply {
    margin-left: 14px;
  }

  .comment-image-card img {
    max-height: 320px;
  }
}

.live-message-feed .comment-card.admin-comment {
  border: 1px solid rgba(255, 223, 53, 0.18) !important;
  border-left: 3px solid rgba(255, 223, 53, 0.95) !important;
}

.live-message-feed .comment-card.moderator-comment {
  border: 1px solid rgba(64, 255, 147, 0.18) !important;
  border-left: 3px solid rgba(64, 255, 147, 0.95) !important;
}

.live-message-feed .comment-card.user-comment {
  border: 1px solid rgba(124, 60, 255, 0.16) !important;
  border-left: 3px solid rgba(124, 60, 255, 0.95) !important;
}

/* Ajuste: painel do chat sem lista de regras visível para o usuário */
.compact-live-panel {
  gap: 12px;
}

.compact-live-panel .compact-live-info h2 {
  margin-bottom: 0;
}

.compact-live-panel .live-status-pill {
  margin-top: 4px;
}

.compact-live-panel .channel-rule-list,
.compact-live-panel p,
.sticky-composer .upload-hint,
.reply-form .upload-hint {
  display: none !important;
}

/* v18 - sala de chat fixa, sem blocos explicativos para usuário */
.discord-chat-app {
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  width: min(1500px, calc(100vw - 32px));
  height: calc(100vh - 116px);
  min-height: 620px;
  margin: 14px auto 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(8, 11, 17, .96);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.chat-sidebar {
  position: relative !important;
  top: auto !important;
  min-height: 0 !important;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  border-right: 1px solid rgba(255,255,255,.075) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 60, 255, .18), transparent 16rem),
    linear-gradient(180deg, rgba(12, 16, 24, .98), rgba(7, 10, 15, .99)) !important;
  box-shadow: none !important;
  padding: 16px 12px !important;
  align-content: start;
}

.chat-sidebar-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.chat-sidebar-back:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.chat-sidebar-section {
  display: grid;
  gap: 8px;
}

.chat-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 12px;
  color: #d7deea;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.25;
  word-break: break-word;
}

.chat-channel-item span {
  color: #9ea8b8;
  font-weight: 950;
}

.chat-channel-item.active {
  color: #fff;
  background: rgba(124, 60, 255, .16);
  border: 1px solid rgba(124, 60, 255, .22);
}

.chat-room-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 60, 255, .10), transparent 22rem),
    linear-gradient(180deg, rgba(11, 15, 22, .98), rgba(7, 10, 15, .99)) !important;
  box-shadow: none !important;
}

.chat-room-fixed-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(13, 18, 27, .98);
  z-index: 20;
}

.chat-room-title-block {
  min-width: 0;
}

.chat-room-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-hash {
  color: #9ea8b8;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.chat-room-title-line h1 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-title-block small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.chat-room-right-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.chat-admin-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}

.chat-admin-toolbar form {
  margin: 0;
}

.chat-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 18px;
  scroll-behavior: smooth;
}

.topic-chat-intro {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.topic-chat-intro strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.topic-chat-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.chat-room-panel .live-message-feed {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.chat-room-panel .live-message-feed .comment-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 8px !important;
  border-radius: 12px !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.chat-room-panel .live-message-feed .comment-card:hover {
  background: rgba(255,255,255,.045) !important;
}

.chat-room-panel .comment-content header {
  align-items: baseline;
  gap: 10px;
}

.chat-room-panel .comment-content p {
  margin-top: 4px;
  line-height: 1.45;
}

.chat-room-panel .comment-actions {
  opacity: .74;
  margin-top: 6px;
}

.chat-room-panel .comment-card:hover .comment-actions {
  opacity: 1;
}

.chat-room-panel .comment-image-card {
  width: min(100%, 480px);
  margin-top: 8px;
  border-radius: 12px;
}

.chat-room-panel .comment-image-card figcaption {
  display: none !important;
}

.chat-bottom-composer {
  position: relative !important;
  bottom: auto !important;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,.085) !important;
  background: rgba(13, 18, 27, .99) !important;
  padding: 10px 14px 12px !important;
}

.chat-bottom-composer .composer-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: end;
}

.chat-bottom-composer .composer-avatar {
  width: 34px !important;
  height: 34px !important;
  font-size: 11px !important;
  align-self: center;
}

.chat-bottom-composer .composer-field-stack {
  gap: 5px !important;
}

.chat-bottom-composer textarea {
  min-height: 42px !important;
  max-height: 100px !important;
  height: 42px;
  resize: vertical;
  border-radius: 13px !important;
  padding: 11px 13px !important;
  line-height: 1.35;
  background: rgba(255,255,255,.065) !important;
}

.compact-attach,
.chat-bottom-composer .composer-send-btn {
  height: 42px;
  align-self: center;
  white-space: nowrap;
}

.compact-attach {
  width: 44px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  font-size: 17px !important;
}

.chat-bottom-composer .composer-send-btn {
  padding: 0 16px !important;
  border-radius: 13px !important;
}

.composer-cooldown {
  margin: 7px 0 0 43px;
  font-size: 12px !important;
}

.composer-inline-notice {
  margin: 8px 0 0 43px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
}

.composer-inline-notice.danger {
  color: #ffd6d6;
  background: rgba(255, 80, 80, .10);
  border: 1px solid rgba(255, 80, 80, .20);
}

.composer-inline-notice.success {
  color: #caffdf;
  background: rgba(64, 255, 147, .09);
  border: 1px solid rgba(64, 255, 147, .20);
}

.chat-bottom-composer .image-preview {
  padding: 6px !important;
  margin-top: 4px;
}

.chat-bottom-composer .image-preview img {
  width: 54px !important;
  height: 36px !important;
}

.chat-room-panel .empty-state {
  margin: 10px 0;
}

@media (max-width: 980px) {
  .discord-chat-app {
    grid-template-columns: 1fr !important;
    width: min(100vw - 18px, 900px);
    height: calc(100vh - 104px);
    min-height: 560px;
  }

  .chat-sidebar {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .discord-chat-app {
    width: 100%;
    height: calc(100vh - 92px);
    min-height: 520px;
    margin-top: 6px !important;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .chat-room-fixed-header {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .chat-room-title-line h1 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .chat-scroll-area {
    padding: 10px 10px 14px;
  }

  .chat-bottom-composer {
    padding: 9px 10px 10px !important;
  }

  .chat-bottom-composer .composer-row {
    grid-template-columns: 30px minmax(0, 1fr) 40px;
  }

  .chat-bottom-composer .composer-send-btn {
    grid-column: 2 / 4;
    width: 100%;
  }

  .composer-cooldown,
  .composer-inline-notice {
    margin-left: 39px;
  }
}

/* v19 - layout de chat em tela cheia, sem estourar horizontal */
html,
body {
  overflow-x: hidden;
}

body.chat-page {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(124, 60, 255, 0.18), transparent 26rem),
    linear-gradient(180deg, #06080d 0%, #05070a 100%);
}

body.chat-page .app-shell {
  width: 100%;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 8px 10px 10px;
  overflow: hidden;
}

body.chat-page main {
  margin-top: 8px;
  height: calc(100vh - 76px);
  min-height: 0;
  overflow: hidden;
}

.topbar.has-topic-title {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 8px 12px;
  border-radius: 14px;
  top: 8px;
  z-index: 120;
  box-shadow: 0 14px 40px rgba(0,0,0,.34);
}

.topbar.has-topic-title .brand {
  min-width: 0;
  overflow: hidden;
}

.topbar.has-topic-title .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.topbar.has-topic-title .brand span {
  min-width: 0;
}

.topbar.has-topic-title .brand strong,
.topbar.has-topic-title .brand small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-topic-title {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.08);
  color: #eef3f8;
  justify-self: stretch;
}

.topbar-topic-title span {
  flex: 0 0 auto;
  color: #a2adbb;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.topbar-topic-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
}

.topbar.has-topic-title .top-actions {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
}

.topbar.has-topic-title .nav-link,
.topbar.has-topic-title .notification-toggle,
.topbar.has-topic-title .user-pill,
.topbar.has-topic-title .menu-toggle {
  min-height: 40px;
}

.topbar.has-topic-title .user-pill span:last-child {
  max-width: 145px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.chat-page .support-bot {
  display: grid !important;
  left: auto !important;
  right: 14px !important;
  bottom: auto !important;
  top: 68px !important;
  z-index: 10050 !important;
  justify-items: end !important;
  pointer-events: none !important;
}

body.chat-page .support-bot.open {
  pointer-events: auto !important;
}

body.chat-page .support-bot-fab {
  display: none !important;
}

body.chat-page .support-bot-panel {
  width: min(370px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 86px) !important;
  border-radius: 16px !important;
  pointer-events: auto !important;
}

body.chat-page .discord-chat-app {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 252px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.075);
  background: #070a0f;
  box-shadow: 0 22px 70px rgba(0,0,0,.36);
}

body.chat-page .chat-sidebar {
  height: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 10px !important;
  border-right: 1px solid rgba(255,255,255,.07) !important;
  background:
    linear-gradient(180deg, rgba(18, 22, 31, .98), rgba(10, 13, 19, .99)) !important;
}

body.chat-page .chat-sidebar-back,
body.chat-page .channel-server-badge,
body.chat-page .chat-sidebar .eyebrow {
  display: none !important;
}

body.chat-page .chat-sidebar-section {
  gap: 7px;
  margin-top: 2px;
}

body.chat-page .chat-channel-item {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border-radius: 9px;
  color: #d9dde6;
  font-size: 15px;
  font-weight: 850;
  background: transparent;
  border: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.chat-page .chat-channel-item.active {
  color: #fff;
  background: rgba(255,255,255,.085);
  border: 0;
}

body.chat-page .live-status-pill {
  margin: 14px 2px 0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

body.chat-page .chat-room-panel {
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 60, 255, .08), transparent 24rem),
    linear-gradient(180deg, rgba(9, 12, 18, .98), rgba(6, 8, 12, .99)) !important;
}

body.chat-page .chat-admin-only-strip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(10, 14, 21, .96);
}

body.chat-page .chat-admin-only-strip .chat-admin-toolbar {
  padding: 0;
  gap: 7px;
}

body.chat-page .chat-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 14px;
  scrollbar-gutter: stable;
}

body.chat-page .topic-chat-intro {
  max-width: 780px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,.035);
}

body.chat-page .chat-room-panel .live-message-feed {
  width: 100%;
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card {
  width: 100%;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px !important;
  margin: 0 !important;
  border-radius: 8px !important;
}

body.chat-page .comment-content,
body.chat-page .comment-author-line,
body.chat-page .comment-content p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.chat-page .comment-content header small {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.chat-page .chat-room-panel .empty-state {
  margin: 0 auto;
  max-width: 700px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

body.chat-page .chat-bottom-composer {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 9px 12px 10px !important;
  border-top: 1px solid rgba(255,255,255,.075) !important;
  background: rgba(13, 17, 24, .99) !important;
}

body.chat-page .chat-bottom-composer .composer-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 42px 84px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

body.chat-page .chat-bottom-composer .composer-avatar {
  width: 34px !important;
  height: 34px !important;
  font-size: 11px !important;
}

body.chat-page .chat-bottom-composer .composer-field-stack {
  min-width: 0;
  gap: 4px !important;
}

body.chat-page .chat-bottom-composer textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 96px !important;
  resize: none !important;
  overflow-y: hidden;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  line-height: 1.35;
  background: rgba(255,255,255,.075) !important;
}

body.chat-page .compact-attach,
body.chat-page .chat-bottom-composer .composer-send-btn {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  align-self: center;
}

body.chat-page .compact-attach {
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
}

body.chat-page .chat-bottom-composer .composer-send-btn {
  width: 84px;
  padding: 0 10px !important;
}

body.chat-page .composer-cooldown,
body.chat-page .composer-inline-notice {
  margin: 6px 0 0 42px;
  font-size: 12px !important;
}

body.chat-page .chat-bottom-composer .image-preview {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 1040px) {
  .topbar.has-topic-title {
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) auto;
  }

  .topbar.has-topic-title .user-pill span:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  body.chat-page .app-shell {
    padding: 6px 0 0;
  }

  body.chat-page main {
    height: calc(100vh - 66px);
    margin-top: 6px;
  }

  .topbar.has-topic-title {
    width: calc(100% - 12px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    height: 54px;
    padding: 7px 9px;
  }

  .topbar.has-topic-title .brand {
    display: none;
  }

  .topbar-topic-title {
    border-left: 0;
    padding: 0 4px;
  }

  .topbar.has-topic-title .top-actions .nav-link,
  .topbar.has-topic-title .notification-menu,
  .topbar.has-topic-title .user-pill {
    display: none;
  }

  body.chat-page .discord-chat-app {
    height: 100% !important;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    grid-template-columns: 1fr !important;
  }

  body.chat-page .chat-sidebar {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.chat-page .chat-bottom-composer .composer-row {
    grid-template-columns: 30px minmax(0, 1fr) 40px;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    grid-column: 2 / 4;
    width: 100%;
  }

  body.chat-page .composer-cooldown,
  body.chat-page .composer-inline-notice {
    margin-left: 38px;
  }
}

/* v20 - chat mais compacto + correção visual final */
html:has(body.chat-page),
body.chat-page {
  height: 100%;
  overflow: hidden !important;
}

body.chat-page .app-shell {
  width: 100%;
  height: 100dvh;
  padding: 6px 8px 8px !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

body.chat-page main {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  margin-top: 6px !important;
  overflow: hidden !important;
}

body.chat-page .topbar.has-topic-title {
  flex: 0 0 auto;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: 56px;
  margin: 0 !important;
  padding: 8px 12px !important;
  display: grid !important;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) auto !important;
  gap: 10px;
  align-items: center;
  overflow: visible;
}

body.chat-page .topbar-topic-title {
  justify-self: center;
  width: min(620px, 100%);
  min-width: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

body.chat-page .topbar-topic-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1;
}

body.chat-page .topbar-topic-title span {
  flex: 0 0 auto;
  color: #9ea8b8;
  font-weight: 950;
}

body.chat-page .discord-chat-app {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  grid-template-columns: 224px minmax(0, 1fr) !important;
}

body.chat-page .chat-sidebar {
  padding: 10px 8px !important;
}

body.chat-page .chat-channel-item {
  padding: 8px 9px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

body.chat-page .live-status-pill {
  margin-top: 10px !important;
  padding: 6px 9px !important;
  font-size: 11px !important;
}

body.chat-page .chat-admin-only-strip {
  padding: 6px 10px !important;
}

body.chat-page .chat-admin-only-strip .small-btn {
  min-height: 28px !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
}

body.chat-page .chat-scroll-area {
  padding: 8px 8px 6px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: auto !important;
}

body.chat-page .topic-chat-intro {
  display: none !important;
}

body.chat-page .chat-room-panel .live-message-feed {
  display: block !important;
  overflow: visible !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card {
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  border-left-width: 2px !important;
  min-height: 0 !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card + .comment-card {
  margin-top: 1px !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card.reply {
  margin-left: 34px !important;
}

body.chat-page .comment-avatar,
body.chat-page .comment-avatar-wrap .comment-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  font-size: 9px !important;
  border-radius: 9px !important;
}

body.chat-page .comment-content {
  min-width: 0 !important;
  padding: 0 !important;
}

body.chat-page .comment-content header {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  min-height: 16px !important;
  margin: 0 !important;
}

body.chat-page .comment-author-line {
  gap: 5px !important;
  min-width: 0 !important;
}

body.chat-page .comment-author-line strong {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

body.chat-page .comment-content header small {
  font-size: 10px !important;
  line-height: 1 !important;
  opacity: .68;
}

body.chat-page .admin-mini,
body.chat-page .moderator-mini,
body.chat-page .blocked-mini,
body.chat-page .ok-mini {
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
}

body.chat-page .comment-content p {
  margin: 1px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  max-width: 920px;
}

body.chat-page .comment-actions {
  margin-top: 2px !important;
  gap: 5px !important;
  min-height: 18px;
  opacity: 0;
}

body.chat-page .comment-card:hover .comment-actions,
body.chat-page .comment-card:focus-within .comment-actions {
  opacity: .95 !important;
}

body.chat-page .comment-actions .small-btn,
body.chat-page .comment-actions button,
body.chat-page .danger-link,
body.chat-page .alert-icon-btn {
  min-height: 20px !important;
  padding: 2px 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

body.chat-page .comment-image-card {
  width: min(100%, 340px) !important;
  margin: 5px 0 1px !important;
  border-radius: 8px !important;
}

body.chat-page .comment-image-card img {
  max-height: 170px !important;
  width: 100% !important;
  object-fit: contain !important;
}

body.chat-page .reply-form {
  margin-top: 4px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px 70px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.chat-page .reply-form.hidden {
  display: none !important;
}

body.chat-page .reply-form textarea {
  min-height: 34px !important;
  height: 34px !important;
  max-height: 78px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  resize: none !important;
  overflow-y: hidden !important;
}

body.chat-page .image-attach-inline {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

body.chat-page .reply-form .image-preview {
  grid-column: 1 / -1;
  max-width: 300px;
  margin: 0 !important;
  padding: 5px !important;
}

body.chat-page .chat-bottom-composer {
  padding: 6px 8px 7px !important;
}

body.chat-page .chat-bottom-composer .composer-row {
  grid-template-columns: 28px minmax(0, 1fr) 36px 74px !important;
  gap: 6px !important;
}

body.chat-page .chat-bottom-composer .composer-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 9px !important;
  border-radius: 8px !important;
}

body.chat-page .chat-bottom-composer textarea {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 82px !important;
  padding: 8px 11px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

body.chat-page .compact-attach,
body.chat-page .chat-bottom-composer .composer-send-btn {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 9px !important;
}

body.chat-page .compact-attach {
  width: 36px !important;
  min-width: 36px !important;
  font-size: 15px !important;
}

body.chat-page .chat-bottom-composer .composer-send-btn {
  width: 74px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
}

body.chat-page .composer-cooldown,
body.chat-page .composer-inline-notice {
  margin: 4px 0 0 34px !important;
  font-size: 11px !important;
}

body.chat-page .chat-bottom-composer .image-preview {
  margin-top: 3px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}

body.chat-page .chat-bottom-composer .image-preview img,
body.chat-page .reply-form .image-preview img {
  width: 48px !important;
  height: 30px !important;
  border-radius: 6px !important;
}

body.chat-page .image-preview span {
  font-size: 11px !important;
}

@media (max-width: 820px) {
  body.chat-page .discord-chat-app {
    grid-template-columns: 1fr !important;
  }

  body.chat-page .topbar.has-topic-title {
    grid-template-columns: minmax(0, 1fr) auto !important;
    height: 52px !important;
  }

  body.chat-page .topbar-topic-title {
    justify-self: start;
    justify-content: flex-start;
    padding-left: 2px;
  }
}

@media (max-width: 560px) {
  body.chat-page .chat-bottom-composer .composer-row {
    grid-template-columns: 26px minmax(0, 1fr) 34px !important;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    grid-column: 2 / 4;
    width: 100% !important;
  }
}

/* v21 - ajustes finais do chat: botões alinhados e suporte funcionando dentro do chat */
body.chat-page,
body.chat-page * {
  box-sizing: border-box;
}

body.chat-page .flash {
  flex: 0 0 auto;
  margin: 6px 0 0 !important;
  padding: 9px 14px !important;
  min-height: 0 !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

body.chat-page .chat-room-panel {
  position: relative;
}

body.chat-page .chat-admin-only-strip {
  padding: 7px 10px !important;
  min-height: 42px !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  background: linear-gradient(180deg, rgba(13,17,25,.96), rgba(9,12,18,.94)) !important;
}

body.chat-page .chat-admin-only-strip .chat-admin-toolbar {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body.chat-page .chat-admin-only-strip .chat-admin-toolbar::before {
  content: 'Ações do assunto';
  margin-right: auto;
  color: #7f8898;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

body.chat-page .chat-admin-only-strip form {
  margin: 0 !important;
  display: inline-flex !important;
}

body.chat-page .chat-admin-only-strip .small-btn,
body.chat-page .chat-admin-only-strip .warning-btn,
body.chat-page .chat-admin-only-strip .danger-btn,
body.chat-page .chat-admin-only-strip .primary-btn {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body.chat-page .chat-admin-only-strip .warning-btn {
  color: #f7d769 !important;
  border: 1px solid rgba(247, 215, 105, .35) !important;
  background: rgba(247, 215, 105, .10) !important;
}

body.chat-page .chat-admin-only-strip .danger-btn {
  color: #ff9aa9 !important;
  border: 1px solid rgba(255, 95, 117, .36) !important;
  background: rgba(255, 95, 117, .10) !important;
}

body.chat-page .chat-admin-only-strip .primary-btn {
  color: #9effb4 !important;
  border: 1px solid rgba(74, 255, 122, .35) !important;
  background: rgba(74, 255, 122, .10) !important;
}

body.chat-page .chat-scroll-area {
  padding-top: 10px !important;
}

body.chat-page .chat-room-panel .empty-state {
  width: min(680px, 76%) !important;
  margin: 0 auto !important;
  padding: 18px 16px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

body.chat-page .chat-bottom-composer {
  padding: 7px 10px 8px !important;
  background: linear-gradient(180deg, rgba(15,19,27,.98), rgba(10,13,19,.99)) !important;
}

body.chat-page .chat-bottom-composer .composer-row {
  grid-template-columns: 30px minmax(0, 1fr) 38px 78px !important;
  align-items: end !important;
  gap: 7px !important;
}

body.chat-page .chat-bottom-composer .composer-field-stack {
  align-self: stretch !important;
  display: flex !important;
  justify-content: center !important;
}

body.chat-page .chat-bottom-composer textarea {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 84px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  background: #20242b !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18) !important;
}

body.chat-page .compact-attach,
body.chat-page .chat-bottom-composer .composer-send-btn {
  height: 38px !important;
  min-height: 38px !important;
  align-self: end !important;
}

body.chat-page .compact-attach {
  width: 38px !important;
  min-width: 38px !important;
  border-color: rgba(168,85,247,.42) !important;
  background: rgba(124,58,237,.12) !important;
}

body.chat-page .chat-bottom-composer .composer-send-btn {
  width: 78px !important;
}

body.chat-page .composer-cooldown,
body.chat-page .composer-inline-notice {
  margin: 5px 0 0 37px !important;
  min-height: 14px !important;
}

body.chat-page .support-bot {
  display: grid !important;
  left: auto !important;
  right: 14px !important;
  bottom: auto !important;
  top: 68px !important;
  z-index: 10050 !important;
  justify-items: end !important;
  pointer-events: none !important;
}

body.chat-page .support-bot.open {
  pointer-events: auto !important;
}

body.chat-page .support-bot-fab {
  display: none !important;
}

body.chat-page .support-bot-panel {
  width: min(370px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 86px) !important;
  border-radius: 16px !important;
  pointer-events: auto !important;
}

body.chat-page .support-bot.open .support-bot-panel {
  display: grid !important;
}

@media (max-width: 820px) {
  body.chat-page .topbar.has-topic-title .support-nav-link {
    display: inline-flex !important;
  }

  body.chat-page .support-bot {
    top: 62px !important;
    right: 8px !important;
  }

  body.chat-page .chat-admin-only-strip .chat-admin-toolbar {
    justify-content: flex-start !important;
  }

  body.chat-page .chat-admin-only-strip .chat-admin-toolbar::before {
    width: 100%;
    margin: 0 0 2px !important;
  }
}

@media (max-width: 560px) {
  body.chat-page .chat-bottom-composer .composer-row {
    grid-template-columns: 28px minmax(0, 1fr) 36px !important;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    grid-column: 2 / 4 !important;
    width: 100% !important;
  }
}

/* v22 - alinhamento do topo e ações admin compactas */
body.chat-page .topbar.has-topic-title {
  height: 56px !important;
  align-items: center !important;
}

body.chat-page .topbar.has-topic-title .top-actions {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  gap: 8px !important;
  transform: translateY(-2px);
}

body.chat-page .topbar.has-topic-title .nav-link,
body.chat-page .topbar.has-topic-title .notification-toggle,
body.chat-page .topbar.has-topic-title .user-pill,
body.chat-page .topbar.has-topic-title .menu-toggle {
  height: 42px !important;
  min-height: 42px !important;
  line-height: 1 !important;
  align-items: center !important;
}

body.chat-page .topbar.has-topic-title .nav-link {
  padding: 0 14px !important;
  border-radius: 12px !important;
}

body.chat-page .topbar.has-topic-title .notification-toggle {
  width: 42px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

body.chat-page .topbar.has-topic-title .user-pill {
  padding: 0 11px !important;
  border-radius: 13px !important;
  gap: 8px !important;
}

body.chat-page .topbar.has-topic-title .user-pill .mini-avatar {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 12px !important;
}

body.chat-page .topbar.has-topic-title .user-pill small {
  margin-top: 2px !important;
  line-height: 1 !important;
}

body.chat-page .topbar.has-topic-title .menu-toggle {
  width: 48px !important;
  padding: 0 !important;
  border-radius: 13px !important;
}

body.chat-page .chat-room-panel.has-admin-tools {
  position: relative !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 35 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .chat-admin-toolbar {
  width: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .chat-admin-toolbar::before {
  display: none !important;
  content: none !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip form {
  margin: 0 !important;
  display: inline-flex !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .small-btn,
body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .warning-btn,
body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .danger-btn,
body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .primary-btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.22) !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-scroll-area {
  padding-top: 48px !important;
}

body.chat-page .chat-room-panel.has-admin-tools .empty-state {
  margin-top: 4px !important;
}

@media (max-width: 980px) {
  body.chat-page .topbar.has-topic-title .top-actions {
    transform: translateY(-1px);
  }

  body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip {
    top: 7px !important;
    right: 8px !important;
    left: 8px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip::-webkit-scrollbar {
    display: none;
  }

  body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .chat-admin-toolbar {
    justify-content: flex-end !important;
    min-width: max-content;
  }

  body.chat-page .chat-room-panel.has-admin-tools .chat-scroll-area {
    padding-top: 46px !important;
  }
}

@media (max-width: 820px) {
  body.chat-page .topbar.has-topic-title .top-actions {
    transform: none;
  }

  body.chat-page .topbar.has-topic-title .support-nav-link,
  body.chat-page .topbar.has-topic-title .menu-toggle {
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* v23 - chat/forum em padrão compacto tipo Discord */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .32) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, .30);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, .48);
  background-clip: padding-box;
}

body.chat-page .chat-scroll-area {
  padding-right: 6px !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(88, 101, 242, .42) transparent !important;
}

body.chat-page .chat-scroll-area::-webkit-scrollbar,
body.chat-page .live-message-feed::-webkit-scrollbar,
.support-bot-messages::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
  width: 8px;
}

body.chat-page .chat-scroll-area::-webkit-scrollbar-thumb,
body.chat-page .live-message-feed::-webkit-scrollbar-thumb,
.support-bot-messages::-webkit-scrollbar-thumb,
.notification-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(88, 101, 242, .44);
  background-clip: padding-box;
}

body.chat-page .chat-room-panel .live-message-feed {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 0 8px !important;
  gap: 0 !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card,
body.chat-page .chat-room-panel .live-message-feed .comment-card.reply,
body.chat-page .chat-room-panel .live-message-feed .comment-card.admin-comment,
body.chat-page .chat-room-panel .live-message-feed .comment-card.moderator-comment,
body.chat-page .chat-room-panel .live-message-feed .comment-card.user-comment,
body.chat-page .comment-card.admin-comment,
body.chat-page .comment-card.moderator-comment,
body.chat-page .comment-card.user-comment,
body.chat-page .comment-card.my-comment {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 2px 10px !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card + .comment-card {
  margin-top: 0 !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card.reply {
  margin-left: 28px !important;
  padding-left: 8px !important;
}

body.chat-page .chat-room-panel .live-message-feed .comment-card:hover,
body.chat-page .chat-room-panel .live-message-feed .comment-card:focus-within {
  background: rgba(78, 84, 96, .18) !important;
}

body.chat-page .comment-card.admin-comment::before,
body.chat-page .comment-card.moderator-comment::before,
body.chat-page .comment-card.user-comment::before {
  content: none !important;
  display: none !important;
}

body.chat-page .comment-avatar,
body.chat-page .comment-avatar-wrap .comment-avatar,
body.chat-page .comment-card.reply .comment-avatar,
body.chat-page .admin-avatar,
body.chat-page .moderator-avatar,
body.chat-page .user-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin-top: 1px !important;
  border-radius: 50% !important;
  font-size: 9px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.chat-page .comment-content {
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
  color: #dbdee1 !important;
  line-height: 1.32 !important;
}

body.chat-page .comment-content > header {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 7px 0 0 !important;
  padding: 0 !important;
  vertical-align: baseline !important;
}

body.chat-page .comment-author-line {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

body.chat-page .comment-author-line strong,
body.chat-page .comment-card.admin-comment .comment-content > header strong,
body.chat-page .comment-card.moderator-comment .comment-content > header strong,
body.chat-page .comment-card.user-comment .comment-content > header strong {
  font-family: inherit !important;
  color: #f2f3f5 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.chat-page .comment-content > header small {
  color: #8e959e !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  opacity: .85 !important;
  white-space: nowrap !important;
}

body.chat-page .comment-content p,
body.chat-page .comment-card.admin-comment p,
body.chat-page .comment-card.moderator-comment p,
body.chat-page .comment-card.user-comment p {
  display: inline !important;
  margin: 0 !important;
  color: #dbdee1 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  white-space: pre-wrap !important;
  text-shadow: none !important;
}

body.chat-page .admin-mini,
body.chat-page .moderator-mini,
body.chat-page .blocked-mini,
body.chat-page .ok-mini {
  display: inline-flex !important;
  align-items: center !important;
  height: 15px !important;
  padding: 0 5px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body.chat-page .admin-mini {
  color: #2f2500 !important;
  background: #fee75c !important;
  border: 0 !important;
}

body.chat-page .moderator-mini {
  color: #071b11 !important;
  background: #57f287 !important;
  border: 0 !important;
}

body.chat-page .comment-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 0 8px !important;
  opacity: 0 !important;
  vertical-align: baseline !important;
}

body.chat-page .comment-card:hover .comment-actions,
body.chat-page .comment-card:focus-within .comment-actions {
  opacity: .95 !important;
}

body.chat-page .comment-actions .small-btn,
body.chat-page .comment-actions button,
body.chat-page .danger-link,
body.chat-page .alert-icon-btn {
  min-height: 18px !important;
  height: 18px !important;
  padding: 0 6px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.chat-page .comment-image-card {
  display: block !important;
  width: min(100%, 260px) !important;
  margin: 5px 0 2px !important;
  border-radius: 8px !important;
}

body.chat-page .comment-image-card img {
  max-height: 150px !important;
  object-fit: contain !important;
}

body.chat-page .reply-form,
body.chat-page .moderation-alert-form {
  margin-top: 5px !important;
}

body.chat-page .image-attach-btn,
body.chat-page .image-attach-inline,
.image-attach-btn,
.image-attach-inline {
  position: relative !important;
  overflow: hidden !important;
}

body.chat-page .image-attach-btn input,
body.chat-page .image-attach-inline input,
.image-attach-btn input,
.image-attach-inline input {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

body.chat-page .chat-bottom-composer {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background: #111318 !important;
}

body.chat-page .chat-bottom-composer textarea {
  background: #383a40 !important;
  color: #f2f3f5 !important;
  border: 0 !important;
  border-radius: 8px !important;
}

body.chat-page .chat-bottom-composer textarea::placeholder {
  color: #b5bac1 !important;
}


/* v24 - canais laterais, mensagem abaixo do usuario e chat sem anexo de imagem */
body.chat-page .chat-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.chat-page .channel-list-section {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.chat-page .chat-channel-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: grid !important;
  align-content: start !important;
  gap: 2px !important;
  padding: 2px 2px 8px 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(79, 84, 92, .48) transparent !important;
}

body.chat-page .chat-channel-list::-webkit-scrollbar,
body.chat-page .chat-scroll-area::-webkit-scrollbar {
  width: 7px !important;
}

body.chat-page .chat-channel-list::-webkit-scrollbar-track,
body.chat-page .chat-scroll-area::-webkit-scrollbar-track {
  background: transparent !important;
}

body.chat-page .chat-channel-list::-webkit-scrollbar-thumb,
body.chat-page .chat-scroll-area::-webkit-scrollbar-thumb {
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(79, 84, 92, .50) !important;
  background-clip: padding-box !important;
}

body.chat-page .chat-channel-item {
  min-height: 28px !important;
  padding: 5px 8px !important;
  color: #949ba4 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px !important;
}

body.chat-page .chat-channel-item:hover {
  color: #dbdee1 !important;
  background: rgba(78, 84, 96, .26) !important;
}

body.chat-page .chat-channel-item.active {
  color: #fff !important;
  background: rgba(88, 101, 242, .62) !important;
}

body.chat-page .chat-channel-item span {
  flex: 0 0 auto !important;
  color: currentColor !important;
  opacity: .72 !important;
}

body.chat-page .chat-channel-item em {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-style: normal !important;
}

body.chat-page .chat-channel-empty {
  display: block !important;
  padding: 8px !important;
  color: #8e959e !important;
  font-size: 12px !important;
}

body.chat-page .comment-content > header {
  display: flex !important;
  width: 100% !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
}

body.chat-page .comment-author-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

body.chat-page .comment-content p,
body.chat-page .comment-card.admin-comment p,
body.chat-page .comment-card.moderator-comment p,
body.chat-page .comment-card.user-comment p {
  display: block !important;
  width: 100% !important;
  margin: 1px 0 0 0 !important;
  color: #dbdee1 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  white-space: pre-wrap !important;
}

body.chat-page .comment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 3px 0 0 0 !important;
}

body.chat-page .chat-bottom-composer .composer-row {
  grid-template-columns: 34px minmax(0, 1fr) 84px !important;
}

body.chat-page .chat-bottom-composer .image-preview,
body.chat-page .image-attach-btn,
body.chat-page .image-attach-inline,
body.chat-page .compact-attach {
  display: none !important;
}

body.chat-page .reply-form {
  grid-template-columns: minmax(0, 1fr) 70px !important;
}

@media (max-width: 560px) {
  body.chat-page .chat-bottom-composer .composer-row {
    grid-template-columns: 30px minmax(0, 1fr) !important;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
}


/* v25 - admin dourado e contagem de usuarios online */
body.chat-page .online-status-pill {
  display: flex !important;
  width: calc(100% - 4px) !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin-top: 10px !important;
}

body.chat-page .online-status-pill strong {
  color: #b5bac1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.chat-page .comment-card.admin-comment .comment-content > header strong,
body.chat-page .comment-card.admin-comment .comment-content p,
body.chat-page .live-message-feed .comment-card.admin-comment .comment-content p {
  color: #fee75c !important;
}

body.chat-page .comment-card.admin-comment .comment-content p {
  font-family: inherit !important;
  text-shadow: none !important;
}

/* v26 - resposta estilo Discord: contexto no composer e resposta como mensagem normal */
body.chat-page .chat-room-panel .live-message-feed .comment-card.reply,
body.chat-page .chat-room-panel .live-message-feed .comment-card.comment-card.reply {
  margin-left: 0 !important;
  padding-left: 10px !important;
  border-left: 0 !important;
  background: transparent !important;
}

body.chat-page .reply-reference {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: min(760px, 100%) !important;
  margin: 0 0 3px 0 !important;
  color: #949ba4 !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  opacity: .92 !important;
}

body.chat-page .reply-reference:hover {
  color: #dbdee1 !important;
  text-decoration: underline !important;
}

body.chat-page .reply-reference span {
  flex: 0 0 auto !important;
  color: #b5bac1 !important;
  font-weight: 800 !important;
}

body.chat-page .reply-reference em {
  min-width: 0 !important;
  max-width: 420px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #8e959e !important;
  font-style: normal !important;
}

body.chat-page .composer-reply-context {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 12px 6px 44px !important;
  padding: 7px 9px !important;
  border-left: 3px solid #5865f2 !important;
  border-radius: 6px !important;
  background: rgba(88, 101, 242, .14) !important;
  color: #dbdee1 !important;
}

body.chat-page .composer-reply-context.hidden {
  display: none !important;
}

body.chat-page .composer-reply-context div {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.chat-page .composer-reply-context strong {
  min-width: 0 !important;
  color: #f2f3f5 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

body.chat-page .composer-reply-context small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #b5bac1 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

body.chat-page .composer-reply-context button {
  flex: 0 0 auto !important;
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.08) !important;
  color: #f2f3f5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.chat-page .composer-reply-context button:hover {
  background: rgba(255,255,255,.16) !important;
}

@media (max-width: 560px) {
  body.chat-page .composer-reply-context {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body.chat-page .reply-reference {
    flex-wrap: wrap !important;
  }
}

/* v27 - marca respostas aos meus comentários acima do input */
body.chat-page .reply-notifications {
  display: block !important;
  margin: 0 12px 7px 44px !important;
}

body.chat-page .reply-notifications.hidden {
  display: none !important;
}

body.chat-page .reply-notification-card {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(88, 101, 242, .42) !important;
  border-radius: 8px !important;
  background: rgba(88, 101, 242, .16) !important;
  color: #f2f3f5 !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
}

body.chat-page .reply-notification-card:hover {
  border-color: rgba(88, 101, 242, .72) !important;
  background: rgba(88, 101, 242, .24) !important;
}

body.chat-page .reply-notification-icon {
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(88, 101, 242, .35) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

body.chat-page .reply-notification-text {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

body.chat-page .reply-notification-text strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #f2f3f5 !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

body.chat-page .reply-notification-text small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #c7cad1 !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

body.chat-page .reply-notification-card em {
  color: #fff !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body.chat-page .comment-card.comment-jump-highlight {
  animation: hookForumCommentJump 1.8s ease-out 1 !important;
}

@keyframes hookForumCommentJump {
  0% { background: rgba(88, 101, 242, .36); }
  45% { background: rgba(88, 101, 242, .20); }
  100% { background: transparent; }
}

@media (max-width: 560px) {
  body.chat-page .reply-notifications {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body.chat-page .reply-notification-card {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    padding: 7px 8px !important;
  }
}

/* v28 - edição de comentários e tempo por chat */
body.chat-page .comment-edited-label {
  color: #7f8898 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  opacity: .8 !important;
}

body.chat-page .inline-edit-form {
  margin-top: 4px !important;
  display: grid !important;
  gap: 6px !important;
}

body.chat-page .inline-edit-form textarea {
  width: 100% !important;
  min-height: 58px !important;
  max-height: 160px !important;
  resize: vertical !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  background: #20242b !important;
  color: #eef2f7 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.chat-page .inline-edit-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

body.chat-page .inline-edit-actions small {
  color: #7f8898 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

body.chat-page .comment-card.is-editing .comment-actions {
  opacity: 1 !important;
}

body.chat-page .chat-room-panel.has-admin-tools .chat-admin-only-strip .chat-admin-toolbar {
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

body.chat-page .chat-cooldown-form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 5px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.045) !important;
}

body.chat-page .chat-cooldown-form span {
  color: #b7c0cf !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
}

body.chat-page .chat-cooldown-form select,
body.chat-page .chat-cooldown-form input[type="number"] {
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #161a22 !important;
  color: #edf2f7 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 0 7px !important;
}

body.chat-page .chat-cooldown-form input[type="number"] {
  width: 70px !important;
}

body.chat-page .chat-cooldown-form input[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body.chat-page .chat-cooldown-form {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* v30 - Download Hook com MacOS Legacy */
.brand-download-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.download-hook-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.download-hook-toggle {
  border: 1px solid rgba(200, 255, 0, 0.28);
  border-radius: 12px;
  min-height: 38px;
  padding: 9px 13px;
  color: #07100b;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(64, 255, 147, 0.14);
}

.download-hook-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  min-width: 230px;
  display: none;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(8, 11, 16, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
  z-index: 90;
}

.download-hook-menu.open .download-hook-dropdown {
  display: grid;
}

.download-hook-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.download-hook-dropdown a strong,
.download-hook-dropdown a small {
  display: block;
}

.download-hook-dropdown a small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.download-hook-dropdown a:hover {
  border-color: rgba(200, 255, 0, 0.36);
  color: var(--green);
}

.installer-admin-card {
  border-color: rgba(200, 255, 0, 0.16);
}

.installer-admin-head {
  align-items: flex-start;
}

.installer-admin-links,
.installer-upload-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.installer-upload-form {
  align-items: end;
}

.installer-upload-form label {
  flex: 1 1 280px;
}

.installer-upload-form button {
  flex: 0 0 auto;
}

.installer-upload-form input[type="file"] {
  padding: 10px;
}

@media (max-width: 780px) {
  .topbar {
    align-items: stretch;
  }

  .brand-download-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .download-hook-menu {
    margin-left: 54px;
  }

  .download-hook-dropdown {
    left: auto;
    right: 0;
  }

  .installer-upload-form button,
  .installer-admin-links {
    width: 100%;
  }

  .installer-admin-links a,
  .installer-upload-form button {
    justify-content: center;
  }
}

/* v31 - Login mobile no topo */
@media (max-width: 820px) {
  body:not(.chat-page) main {
    margin-top: 10px;
  }

  .auth-grid.discord-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .auth-grid.discord-layout .auth-card {
    order: 1;
    width: 100%;
    position: relative;
    top: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .auth-grid.discord-layout .hero-card {
    order: 2;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .auth-grid.discord-layout .hero-logo {
    width: 74px;
    height: 74px;
    margin-bottom: 10px;
  }

  .auth-grid.discord-layout h1 {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 10px;
  }

  .auth-grid.discord-layout .hero-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .auth-grid.discord-layout .hero-points {
    gap: 7px;
    margin: 12px 0 0;
  }

  .auth-grid.discord-layout .hero-points span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .auth-grid.discord-layout .screen-preview {
    display: none;
  }

  .auth-tabs {
    margin-bottom: 14px;
  }

  .auth-form button.primary-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .auth-grid.discord-layout .hero-card {
    padding: 14px;
  }

  .auth-grid.discord-layout .hero-logo {
    width: 62px;
    height: 62px;
  }

  .auth-grid.discord-layout h1 {
    font-size: 26px;
  }
}

/* v32 - Mobile limpo do Forum Hook */
@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(124, 60, 255, 0.20), transparent 18rem),
      linear-gradient(180deg, #05070a 0%, #080b10 100%);
  }

  .app-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 8px 28px !important;
  }

  .topbar:not(.has-topic-title) {
    position: sticky !important;
    top: 6px !important;
    z-index: 200 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }

  .brand-download-wrap {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .brand {
    min-width: 0 !important;
    gap: 8px !important;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .brand span {
    min-width: 0 !important;
  }

  .brand strong {
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
  }

  .brand small {
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
  }

  .download-hook-menu {
    display: none !important;
  }

  .top-actions {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  .top-actions > .nav-link:not(.support-nav-link),
  .top-actions > .admin-link,
  .top-actions > .user-pill {
    display: none !important;
  }

  .support-nav-link,
  .notification-toggle,
  #hookMenuToggle.hook-menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 0 !important;
  }

  .support-nav-link::before {
    content: '?';
    font-size: 17px;
    font-weight: 950;
    color: var(--green);
  }

  .notification-toggle span,
  #hookMenuToggle.hook-menu-toggle span {
    font-size: 18px !important;
  }

  #hookUserMenu.hook-user-menu {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    margin-left: 0 !important;
  }

  #hookMenuDropdown.hook-menu-dropdown {
    right: 0 !important;
    top: calc(100% + 8px) !important;
    width: min(235px, calc(100vw - 18px)) !important;
    min-width: min(235px, calc(100vw - 18px)) !important;
    max-width: calc(100vw - 18px) !important;
  }

  .notification-dropdown {
    position: fixed !important;
    top: 64px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body:not(.chat-page) main {
    margin-top: 10px !important;
  }

  .forum-hero.discord-forum-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    min-height: 0 !important;
  }

  .forum-hero.discord-forum-hero .eyebrow {
    font-size: 10px !important;
    margin-bottom: 5px !important;
  }

  .forum-hero.discord-forum-hero h1 {
    font-size: 28px !important;
    line-height: .95 !important;
    margin: 0 0 8px !important;
  }

  .forum-hero.discord-forum-hero p {
    max-width: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .forum-hero-logo {
    display: none !important;
  }

  .content-card,
  .forum-main-card,
  .featured-section {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .featured-section,
  .forum-main-card {
    margin-top: 10px !important;
  }

  .section-head {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .section-head h2 {
    font-size: 19px !important;
    line-height: 1.1 !important;
  }

  .section-head .muted {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .featured-topic-card {
    padding: 13px !important;
    border-radius: 15px !important;
  }

  .featured-topic-card h3 {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  .topic-list.discord-topic-list {
    gap: 8px !important;
  }

  .topic-row {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .topic-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  .topic-main {
    min-width: 0 !important;
  }

  .topic-title-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .topic-title-line strong {
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  .status-badge {
    font-size: 10px !important;
    padding: 4px 7px !important;
  }

  .topic-row p {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .topic-row small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .topic-meta {
    grid-column: 2 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  .topic-meta strong,
  .topic-meta span,
  .topic-meta small {
    display: inline !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .topic-meta span::after {
    content: ' •';
    color: var(--muted);
  }
}

@media (max-width: 820px) {
  html:has(body.chat-page),
  body.chat-page {
    height: 100%;
    overflow: hidden !important;
  }

  body.chat-page .app-shell {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 6px 0 0 !important;
    overflow: hidden !important;
  }

  body.chat-page .topbar.has-topic-title {
    position: relative !important;
    top: auto !important;
    z-index: 300 !important;
    width: calc(100% - 12px) !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 6px !important;
    padding: 6px 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    border-radius: 15px !important;
  }

  body.chat-page .topbar.has-topic-title .brand-download-wrap,
  body.chat-page .topbar.has-topic-title .brand,
  body.chat-page .topbar.has-topic-title .download-hook-menu,
  body.chat-page .topbar.has-topic-title .top-actions > .nav-link,
  body.chat-page .topbar.has-topic-title .notification-menu,
  body.chat-page .topbar.has-topic-title .user-pill {
    display: none !important;
  }

  body.chat-page .topbar-topic-title {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-left: 0 !important;
  }

  body.chat-page .topbar-topic-title strong {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  body.chat-page .topbar-topic-title span {
    font-size: 15px !important;
  }

  body.chat-page .top-actions {
    display: flex !important;
    justify-content: flex-end !important;
    width: auto !important;
  }

  body.chat-page main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: calc(100dvh - 58px) !important;
    margin-top: 6px !important;
    overflow: hidden !important;
  }

  body.chat-page .discord-chat-app {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    overflow: hidden !important;
  }

  body.chat-page .chat-sidebar {
    display: none !important;
  }

  body.chat-page .chat-room-panel {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.chat-page .chat-admin-only-strip {
    max-height: 72px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 8px !important;
    scrollbar-width: none !important;
  }

  body.chat-page .chat-admin-only-strip::-webkit-scrollbar {
    display: none !important;
  }

  body.chat-page .chat-admin-only-strip .chat-admin-toolbar {
    min-width: max-content !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  body.chat-page .chat-admin-only-strip .chat-admin-toolbar::before {
    display: none !important;
    content: none !important;
  }

  body.chat-page .chat-cooldown-form {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  body.chat-page .chat-cooldown-form input[type="number"] {
    width: 58px !important;
  }

  body.chat-page .chat-scroll-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px 0 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.chat-page .topic-chat-intro {
    display: none !important;
  }

  body.chat-page .chat-room-panel .live-message-feed {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 8px !important;
  }

  body.chat-page .chat-room-panel .live-message-feed .comment-card,
  body.chat-page .chat-room-panel .live-message-feed .comment-card.reply,
  body.chat-page .comment-card.admin-comment,
  body.chat-page .comment-card.moderator-comment,
  body.chat-page .comment-card.user-comment,
  body.chat-page .comment-card.my-comment {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.chat-page .chat-room-panel .live-message-feed .comment-card.reply {
    margin-left: 0 !important;
    padding-left: 10px !important;
  }

  body.chat-page .chat-room-panel .live-message-feed .comment-card:active,
  body.chat-page .chat-room-panel .live-message-feed .comment-card:focus-within {
    background: rgba(255, 255, 255, .045) !important;
  }

  body.chat-page .comment-avatar,
  body.chat-page .comment-avatar-wrap .comment-avatar,
  body.chat-page .admin-avatar,
  body.chat-page .moderator-avatar,
  body.chat-page .user-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    margin-top: 1px !important;
  }

  body.chat-page .comment-content,
  body.chat-page .comment-author-line,
  body.chat-page .comment-content p {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.chat-page .comment-content > header {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
  }

  body.chat-page .comment-author-line {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  body.chat-page .comment-author-line strong,
  body.chat-page .comment-card.admin-comment .comment-content > header strong,
  body.chat-page .comment-card.moderator-comment .comment-content > header strong,
  body.chat-page .comment-card.user-comment .comment-content > header strong {
    font-size: 13.5px !important;
    line-height: 1.12 !important;
    font-family: inherit !important;
  }

  body.chat-page .comment-content > header small {
    font-size: 10px !important;
    opacity: .76 !important;
    white-space: nowrap !important;
  }

  body.chat-page .comment-content p,
  body.chat-page .comment-card.admin-comment p,
  body.chat-page .comment-card.moderator-comment p,
  body.chat-page .comment-card.user-comment p {
    display: block !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    white-space: pre-wrap !important;
  }

  body.chat-page .admin-mini,
  body.chat-page .moderator-mini,
  body.chat-page .blocked-mini,
  body.chat-page .ok-mini {
    height: 15px !important;
    padding: 0 5px !important;
    font-size: 8.5px !important;
    border-radius: 999px !important;
  }

  body.chat-page .comment-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 4px !important;
    opacity: 1 !important;
    flex-wrap: wrap !important;
  }

  body.chat-page .comment-actions .small-btn,
  body.chat-page .comment-actions button,
  body.chat-page .danger-link,
  body.chat-page .alert-icon-btn {
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
    font-size: 10.5px !important;
  }

  body.chat-page .reply-reference {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    font-size: 11px !important;
  }

  body.chat-page .reply-reference em {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.chat-page .comment-image-card {
    width: min(100%, 280px) !important;
    margin-top: 6px !important;
    border-radius: 10px !important;
  }

  body.chat-page .comment-image-card img {
    max-height: 190px !important;
  }

  body.chat-page .chat-bottom-composer {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)) !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    background: rgba(12, 15, 22, .99) !important;
  }

  body.chat-page .chat-bottom-composer .composer-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    gap: 7px !important;
    align-items: end !important;
  }

  body.chat-page .chat-bottom-composer .composer-avatar {
    display: none !important;
  }

  body.chat-page .chat-bottom-composer .composer-field-stack {
    min-width: 0 !important;
    display: block !important;
  }

  body.chat-page .chat-bottom-composer textarea {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 110px !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    resize: none !important;
    background: #242832 !important;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    grid-column: auto !important;
    width: 72px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

  body.chat-page .composer-cooldown,
  body.chat-page .composer-inline-notice,
  body.chat-page .reply-notifications,
  body.chat-page .composer-reply-context {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.chat-page .composer-reply-context {
    margin-bottom: 6px !important;
    padding: 7px 8px !important;
  }

  body.chat-page .reply-notification-card {
    padding: 7px 8px !important;
  }

  body.chat-page .support-bot {
    right: 8px !important;
    top: 60px !important;
  }

  body.chat-page .support-bot-panel {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 76px) !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 380px) {
  .brand strong,
  .brand small {
    max-width: 126px !important;
  }

  body.chat-page .topbar-topic-title strong {
    font-size: 13px !important;
  }

  body.chat-page .chat-bottom-composer .composer-row {
    grid-template-columns: minmax(0, 1fr) 64px !important;
  }

  body.chat-page .chat-bottom-composer .composer-send-btn {
    width: 64px !important;
    font-size: 11px !important;
  }

  body.chat-page .comment-content p {
    font-size: 13.5px !important;
  }
}


/* v33 - Chat desktop sem marca no topo e menu com voltar */
.topbar.has-topic-title .brand-download-wrap.chat-header-compact {
  justify-content: flex-start;
}

.topbar.has-topic-title .brand-download-wrap.chat-header-compact .download-hook-menu {
  margin-left: 0;
}

.topbar.has-topic-title .brand-download-wrap.chat-header-compact .download-hook-toggle {
  white-space: nowrap;
}

@media (min-width: 821px) {
  body.chat-page .topbar.has-topic-title {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  body.chat-page .topbar.has-topic-title .brand-download-wrap.chat-header-compact {
    min-width: 0 !important;
    width: auto !important;
  }
}


/* v34 - Usuários admin: alerta geral e tabela sem scroll horizontal */
.users-alert-card {
  border-color: rgba(255, 223, 53, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 223, 53, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.03);
}

.users-alert-form textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-users-section .admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.admin-users-section .admin-users-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.admin-users-section .admin-users-table th,
.admin-users-section .admin-users-table td {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.admin-users-section .admin-users-table th:nth-child(1),
.admin-users-section .admin-users-table td:nth-child(1) { width: 18%; }
.admin-users-section .admin-users-table th:nth-child(2),
.admin-users-section .admin-users-table td:nth-child(2) { width: 12%; }
.admin-users-section .admin-users-table th:nth-child(3),
.admin-users-section .admin-users-table td:nth-child(3) { width: 10%; }
.admin-users-section .admin-users-table th:nth-child(4),
.admin-users-section .admin-users-table td:nth-child(4) { width: 12%; }
.admin-users-section .admin-users-table th:nth-child(5),
.admin-users-section .admin-users-table td:nth-child(5) { width: 16%; }
.admin-users-section .admin-users-table th:nth-child(6),
.admin-users-section .admin-users-table td:nth-child(6) { width: 32%; }

.admin-users-section .user-action-cell {
  min-width: 0 !important;
  max-width: 100% !important;
}

.admin-users-section .inline-action-form,
.admin-users-section .comment-block-action-form {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-users-section .inline-action-form select,
.admin-users-section .comment-block-action-form select,
.admin-users-section .block-access-form select,
.admin-users-section .block-access-form textarea,
.admin-users-section .block-access-form button {
  max-width: 100%;
  min-width: 0;
}

.admin-users-section .block-access-form {
  width: 100%;
  max-width: 100% !important;
  grid-template-columns: minmax(82px, 106px) minmax(110px, 1fr) auto !important;
  gap: 7px !important;
}

.admin-users-section .block-access-form textarea {
  width: 100%;
}

.admin-users-section .small-btn,
.admin-users-section .warning-btn,
.admin-users-section .danger-btn,
.admin-users-section .primary-btn {
  white-space: normal;
}

@media (max-width: 1120px) {
  .admin-users-section .admin-table-wrap {
    overflow: visible !important;
  }

  .admin-users-section .admin-users-table,
  .admin-users-section .admin-users-table thead,
  .admin-users-section .admin-users-table tbody,
  .admin-users-section .admin-users-table tr,
  .admin-users-section .admin-users-table td {
    display: block;
    width: 100% !important;
  }

  .admin-users-section .admin-users-table thead {
    display: none;
  }

  .admin-users-section .admin-users-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
  }

  .admin-users-section .admin-users-table td {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 0;
    padding: 8px 0;
  }

  .admin-users-section .admin-users-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .admin-users-section .admin-users-table .user-action-cell {
    display: block;
  }

  .admin-users-section .admin-users-table .user-action-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .admin-users-section .block-access-form {
    grid-template-columns: minmax(92px, 130px) minmax(160px, 1fr) auto !important;
  }
}

@media (max-width: 720px) {
  .admin-users-section .admin-users-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-users-section .block-access-form,
  .admin-users-section .comment-block-action-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .admin-users-section .inline-action-form,
  .admin-users-section .block-access-form button,
  .admin-users-section .comment-block-action-form button,
  .admin-users-section .comment-block-action-form select,
  .admin-users-section .block-access-form select,
  .admin-users-section .block-access-form textarea {
    width: 100% !important;
  }
}

/* v35 - Usuários admin reorganizado com modal para bloqueio */
.admin-users-section .admin-users-table td {
  vertical-align: top;
}

.admin-users-section .admin-users-table th:nth-child(1),
.admin-users-section .admin-users-table td:nth-child(1) { width: 18%; }
.admin-users-section .admin-users-table th:nth-child(2),
.admin-users-section .admin-users-table td:nth-child(2) { width: 14%; }
.admin-users-section .admin-users-table th:nth-child(3),
.admin-users-section .admin-users-table td:nth-child(3) { width: 10%; }
.admin-users-section .admin-users-table th:nth-child(4),
.admin-users-section .admin-users-table td:nth-child(4) { width: 12%; }
.admin-users-section .admin-users-table th:nth-child(5),
.admin-users-section .admin-users-table td:nth-child(5) { width: 16%; }
.admin-users-section .admin-users-table th:nth-child(6),
.admin-users-section .admin-users-table td:nth-child(6) { width: 30%; }

.user-identity-cell,
.status-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.user-identity-cell strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.user-identity-cell small,
.action-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.purchase-email-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.user-actions-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.user-action-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.user-action-group-access {
  grid-column: 1 / -1;
}

.user-action-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-action-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.user-action-inline select,
.user-action-inline button,
.user-action-open-modal {
  max-width: 100%;
}

.user-action-inline select {
  min-width: 88px;
  flex: 0 0 auto;
}

.user-action-inline button,
.user-action-open-modal {
  flex: 1 1 180px;
}

.user-action-open-modal {
  justify-content: center;
}

.admin-note-dialog {
  width: min(560px, calc(100% - 24px));
}

.admin-note-dialog form {
  display: grid;
  gap: 14px;
}

.admin-note-dialog h3 {
  margin: 0;
  font-size: 22px;
}

.admin-note-dialog .dialog-hint {
  margin: 0;
}

.block-access-modal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.block-access-dialog-actions {
  margin-top: 4px;
}

@media (max-width: 1260px) {
  .user-actions-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .admin-users-section .admin-users-table .user-action-cell {
    display: block;
  }

  .user-action-group,
  .purchase-email-note {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .user-action-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-action-inline select,
  .user-action-inline button,
  .user-action-open-modal {
    width: 100%;
  }

  .admin-note-dialog {
    width: min(100% - 16px, 560px);
  }

  .admin-note-dialog form {
    padding: 16px;
  }

  .block-access-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* v36 - Nome do usuário clicável no chat e tela individual de controle */
.comment-author-admin-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--text);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px dashed rgba(200, 255, 0, 0.45);
  overflow-wrap: anywhere;
}

.comment-author-admin-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.user-detail-hero {
  align-items: center;
}

.user-detail-hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.user-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.user-detail-card,
.user-detail-controls-card {
  border-color: rgba(200, 255, 0, 0.13);
}

.user-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-bottom: 18px;
}

.user-detail-header h2 {
  margin: 4px 0 10px;
  overflow-wrap: anywhere;
}

.user-detail-avatar {
  flex: 0 0 auto;
}

.user-detail-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.user-detail-info-grid div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.user-detail-info-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

.user-detail-info-grid dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.user-detail-warning-box {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 85, 85, 0.28);
  border-radius: 16px;
  background: rgba(255, 85, 85, 0.08);
}

.user-detail-warning-box strong {
  color: #ffb5b5;
}

.user-detail-warning-box span,
.user-detail-warning-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.user-detail-stats-card {
  align-self: start;
}

.user-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.user-stat-grid div {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(200, 255, 0, 0.12);
  border-radius: 16px;
  background: rgba(200, 255, 0, 0.045);
}

.user-stat-grid strong {
  font-size: 26px;
  line-height: 1;
  color: var(--green);
}

.user-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recent-comments-box {
  display: grid;
  gap: 8px;
}

.recent-comments-box h3 {
  margin: 0 0 4px;
}

.recent-comment-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.recent-comment-item:hover {
  border-color: rgba(200, 255, 0, 0.28);
  background: rgba(200, 255, 0, 0.045);
}

.recent-comment-item strong,
.recent-comment-item span {
  overflow-wrap: anywhere;
}

.recent-comment-item small {
  color: var(--muted);
}

.recent-comment-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.user-detail-controls-card {
  margin-top: 16px;
}

.user-detail-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.user-detail-action-group {
  min-height: 128px;
  align-content: start;
}

.user-detail-action-group .purchase-email-note {
  min-height: 0;
}

@media (max-width: 1050px) {
  .user-detail-layout,
  .user-detail-controls-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .user-detail-hero {
    align-items: stretch;
  }

  .user-detail-hero-actions,
  .user-detail-hero-actions .ghost-btn {
    width: 100%;
  }

  .user-detail-header {
    align-items: flex-start;
  }

  .user-detail-info-grid,
  .user-stat-grid {
    grid-template-columns: 1fr;
  }
}


/* v37 - suporte público fora do login */
.public-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.035));
}

.public-support-card strong,
.public-support-card span {
  display: block;
}

.public-support-card strong {
  color: #f3e8ff;
  font-size: 14px;
  margin-bottom: 3px;
}

.public-support-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.support-inline-btn {
  border: 1px solid rgba(168, 85, 247, 0.52);
  border-radius: 13px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #3b176c, #7c3aed 55%, #9d4edd);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
}

.support-inline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.26);
}

@media (max-width: 560px) {
  .public-support-card {
    align-items: stretch;
    flex-direction: column;
  }

  .support-inline-btn {
    width: 100%;
  }
}

/* Hook Support public landing */
.support-home-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 226, 74, 0.14), transparent 24%),
    radial-gradient(circle at 86% 2%, rgba(64, 225, 255, 0.10), transparent 20%),
    linear-gradient(180deg, #090b12 0%, #0d111b 42%, #0a0d14 100%);
}

.support-topbar .brand small {
  color: rgba(255,255,255,.68);
}

.header-logout-form {
  margin: 0;
}

.logout-nav-button {
  cursor: pointer;
  font: inherit;
}

.support-nav-strong {
  border-color: rgba(255, 230, 0, .72) !important;
  box-shadow: 0 12px 30px rgba(255, 230, 0, .15);
  border-radius: 999px;
}

.support-surface {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 22, 33, .94), rgba(12, 14, 22, .90));
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.support-landing-hero {
  max-width: 1180px;
  margin: 38px auto 24px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: center;
}

.support-hero-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: .97;
  letter-spacing: -.06em;
}

.support-hero-copy p {
  max-width: 660px;
  color: rgba(255,255,255,.76);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.62;
}

.support-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.support-main-cta,
.support-main-menu-cta {
  font-size: 1.04rem;
  padding: 15px 24px;
  box-shadow: 0 16px 34px rgba(255, 230, 0, .22);
  border-radius: 999px;
}

.support-secondary-cta,
.support-attendant-quiet,
.support-inline-attendant,
.support-hero-card-btn {
  border-radius: 999px;
}

.support-secondary-cta {
  padding: 15px 22px;
  opacity: .88;
}

.support-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.support-hero-notes span,
.support-card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}

.support-hero-card {
  min-height: 320px;
  padding: 30px;
  display: grid;
  justify-items: start;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.support-hero-card::after,
.support-menu-card-primary::after {
  content: '';
  position: absolute;
  inset: auto -14% -26% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,0,.18), rgba(255,230,0,0));
  pointer-events: none;
}

.support-hero-logo {
  width: min(140px, 40vw);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 230, 0, .16));
}

.support-hero-card strong {
  font-size: 1.34rem;
}

.support-hero-card span {
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}

.soft-btn {
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.soft-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  border-color: rgba(255, 230, 0, .28);
}

.support-fixed-grid {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}

.support-fixed-card,
.support-info-card,
.support-steps-card {
  border-radius: 24px;
}

.support-fixed-card {
  padding: 26px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.support-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.support-menu-card-primary {
  border-color: rgba(255, 230, 0, .2);
}

.support-info-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.support-card-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 230, 0, .11);
  border: 1px solid rgba(255, 230, 0, .25);
  color: #fff;
  flex: 0 0 auto;
}

.support-fixed-card h2,
.support-info-card h3 {
  margin: 0 0 8px;
}

.support-fixed-card p,
.support-info-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.support-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-card-button {
  justify-self: start;
  border-radius: 999px;
}

.support-inline-attendant {
  justify-self: start;
}

.support-steps-card {
  max-width: 1180px;
  margin: 0 auto 46px;
  padding: 28px;
}

.support-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.support-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.support-steps b {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 230, 0, .92);
  color: #090a0e;
}

.support-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.support-qr-card strong {
  font-size: 1.05rem;
}

.support-qr-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}

.support-qr-card img {
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: 12px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.2);
}

.support-qr-link {
  margin-top: 6px;
}

.support-qr-missing {
  display: block;
  padding: 12px;
  color: #ffd56a;
  background: rgba(255, 183, 0, .1);
  border: 1px solid rgba(255, 183, 0, .28);
  border-radius: 16px;
}

.support-attendant-admin-card {
  border-color: rgba(255, 230, 0, .22);
}

.support-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-settings-form .support-response-field,
.support-settings-form button {
  grid-column: 1 / -1;
}

@media (max-width: 920px) {
  .support-landing-hero,
  .support-fixed-grid,
  .support-steps {
    grid-template-columns: 1fr;
  }

  .support-hero-card {
    min-height: auto;
  }

  .support-settings-form {
    grid-template-columns: 1fr;
  }
}


/* Ajuste: botao remover visivel junto do salvar nos itens do suporte */
.support-admin-actions-inline {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px 16px !important;
  margin-top: -4px !important;
  flex-wrap: wrap !important;
}

.support-admin-delete-inline {
  position: static !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
}

.support-admin-delete-inline .danger-btn {
  width: auto !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 7px 12px !important;
}
