/* Correção de segurança visual: várias classes do painel (nav do admin,
   pill de admin/VIP, formulários de 2FA, painéis do WhatsApp etc.) definem
   "display" com a mesma especificidade do atributo [hidden] do navegador.
   Como o CSS do autor sempre vence o CSS padrão do navegador em caso de
   empate, essas classes anulavam o "hidden" e os elementos apareciam na
   tela mesmo quando deveriam ficar ocultos (ex.: aba Admin visível para
   quem não é admin). Esta regra garante que [hidden] sempre prevaleça. */
[hidden] {
  display: none !important;
}

:root {
  --bg: #060606;
  --card: #101010;
  --card-alt: #161616;
  --border: #272727;
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --success: #4ade80;
  --error: #f87171;
  --warning: #fbbf24;
  /* Paleta estritamente preto / cinza / branco: o "acento" é um cinza-claro
     metálico, sem nenhuma cor saturada, para manter o visual monocromático. */
  --accent: #e4e4e7;
  --accent-soft: rgba(228, 228, 231, 0.10);
  --accent-border: rgba(228, 228, 231, 0.30);
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #c7c7cf 50%, #8b8b93 100%);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --transition: 180ms ease;
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% -10%, rgba(255,255,255,0.06), transparent 42%),
    radial-gradient(circle at 90% 110%, rgba(255,255,255,0.05), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

/* ------------------------------------------------------------------ */
/* Auth Page - fundo ambiente                                         */
/* ------------------------------------------------------------------ */

.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  animation: driftGlow 16s ease-in-out infinite alternate;
}

.auth-page::before {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
}

.auth-page::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
  animation-delay: -8s;
}

@keyframes driftGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page::before,
  .auth-page::after {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Auth Page                                                          */
/* ------------------------------------------------------------------ */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card-alt) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardIn 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.auth-support-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(42, 171, 238, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12), rgba(255, 255, 255, 0.035));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.auth-support-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 80px at 0% 50%, rgba(42, 171, 238, 0.16), transparent 72%);
  pointer-events: none;
}

.auth-support-card:hover {
  border-color: rgba(42, 171, 238, 0.58);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.17), rgba(255, 255, 255, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.auth-support-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 171, 238, 0.36);
  border-radius: 11px;
  background: rgba(42, 171, 238, 0.14);
  color: #8bdcff;
}

.auth-support-icon svg {
  width: 19px;
  height: 19px;
}

.auth-support-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-support-eyebrow {
  color: #8bdcff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-support-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-support-copy > span:last-child {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.auth-support-arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: #8bdcff;
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition);
}

.auth-support-card:hover .auth-support-arrow {
  transform: translate(2px, -2px);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-logo {
  width: 8px;
  height: 8px;
  color: var(--text);
  font-size: 8px;
  display: inline-block;
}

.auth-brand span,
.dash-brand span {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: formIn 350ms ease;
}

.auth-form.active {
  display: flex;
}

@keyframes formIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -10px;
  margin-bottom: 4px;
}

.google-oauth-block {
  display: grid;
  gap: 8px;
}

.btn-google {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #202124;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-google:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
  background: #f8f9fa;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-google:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.btn-google:active {
  transform: translateY(0) scale(0.99);
}

.google-oauth-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.01em;
  text-align: center;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.register-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  margin: 2px 0 4px;
  list-style: none;
}

.register-progress li {
  position: relative;
  z-index: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: color 180ms ease;
}

.register-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 12px;
  left: calc(50% + 13px);
  width: calc(100% - 22px);
  height: 1px;
  background: var(--border);
  transition: background 180ms ease;
}

.register-progress li span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #0d0d0d;
  color: var(--text-muted);
  font-size: 11px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.register-progress li.active,
.register-progress li.completed {
  color: var(--text-secondary);
}

.register-progress li.active span {
  border-color: transparent;
  background: var(--silver-gradient);
  color: #0a0a0a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.register-progress li.completed span {
  border-color: rgba(74, 222, 128, 0.42);
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.register-progress li.completed:not(:last-child)::after {
  background: rgba(74, 222, 128, 0.42);
}

.register-step {
  display: none;
  min-height: 270px;
  flex-direction: column;
  gap: 18px;
  padding: 22px 0 2px;
  animation: registerStepIn 260ms ease;
}

.register-step.active {
  display: flex;
}

.register-step[hidden] {
  display: none;
}

.register-step-kicker {
  margin: 0 0 -10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-step h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.register-step > p:not(.register-step-kicker) {
  margin: -10px 0 2px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.register-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.register-step-actions.is-end {
  justify-content: flex-end;
}

.register-step-actions .btn-primary,
.register-step-actions .btn-secondary {
  margin-top: 0;
}

.register-step-actions .btn-primary {
  min-width: 136px;
}

.register-step-actions .btn-secondary {
  padding: 12px 16px;
}

.register-review-card {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.register-review-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}

.register-review-card > div:last-child {
  border-bottom: 0;
}

.register-review-card dt {
  color: var(--text-muted);
  font-size: 11px;
}

.register-review-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-review-card .link-btn {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 12px;
}

@keyframes registerStepIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-email-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(228, 228, 231, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(228, 228, 231, 0.045);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-email-help svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 1px;
  color: var(--accent);
}

.auth-email-help strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.field input {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:hover {
  border-color: #333333;
}

.field input:focus {
  border-color: var(--accent);
  background: #101010;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 16px;
  font-size: 12px;
  color: var(--error);
  display: block;
}

/* Cloudflare Turnstile (CAPTCHA) */

.turnstile-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.cf-turnstile-box {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 65px;
}

.cf-turnstile-box iframe {
  border-radius: var(--radius-sm);
}

.turnstile-field .field-error {
  text-align: center;
}

/* Medidor de força de senha */

.password-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.strength-bars {
  display: flex;
  gap: 4px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.strength-bar.active {
  box-shadow: 0 0 6px 0 var(--bar-glow, transparent);
}

.strength-label {
  font-size: 12px;
  font-weight: 600;
  min-height: 14px;
  letter-spacing: 0.01em;
  transition: color 220ms ease;
}

.btn-primary {
  position: relative;
  margin-top: 6px;
  background: var(--silver-gradient);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), filter var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255,255,255,0.08);
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 550ms ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(255,255,255,0.14);
}

.btn-secondary {
  position: relative;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: #3d3d3d;
  background: rgba(255,255,255,0.04);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(10,10,10,0.25);
  border-top-color: #0a0a0a;
  animation: spin 700ms linear infinite;
}

.loading .btn-label {
  opacity: 0.6;
}

.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.forgot-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -8px;
  flex-wrap: wrap;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-field input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 120ms ease;
}

.checkbox-field input:checked + .checkbox-box {
  background: var(--silver-gradient);
  border-color: transparent;
}

.checkbox-field input:checked + .checkbox-box::after {
  opacity: 1;
}

.checkbox-field input:focus-visible + .checkbox-box {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.checkbox-field-block {
  align-items: flex-start;
  line-height: 1.5;
}

.checkbox-field-block .checkbox-box {
  margin-top: 1px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.link-btn:hover {
  color: var(--accent);
}

.auth-toast {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1px solid var(--border);
  animation: toastIn 250ms ease;
}

.auth-toast.show {
  display: flex;
}

.auth-toast.success {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
}

.auth-toast.error {
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.06);
}

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

/* ------------------------------------------------------------------ */
/* Mostrar/ocultar senha                                              */
/* ------------------------------------------------------------------ */

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.toggle-password:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ */
/* Disponibilidade de username / e-mail                               */
/* ------------------------------------------------------------------ */

.availability-field {
  position: relative;
  display: flex;
  align-items: center;
}

.availability-field input {
  width: 100%;
  padding-right: 90px;
}

.availability-indicator {
  position: absolute;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.availability-indicator[data-state="checking"] {
  color: var(--accent);
}

.availability-indicator[data-state="available"] {
  color: var(--success);
}

.availability-indicator[data-state="unavailable"] {
  color: var(--error);
}

/* ------------------------------------------------------------------ */
/* Checklist de requisitos da senha                                   */
/* ------------------------------------------------------------------ */

.password-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.password-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 200ms ease;
}

.password-checklist .check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.password-checklist li.valid {
  color: var(--text-secondary);
}

.password-checklist li.valid .check-dot {
  background: var(--success);
  box-shadow: 0 0 6px 0 rgba(74, 222, 128, 0.5);
}

/* ------------------------------------------------------------------ */
/* Verificação em duas etapas — ícone e contexto de segurança         */
/* ------------------------------------------------------------------ */

.twofa-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  margin-bottom: 2px;
}

.twofa-icon svg {
  width: 22px;
  height: 22px;
}

.twofa-context {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: -6px;
}

.twofa-context-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.twofa-context-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.otp-expiry {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.otp-expiry.warning {
  color: var(--warning);
}

/* ------------------------------------------------------------------ */
/* Caixas de código (OTP)                                             */
/* ------------------------------------------------------------------ */

.otp-group {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.otp-box:hover {
  border-color: #333333;
}

.otp-box:focus {
  border-color: var(--accent);
  background: #101010;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ------------------------------------------------------------------ */
/* Reenvio com cooldown                                               */
/* ------------------------------------------------------------------ */

.auth-switch .link-btn.cooldown {
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: none;
}

.auth-switch .link-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Telegram Linking UI Improvements */
.icon-btn:hover {
  background: #262626 !important;
  color: #fff !important;
  border-color: #444 !important;
}
.icon-btn:active {
  transform: scale(0.95);
}
#telegramLinkCodeDisplay {
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.dash-telegram-vip-reconciliation {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--card-alt), var(--card));
}
.dash-telegram-vip-reconciliation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dash-telegram-vip-reconciliation h4 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 14px;
}
.dash-telegram-vip-sync-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash-telegram-vip-sync-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}
.dash-telegram-vip-sync-badge.is-success {
  border-color: rgba(74, 222, 128, .35);
  color: var(--success);
}
.dash-telegram-vip-sync-badge.is-warning {
  border-color: rgba(251, 191, 36, .35);
  color: var(--warning);
}
.dash-telegram-vip-sync-badge.is-error {
  border-color: rgba(248, 113, 113, .35);
  color: var(--error);
}
.dash-telegram-vip-comparison {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-telegram-vip-comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--text-secondary);
  font-size: 12px;
}
.dash-telegram-vip-comparison-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.dash-telegram-vip-sync-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.dash-telegram-vip-sync-hint.is-success {
  color: var(--success);
}
.dash-telegram-vip-sync-hint.is-warning {
  color: var(--warning);
}
.dash-telegram-vip-sync-hint.is-error {
  color: var(--error);
}
.dash-telegram-vip-sync-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .dash-telegram-vip-reconciliation-head,
  .dash-telegram-vip-comparison-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .dash-telegram-vip-comparison-row strong {
    text-align: left;
  }
}
.dash-wa-dot.is-connected {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ------------------------------------------------------------------ */
/* Variações do toast                                                 */
/* ------------------------------------------------------------------ */

.auth-toast.cooldown {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.auth-toast.info {
  color: var(--text-secondary);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

/* ------------------------------------------------------------------ */
/* Dashboard Page                                                     */
/* ------------------------------------------------------------------ */

.dash-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dash-topbar-primary,
.dash-topbar-actions,
.dash-topbar-right {
  display: flex;
  align-items: center;
}

.dash-topbar-primary {
  min-width: 0;
  gap: 14px;
}

.dash-topbar-actions {
  flex-shrink: 0;
  gap: 10px;
}

.dash-topbar-right {
  gap: 10px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-brand .auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 10px;
}

.dash-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.dash-menu-toggle:hover {
  border-color: var(--accent-border);
  background: var(--card);
}

.dash-menu-toggle:active {
  transform: scale(0.96);
}

.dash-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text-secondary);
  border-radius: 99px;
}

.dash-topbar-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(42, 171, 238, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.13), rgba(42, 171, 238, 0.04));
  color: #9ce2ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.dash-topbar-support-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 171, 238, 0.22);
  border-radius: 9px;
  background: rgba(42, 171, 238, 0.12);
}

.dash-topbar-support svg {
  width: 16px;
  height: 16px;
}

.dash-topbar-support:hover {
  border-color: rgba(42, 171, 238, 0.62);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2), rgba(42, 171, 238, 0.08));
  box-shadow: 0 10px 20px rgba(42, 171, 238, 0.12);
  transform: translateY(-1px);
}

.dashboard-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card-alt);
  white-space: nowrap;
}

.dashboard-logout {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.dashboard-logout svg {
  width: 16px;
  height: 16px;
}

.dashboard-logout:hover {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.08);
}

.dashboard-logout:active {
  transform: scale(0.97);
}

.dash-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.dash-sidebar {
  width: 220px;
  flex: none;
  border-right: 1px solid var(--border);
  background: var(--card);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.dash-nav-icon {
  font-size: 10px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.dash-nav-item:hover {
  background: rgba(228, 228, 231, 0.06);
  color: var(--text);
}

.dash-nav-item.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 2px 0 0 0 var(--accent);
}

.dash-nav-item.active .dash-nav-icon {
  color: var(--accent);
}

.dash-sidebar-logout {
  margin-top: auto;
  color: var(--text-muted);
  text-align: left;
}

.dash-sidebar-overlay {
  display: none;
}

.dash-content {
  flex: 1;
  padding: 32px 28px 48px;
  max-width: 960px;
  animation: cardIn 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-welcome-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
}

.dash-welcome-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dash-welcome-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dash-welcome-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Cartão de boas-vindas "pro": avatar + nome + selos de status/VIP */
.dash-welcome-card-pro {
  position: relative;
  overflow: hidden;
}

.dash-welcome-card-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--silver-gradient);
  opacity: 0.7;
}

.dash-welcome-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.dash-welcome-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--card-alt);
  border: 1px solid var(--accent-border);
  overflow: hidden;
}

.dash-welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.dash-welcome-copy {
  min-width: 0;
  flex: 1;
}

.dash-welcome-copy .dash-welcome-name {
  margin-bottom: 8px;
}

.dash-welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------------ */
/* Card de destaque — Conectar WhatsApp (aba Visão geral)              */
/* Único ponto da UI que usa o verde da marca, propositalmente, para   */
/* chamar atenção sem quebrar a identidade monocromática do resto.     */
/* ------------------------------------------------------------------ */

.dash-wa-spotlight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14) 0%, var(--card) 60%);
  border: 1px solid rgba(37, 211, 102, 0.32);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.dash-wa-spotlight:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: 0 18px 44px -24px rgba(37, 211, 102, 0.45);
}

.dash-wa-spotlight:hover .dash-wa-spotlight-cta svg {
  transform: translateX(3px);
}

.dash-wa-spotlight-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.28) 0%, rgba(37, 211, 102, 0) 70%);
  pointer-events: none;
}

.dash-wa-spotlight-icon {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.dash-wa-spotlight-icon svg {
  width: 24px;
  height: 24px;
}

.dash-wa-spotlight-icon.is-connected {
  background: rgba(37, 211, 102, 0.28);
}

.dash-wa-spotlight-body {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-wa-spotlight-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-wa-spotlight-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #25d366;
}

.dash-wa-spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dash-wa-spotlight-dot.is-connecting {
  background: var(--warning);
  animation: waPulse 1.4s ease-in-out infinite;
}

.dash-wa-spotlight-dot.is-connected {
  background: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.dash-wa-spotlight-dot.is-error {
  background: var(--error);
}

.dash-wa-spotlight-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dash-wa-spotlight-sub {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-wa-spotlight-cta {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #06170d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dash-wa-spotlight-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition), transform var(--transition);
}

.dash-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(228, 228, 231, 0.06);
}

.dash-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dash-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.dash-card-value.is-positive {
  color: var(--success);
}

.dash-card-accent {
  background: linear-gradient(155deg, var(--card) 0%, var(--card-alt) 100%);
  border-color: var(--accent-border);
  position: relative;
  overflow: hidden;
}

.dash-card-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at 100% 0%, rgba(228, 228, 231, 0.10), transparent 70%);
  pointer-events: none;
}

.dash-card-accent .dash-card-value {
  font-size: 18px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-card-warning {
  border-color: rgba(251, 191, 36, 0.24);
  background: linear-gradient(155deg, var(--card) 0%, rgba(120, 80, 20, 0.14) 100%);
}

.dash-card-warning .dash-card-value {
  color: var(--warning);
}

/* ------------------------------------------------------------------ */
/* Sub-abas do painel Admin (Usuários / Pagamentos)                    */
/* ------------------------------------------------------------------ */

.admin-tabs-panel {
  padding: 10px;
  margin-bottom: 16px;
}

.admin-subtabs {
  display: flex;
  gap: 6px;
}

.admin-subtab {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.admin-subtab:hover {
  color: var(--text);
  background: var(--card-alt);
}

.admin-subtab.active {
  background: var(--card-alt);
  border-color: var(--accent-border);
  color: var(--text);
}

.admin-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), transform var(--transition);
}

.admin-export-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.admin-export-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.admin-export-btn:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.admin-payments-list,
.admin-deletions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-deletion-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-alt);
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-deletion-summary strong {
  color: var(--text);
  font-size: 14px;
}

.admin-payment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--card-alt);
  transition: border-color var(--transition);
}

.admin-payment-card:hover {
  border-color: var(--accent-border);
}

.admin-payment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-payment-user {
  font-weight: 600;
  font-size: 13px;
}

.admin-payment-amount {
  font-weight: 700;
  font-size: 14px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ */
/* Ecossistema Titanium (bots, canais, comunidade, outros projetos)   */
/* ------------------------------------------------------------------ */

.dash-links-section {
  margin-top: 28px;
}

.dash-links-header {
  margin-bottom: 18px;
}

.dash-links-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}

.dash-links-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-links-group {
  margin-bottom: 22px;
}

.dash-links-group:last-child {
  margin-bottom: 0;
}

.dash-links-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.dash-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.dash-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.dash-link-card:hover {
  border-color: var(--accent-border);
  background: var(--card-alt);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(228, 228, 231, 0.06);
}

.dash-link-card:hover .dash-link-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.dash-link-card-support {
  border-color: rgba(42, 171, 238, 0.28);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.11), var(--card));
}

.dash-link-card-support:hover {
  border-color: rgba(42, 171, 238, 0.58);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.16), var(--card-alt));
}

.dash-link-card-support .dash-link-icon {
  border-color: rgba(42, 171, 238, 0.36);
  background: rgba(42, 171, 238, 0.14);
  color: #8bdcff;
}

.dash-link-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.dash-link-icon svg {
  width: 18px;
  height: 18px;
}

.dash-link-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-link-title em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

.dash-link-sub {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-link-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.6;
  transition: transform var(--transition), opacity var(--transition);
}

.dash-link-arrow svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------------ */
/* Abas do painel (Visão geral / Perfil / Segurança)                  */
/* ------------------------------------------------------------------ */

.dash-tab {
  display: none;
}

.dash-tab.active {
  display: block;
  animation: tabIn var(--transition-slow);
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Toast do painel (reaproveita as cores do toast de autenticação)    */
/* ------------------------------------------------------------------ */

.dash-toast {
  --toast-accent: var(--success);
  --toast-border: rgba(74, 222, 128, 0.28);
  position: fixed;
  z-index: 120;
  top: 78px;
  right: 24px;
  width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 12px 12px 13px;
  color: var(--text);
  background: rgba(16, 22, 19, 0.92);
  border: 1px solid var(--toast-border);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms step-end;
  overflow: hidden;
}

.dash-toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms;
}

.dash-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
}

.dash-toast.success {
  --toast-accent: var(--success);
  --toast-border: rgba(74, 222, 128, 0.32);
}

.dash-toast.error {
  --toast-accent: var(--error);
  --toast-border: rgba(248, 113, 113, 0.34);
}

.dash-toast.cooldown {
  --toast-accent: var(--warning);
  --toast-border: rgba(251, 191, 36, 0.34);
}

.dash-toast-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07120b;
  background: var(--toast-accent);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.dash-toast-icon::before {
  content: '✓';
}

.dash-toast.error .dash-toast-icon::before {
  content: '!';
}

.dash-toast.cooldown .dash-toast-icon::before {
  content: '•';
  font-size: 22px;
}

.dash-toast-message {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.dash-toast-dismiss {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.dash-toast-dismiss svg {
  width: 16px;
  height: 16px;
}

.dash-toast-dismiss:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.dash-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--toast-accent);
  transform-origin: left center;
  transform: scaleX(0);
}

.dash-toast.show .dash-toast-progress {
  animation: dashToastProgress var(--toast-duration, 3400ms) linear forwards;
}

@keyframes dashToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 640px) {
  .dash-toast {
    top: 76px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-toast,
  .dash-toast.show,
  .dash-toast.is-hiding {
    transition: none;
    transform: none;
  }

  .dash-toast.show .dash-toast-progress {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* Aba Perfil                                                          */
/* ------------------------------------------------------------------ */

.dash-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(165deg, var(--card-alt) 0%, var(--card) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dash-profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}

.dash-profile-card:hover {
  border-color: var(--accent-border);
}

.dash-avatar-wrap {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dash-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
  background: var(--silver-gradient);
  box-shadow: 0 0 0 4px var(--accent-soft);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.dash-avatar-edit {
  position: absolute;
  top: 48px;
  left: 48px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--silver-gradient);
  color: var(--bg);
  border: 3px solid var(--card-alt);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
}

.dash-avatar-edit:hover {
  filter: brightness(1.08);
  transform: scale(1.08);
}

.dash-avatar-edit:active {
  transform: scale(0.96);
}

.dash-avatar-edit:focus-visible,
.dash-avatar-menu-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dash-avatar-menu {
  position: static;
  z-index: 2;
  width: min(280px, calc(100vw - 72px));
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding: 8px;
  background: linear-gradient(145deg, var(--card-alt), var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.72);
  animation: dashAvatarMenuIn 180ms ease both;
}

.dash-avatar-menu[hidden] {
  display: none;
}

.dash-avatar-menu-title {
  margin: 2px 8px 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-avatar-menu-action {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dash-avatar-menu-action:hover {
  background: rgba(255, 255, 255, 0.055);
}

.dash-avatar-menu-action:active {
  transform: scale(0.985);
}

.dash-avatar-menu-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.dash-avatar-menu-icon svg {
  width: 16px;
  height: 16px;
}

.dash-avatar-menu-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-avatar-menu-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.dash-avatar-menu-copy small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.dash-avatar-menu-action.is-danger {
  margin-top: 2px;
  color: var(--error);
}

.dash-avatar-menu-action.is-danger .dash-avatar-menu-icon {
  color: var(--error);
  background: rgba(248, 113, 113, 0.07);
  border-color: rgba(248, 113, 113, 0.2);
}

.dash-avatar-menu-action.is-danger .dash-avatar-menu-copy small {
  color: color-mix(in srgb, var(--error) 72%, var(--text-muted));
}

.dash-avatar-menu-action.is-danger:hover {
  background: rgba(248, 113, 113, 0.08);
}

@keyframes dashAvatarMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dash-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-profile-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dash-profile-username {
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-status-pill {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.dash-status-pill.is-positive {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

/* ------------------------------------------------------------------ */
/* Aba Segurança                                                       */
/* ------------------------------------------------------------------ */

.dash-grid-security {
  margin-bottom: 24px;
}

.dash-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}

.dash-panel:hover {
  border-color: var(--accent-border);
}

.dash-panel-danger {
  border-color: rgba(248, 113, 113, 0.25);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.05), var(--card));
}

.dash-panel-danger:hover {
  border-color: rgba(248, 113, 113, 0.45);
}

.dash-panel-danger .dash-panel-title {
  color: var(--error);
}

.dash-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.google-account-summary {
  margin: -2px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.055);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.security-setup-notice {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.11), rgba(255, 255, 255, 0.025));
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.security-setup-notice strong {
  color: var(--warning);
  font-size: 13px;
}

.two-factor-disable {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.two-factor-confirm-form {
  margin-top: 6px;
}

.dash-panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dash-panel-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.security-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
}

.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.18);
}

.btn-danger:active {
  transform: scale(0.98);
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Histórico de login                                                  */
/* ------------------------------------------------------------------ */

.login-history {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-alt);
  transition: border-color var(--transition), transform var(--transition);
}

.login-history-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.login-history-item.is-current {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.login-history-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(228, 228, 231, 0.1);
  font-size: 14px;
}

.login-history-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.login-history-device {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.login-history-badge {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(228, 228, 231, 0.12);
  border: 1px solid var(--accent-border);
  padding: 2px 6px;
  border-radius: 999px;
}

.login-history-meta {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-word;
}

.login-history-empty {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 4px;
}

.login-history-remove {
  flex: none;
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.login-history-remove:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.5);
}

.login-history-remove:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ------------------------------------------------------------------ */
/* Responsividade                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
  .auth-page {
    padding: 16px;
  }

  .auth-support-card {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .auth-support-copy > span:last-child {
    font-size: 11.5px;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: var(--radius-md);
  }

  .auth-title {
    font-size: 20px;
  }

  .otp-box {
    font-size: 17px;
  }

  .otp-group {
    gap: 6px;
  }

  .password-field input,
  .availability-field input {
    font-size: 16px; /* evita zoom automático em iOS/Android */
  }

  .trust-strip {
    gap: 6px;
    margin-bottom: 20px;
  }

  .trust-badge {
    font-size: 10.5px;
    padding: 5px 9px;
  }

  .trust-badge svg {
    width: 12px;
    height: 12px;
  }

  .auth-footer-note {
    font-size: 11.5px;
    padding: 0 8px;
  }
}

@media (max-width: 860px) {
  .dash-topbar {
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
  }

  .dash-menu-toggle {
    display: flex;
  }

  .dash-topbar-primary {
    gap: 12px;
  }

  .dash-topbar-actions,
  .dash-topbar-right {
    gap: 8px;
  }

  .dash-topbar-support {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  .dash-topbar-support-label {
    display: none;
  }

  .dashboard-logout {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .dashboard-logout span {
    display: none;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: 20px 0 40px rgba(0,0,0,0.4);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 30;
  }

  .dash-sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .dash-content {
    padding: 24px 18px 40px;
  }

  .dash-welcome-card {
    padding: 22px 20px;
  }

  .dash-welcome-name {
    font-size: 24px;
  }

  .dash-wa-spotlight {
    flex-wrap: wrap;
    padding: 18px;
  }

  .dash-wa-spotlight-sub {
    white-space: normal;
  }

  .dash-wa-spotlight-cta {
    margin-left: 70px;
  }

  .dashboard-badge {
    display: none;
  }
}

@media (max-width: 420px) {
  .dash-topbar {
    padding: 12px;
  }

  .dash-brand {
    font-size: 13px;
  }

  .dash-grid,
  .dash-links-grid {
    grid-template-columns: 1fr;
  }

  .dash-welcome-top {
    gap: 12px;
  }

  .dash-welcome-avatar {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .dash-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }

  .dash-profile-info {
    align-items: center;
  }

  .dash-avatar-wrap {
    align-items: center;
  }

  .dash-avatar-menu {
    width: min(100%, 300px);
  }

  .dash-panel {
    padding: 20px 18px;
  }

  .security-form {
    max-width: none;
  }

  .dash-wa-qr-box {
    width: 180px;
    height: 180px;
  }

  .dash-wa-code-value {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .dash-wa-method-toggle {
    width: 100%;
  }

  .dash-wa-method-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ */
/* Trust strip (selo de confiança abaixo da marca)                    */
/* ------------------------------------------------------------------ */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 6px 10px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.trust-badge:hover {
  border-color: rgba(228, 228, 231, 0.5);
  background: rgba(228, 228, 231, 0.16);
  transform: translateY(-1px);
}

.trust-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
}

.link-btn-inline {
  font-size: inherit;
  font-weight: 600;
  display: inline;
}

.auth-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 420px;
}

.auth-footer-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.auth-footer-note .link-btn {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-footer-note .link-btn:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Modal: Termos de proteção e segurança                              */
/* ------------------------------------------------------------------ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-overlay.show {
  display: flex;
  animation: overlayIn 200ms ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: min(720px, 88vh);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card-alt) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: cardIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

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

.modal-logo {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.modal-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}

.modal-updated {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.modal-lead {
  color: var(--text);
  margin-bottom: 18px;
}

.modal-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 4px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.modal-list li {
  position: relative;
  padding-left: 16px;
}

.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-list strong {
  color: var(--text);
}

.modal-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer .modal-accept-btn {
  width: 100%;
}

@media (max-width: 480px) {
  .modal-card {
    max-height: 92vh;
  }
  .modal-header {
    padding: 20px 18px 14px;
  }
  .modal-body {
    padding: 16px 18px;
  }
  .modal-footer {
    padding: 14px 18px 18px;
  }
}

/* ------------------------------------------------------------------ */
/* Aba VIP                                                             */
/* ------------------------------------------------------------------ */

.dash-vip-pill {
  align-self: flex-start;
  margin-top: 6px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0a0a0a;
  background: var(--silver-gradient);
}

.dash-vip-status-card {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, rgba(228, 228, 231, 0.12) 0%, rgba(228, 228, 231, 0.02) 100%);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.65);
  margin-bottom: 20px;
  overflow: hidden;
}

.dash-vip-status-card::after {
  content: '✦';
  position: absolute;
  top: -14px;
  right: -6px;
  font-size: 90px;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.dash-vip-status-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.dash-vip-status-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ */
/* Integração WhatsApp (conectar via QR Code ou código de pareamento) */
/* ------------------------------------------------------------------ */

.dash-wa-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-wa-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.dash-wa-dot.is-connecting {
  background: var(--warning);
  animation: waPulse 1.4s ease-in-out infinite;
}

.dash-wa-dot.is-connected {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.dash-wa-dot.is-error {
  background: var(--error);
}

@keyframes waPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.dash-wa-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-wa-method-toggle {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.dash-wa-method-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.dash-wa-method-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dash-wa-method-btn:hover {
  color: var(--text);
}

.dash-wa-method-btn.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.dash-wa-method-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.dash-wa-method-panel.active {
  display: flex;
}

.dash-wa-qr-wrap {
  display: flex;
  justify-content: center;
}

.dash-wa-qr-box {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--card-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.dash-wa-qr-box img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}

.dash-wa-qr-placeholder {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-wa-steps {
  list-style: none;
  counter-reset: wa-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-wa-steps li {
  counter-increment: wa-step;
  position: relative;
  padding-left: 30px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dash-wa-steps li::before {
  content: counter(wa-step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-wa-steps strong {
  color: var(--text);
  font-weight: 600;
}

.dash-wa-code-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  background: var(--card-alt);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.dash-wa-code-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dash-wa-code-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: var(--text);
}

.dash-wa-code-expiry {
  font-size: 12px;
  color: var(--text-muted);
}

/* Identidade do número conectado (foto + "conectado desde") */

.dash-wa-status-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.dash-wa-account-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-alt);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 17px;
}

.dash-wa-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-wa-connected-since {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Botão de copiar (código de pareamento e ID de grupo) */

.dash-wa-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dash-wa-copy-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dash-wa-copy-btn svg {
  width: 15px;
  height: 15px;
}

.dash-wa-copy-btn:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--card-alt);
}

/* Lista de grupos */

.wa-groups-modal {
  max-width: 460px;
  text-align: left;
}

.dash-wa-groups-search {
  width: 100%;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-size: 13px;
}

.dash-wa-groups-search:focus {
  outline: none;
  border-color: var(--accent-border);
}

.dash-wa-groups-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  margin-top: 6px;
}

.dash-wa-groups-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.dash-wa-group-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dash-wa-group-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-wa-group-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.dash-wa-group-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft, rgba(99, 102, 241, 0.12));
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.dash-wa-group-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-wa-group-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-wa-group-id {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Aba Consultas */

.dash-consulta-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.dash-consulta-modules-loading {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-consulta-module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: inherit;
}

.dash-consulta-module-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.dash-consulta-module-card.active {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--accent-border);
}

.dash-consulta-bot-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--card-alt), var(--card));
}

.dash-consulta-bot-callout h4 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 15px;
}

.dash-consulta-bot-callout p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.dash-consulta-bot-eyebrow {
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .dash-consulta-bot-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Aba WhatsApp — menu de módulos + navegação com botão voltar */

.dash-wa-module-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.dash-wa-module-card.is-disabled:hover {
  border-color: var(--border);
  transform: none;
}

.dash-wa-module-card-danger .dash-consulta-icon {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--error);
}

.dash-wa-module-card-danger.active {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.dash-wa-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-wa-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px 8px 10px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.dash-wa-back-btn:hover {
  border-color: var(--accent-border);
  color: var(--text);
  transform: translateX(-2px);
}

.dash-wa-back-btn svg {
  width: 16px;
  height: 16px;
}

/* Aba WhatsApp — Rajar Payment: seletor de grupo embutido */

.dash-rajar-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.dash-rajar-picker {
  position: relative;
}

.dash-rajar-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}

.dash-rajar-picker-trigger:hover {
  border-color: var(--accent-border);
}

.dash-rajar-picker[data-open="true"] .dash-rajar-picker-trigger {
  border-color: var(--accent);
  background: #101010;
}

.dash-rajar-picker-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.dash-rajar-picker-avatar.has-group {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.dash-rajar-picker-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-rajar-picker-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rajar-picker-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.dash-rajar-picker-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.dash-rajar-picker[data-open="true"] .dash-rajar-picker-chevron {
  transform: rotate(180deg);
}

.dash-rajar-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  overflow: hidden;
}

.dash-rajar-dropdown-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.dash-rajar-dropdown-search svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dash-rajar-dropdown-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

.dash-rajar-dropdown-list {
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-rajar-group-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  background: none;
  border: none;
  border-radius: 6px;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.dash-rajar-group-option:hover,
.dash-rajar-group-option.is-active {
  background: var(--card-alt);
}

.dash-rajar-group-option-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.dash-rajar-group-option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dash-rajar-group-option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rajar-group-option-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.dash-rajar-dropdown-empty,
.dash-rajar-dropdown-error {
  padding: 16px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.dash-rajar-dropdown-error {
  color: var(--error);
}

.dash-rajar-dropdown-retry {
  display: block;
  margin: 8px auto 0;
  padding: 6px 12px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dash-rajar-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dash-rajar-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.dash-rajar-summary-label {
  color: var(--text-muted);
}

.dash-rajar-summary-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.dash-rajar-confirm-hint {
  margin: -10px 0 0;
  font-size: 12px;
  color: var(--warning);
  text-align: center;
}

#waRajarSubmitBtn.is-armed {
  background: var(--warning);
  border-color: var(--warning);
}

.dash-config-note {
  margin: 4px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Aba Configurações — badges, cartão de visualização, avisos */

.dash-config-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-config-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dash-config-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dash-config-badge.is-ok {
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

.dash-config-badge.is-pending {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--warning);
}

.dash-config-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dash-config-view-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dash-config-view-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-config-view-label {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.dash-config-view-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: pre-line;
  word-break: break-word;
}

.dash-config-view #configRajarEditBtn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.dash-config-view #configRajarEditBtn svg {
  width: 14px;
  height: 14px;
}

.dash-config-empty-hint {
  margin: 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dash-config-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-config-form-actions .btn-primary {
  flex: 1;
}

/* Aviso de configuração pendente, exibido no Rajar Payment */

.dash-config-warning {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
}

.dash-config-warning-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.dash-config-warning-icon svg {
  width: 18px;
  height: 18px;
}

.dash-config-warning-text {
  flex: 1;
  min-width: 0;
}

.dash-config-warning-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-config-warning-text p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dash-rajar-summary-edit {
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-rajar-summary-edit:hover {
  color: var(--text);
}

.dash-consulta-module-card .dash-consulta-icon {
  width: 34px;
  height: 34px;
}

.dash-consulta-module-card .dash-consulta-icon svg {
  width: 17px;
  height: 17px;
}

.dash-consulta-module-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dash-consulta-module-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.dash-consulta-module-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash-consulta-grid[hidden],
.dash-consulta-list[hidden] {
  display: none;
}

.dash-consulta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.dash-consulta-list li {
  font-size: 13px;
  color: var(--text);
  padding: 8px 12px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.dash-consulta-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.dash-consulta-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-alt);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.dash-consulta-icon svg {
  width: 20px;
  height: 20px;
}

.dash-consulta-header .dash-panel-title,
.dash-consulta-header .dash-panel-sub {
  margin-bottom: 0;
}

.dash-consulta-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-consulta-form .field {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.dash-consulta-form .btn-primary {
  flex-shrink: 0;
}

.dash-consulta-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dash-consulta-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-consulta-flag {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}

.dash-consulta-result-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.dash-consulta-result-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dash-consulta-result-head .dash-wa-copy-btn {
  margin-left: auto;
}

.dash-consulta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 18px;
}

.dash-consulta-grid-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-consulta-grid-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dash-consulta-grid-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.dash-consulta-map-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.dash-consulta-map-link:hover {
  text-decoration: underline;
}

.dash-sipni-section {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
}

.dash-sipni-section + .dash-sipni-section {
  margin-top: 2px;
}

.dash-sipni-section h4 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.dash-sipni-vaccine-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card-alt);
}

.dash-sipni-vaccine-card:first-of-type {
  margin-top: 0;
}

.dash-sipni-vaccine-card h5 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
}

.dash-sipni-report-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.dash-sipni-report-link:hover {
  text-decoration: underline;
}

.dash-vip-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.dash-vip-loading {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.dash-vip-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 17px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--card-alt) 0%, var(--card) 65%);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.7);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.dash-vip-plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--silver-gradient);
  opacity: 0.5;
}

.dash-vip-plan-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -20px rgba(0, 0, 0, 0.75);
}

.dash-vip-plan-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dash-vip-plan-label::before {
  content: '✦ ';
  color: var(--accent);
}

.dash-vip-plan-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dash-vip-plan-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-vip-plan-buy {
  margin-top: auto;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.dash-vip-plan-buy:hover {
  background: var(--silver-gradient);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.dash-vip-plan-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Modal de pagamento PIX */

.vip-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.vip-modal-overlay[hidden] {
  display: none;
}

.vip-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--card-alt) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  padding: 24px;
  text-align: center;
}

.vip-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.vip-modal-title {
  font-size: 17px;
  font-weight: 700;
}

.vip-modal-plan {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.vip-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0;
  min-height: 180px;
  align-items: center;
}

.vip-qr-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}

.vip-modal-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.vip-pix-code {
  font-size: 11px;
  word-break: break-all;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  max-height: 80px;
  overflow-y: auto;
}

.vip-modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.vip-status-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-border);
  border-top-color: var(--accent);
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.vip-modal-status.is-success {
  color: var(--success);
}

.vip-modal-status.is-success .vip-status-spinner {
  display: none;
}

.vip-modal-status.is-error {
  color: var(--error);
}

.vip-modal-status.is-error .vip-status-spinner {
  display: none;
}

.vip-modal-expiry {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .dash-vip-plans {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}


/* ------------------------------------------------------------------ */
/* Aba Admin                                                           */
/* ------------------------------------------------------------------ */

.dash-nav-item-admin {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.dash-admin-pill {
  align-self: flex-start;
  margin-top: 6px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--card-alt);
  border: 1px solid var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-admin-pill-sm,
.dash-vip-pill-sm {
  margin: 0;
  font-size: 10px;
  padding: 3px 8px;
}

.dash-vip-pill-sm {
  color: #0a0a0a;
  background: var(--silver-gradient);
  border: none;
}

.dash-welcome-card-admin {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, rgba(228, 228, 231, 0.06) 0%, rgba(228, 228, 231, 0.01) 100%);
}

/* Toolbar: busca + chips de filtro */

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-search {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-search::placeholder {
  color: var(--text-muted);
}

.admin-search:focus {
  border-color: var(--accent);
  background: #101010;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.admin-filter-chips::-webkit-scrollbar {
  display: none;
}

.admin-chip {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.admin-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.admin-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* Lista de usuários em cards — responsiva por natureza, sem tabela      */
/* horizontal que quebra em telas pequenas.                             */

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-table-loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 32px 16px;
  font-size: 13px;
}

.admin-user-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--card-alt);
  transition: border-color var(--transition);
}

.admin-user-card:hover {
  border-color: var(--accent-border);
}

.admin-user-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--silver-gradient);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.admin-user-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}

.admin-user-username {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.admin-user-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.admin-user-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-user-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.admin-user-meta-value {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.admin-action-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.admin-action-btn.is-danger {
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.3);
}

.admin-action-btn.is-danger:hover {
  background: rgba(248, 113, 113, 0.08);
}

.admin-action-btn-primary {
  background: var(--text);
  color: #0a0a0a;
  border-color: var(--text);
}

.admin-action-btn-primary:hover {
  background: var(--accent);
  opacity: 0.92;
}

.admin-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-vip-grant {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.admin-vip-select {
  flex: 1;
  min-width: 0;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.admin-vip-select:focus {
  border-color: var(--accent);
}

@media (min-width: 720px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-search {
    max-width: 320px;
  }

  .admin-user-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-user-name {
    max-width: 260px;
  }
}

/* Banner com ícone */

.dash-welcome-card-admin {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-welcome-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-alt);
  border: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Gráfico de novos cadastros (7 dias) */

.admin-growth-chart {
  min-height: 110px;
}

.admin-growth-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 96px;
  padding-top: 8px;
}

.admin-growth-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.admin-growth-bar-count {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-growth-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: var(--silver-gradient);
  transition: height var(--transition-slow);
}

.admin-growth-bar-label {
  font-size: 10px;
  text-transform: capitalize;
  color: var(--text-muted);
}

/* Toolbar: busca + ordenação */

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-sort-select {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.admin-sort-select:focus {
  border-color: var(--accent);
}

.admin-filter-chips {
  margin-bottom: 20px;
}

/* Copiar e-mail + badge 2FA */

.admin-user-meta-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-copy-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  padding: 3px 6px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.admin-copy-btn:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.admin-2fa-pill {
  margin-left: 6px;
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
  background: transparent !important;
}

@media (min-width: 720px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .admin-search {
    flex: 1;
    max-width: 320px;
  }

  .admin-sort-select {
    max-width: 200px;
  }

  .admin-growth-bar-col {
    max-width: 60px;
  }
}

/* E-mail temporário — workspace da aba Ferramentas */
.dash-temp-mail-workspace {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.dash-temp-mail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dash-temp-mail-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.dash-temp-mail-address {
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.dash-temp-mail-address-row .dash-wa-copy-btn {
  flex-shrink: 0;
}

.dash-temp-mail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-temp-mail-actions .btn-primary,
.dash-temp-mail-actions .btn-secondary {
  margin-top: 0;
}

.dash-temp-mail-inbox,
.dash-temp-mail-message {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dash-temp-mail-inbox-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dash-temp-mail-inbox-head .dash-panel-sub,
.dash-temp-mail-message-head .dash-panel-sub {
  margin-bottom: 0;
}

.dash-temp-mail-message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-temp-mail-message-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.dash-temp-mail-message-row:hover {
  border-color: var(--accent-border);
  background: var(--card);
  transform: translateY(-1px);
}

.dash-temp-mail-message-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-temp-mail-message-row-main strong,
.dash-temp-mail-message-row-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-temp-mail-message-row-main strong {
  font-size: 13px;
}

.dash-temp-mail-message-row-main span,
.dash-temp-mail-message-row-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.dash-temp-mail-message-row-meta {
  flex-shrink: 0;
  white-space: nowrap;
}

.dash-temp-mail-empty {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.dash-temp-mail-message .btn-secondary {
  margin-bottom: 20px;
}

.dash-temp-mail-message-head {
  margin-bottom: 16px;
}

.dash-temp-mail-message-body {
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  color: var(--text);
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .dash-temp-mail-message-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dash-temp-mail-message-row-meta {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------ */
/* Visão geral — resumo operacional moderno                            */
/* ------------------------------------------------------------------ */
.dash-overview-command,
.dash-overview-panel,
.dash-overview-notice {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--card) 0%, var(--card-alt) 135%);
}

.dash-overview-command {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.dash-overview-command::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  top: -150px;
  right: -70px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 228, 231, 0.09), transparent 68%);
}

.dash-overview-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.dash-overview-section-head .dash-welcome-eyebrow {
  margin-bottom: 5px;
}

.dash-overview-section-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dash-overview-updated {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  white-space: nowrap;
}

.dash-overview-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.dash-overview-metric,
.dash-overview-action,
.dash-overview-text-link,
.dash-overview-notice-action {
  font: inherit;
  cursor: pointer;
}

.dash-overview-metric {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.dash-overview-metric:hover,
.dash-overview-metric:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.042);
  box-shadow: 0 15px 32px -25px rgba(255, 255, 255, 0.65);
}

.dash-overview-metric-icon {
  flex-shrink: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--card-alt);
  font-size: 16px;
  font-weight: 700;
}

.dash-overview-metric-icon.is-vip { color: #f4d47c; border-color: rgba(244, 212, 124, 0.32); background: rgba(244, 212, 124, 0.08); }
.dash-overview-metric-icon.is-telegram { color: #62b5e8; border-color: rgba(98, 181, 232, 0.32); background: rgba(98, 181, 232, 0.08); }
.dash-overview-metric-icon.is-whatsapp { color: #25d366; border-color: rgba(37, 211, 102, 0.32); background: rgba(37, 211, 102, 0.08); }
.dash-overview-metric-icon.is-security { color: #b5a6ff; border-color: rgba(181, 166, 255, 0.32); background: rgba(181, 166, 255, 0.08); }

.dash-overview-metric-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.dash-overview-metric-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-overview-metric strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-overview-metric small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-overview-metric-arrow {
  color: var(--text-muted);
  font-size: 17px;
  transition: transform var(--transition), color var(--transition);
}

.dash-overview-metric:hover .dash-overview-metric-arrow { color: var(--text); transform: translateX(3px); }

.dash-overview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}

.dash-overview-panel {
  min-width: 0;
  margin-bottom: 0;
  padding: 20px;
}

.dash-overview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dash-overview-action {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: var(--text);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.dash-overview-action:hover,
.dash-overview-action:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.055);
}

.dash-overview-action-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 700;
}

.dash-overview-action span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.dash-overview-action strong { font-size: 12.5px; }
.dash-overview-action small { overflow: hidden; color: var(--text-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }

.dash-overview-text-link {
  padding: 4px 0;
  color: var(--accent);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.dash-overview-text-link:hover,
.dash-overview-text-link:focus-visible { outline: none; text-decoration: underline; }

.dash-overview-activity-list {
  display: flex;
  min-height: 172px;
  margin: 0;
  padding: 0;
  flex-direction: column;
  list-style: none;
}

.dash-overview-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.dash-overview-activity-item:first-child { border-top: 0; padding-top: 0; }

.dash-overview-activity-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.dash-overview-activity-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.dash-overview-activity-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dash-overview-activity-copy span { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dash-overview-activity-empty { display: grid; flex: 1; place-items: center; color: var(--text-muted); font-size: 12.5px; text-align: center; }

.dash-overview-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(110deg, rgba(120, 80, 20, 0.2), var(--card));
}

.dash-overview-notice-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  color: #1b1303;
  background: var(--warning);
  font-size: 14px;
  font-weight: 800;
}

.dash-overview-notice div { flex: 1; min-width: 0; }
.dash-overview-notice strong { display: block; color: var(--text); font-size: 12.5px; }
.dash-overview-notice p { margin: 3px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

.dash-overview-notice-action {
  flex-shrink: 0;
  padding: 8px 10px;
  color: #1d1402;
  border: 0;
  border-radius: 8px;
  background: var(--warning);
  font-size: 11.5px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .dash-overview-metrics { grid-template-columns: 1fr; }
  .dash-overview-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .dash-overview-command,
  .dash-overview-panel { padding: 17px; }
  .dash-overview-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dash-overview-actions { grid-template-columns: 1fr; }
  .dash-overview-notice { align-items: flex-start; flex-wrap: wrap; }
  .dash-overview-notice-action { margin-left: 41px; }
}

.dash-overview-metric.is-positive { border-color: rgba(52, 211, 153, 0.28); }
.dash-overview-metric.is-positive .dash-overview-metric-arrow { color: var(--success); }
.dash-overview-metric.is-warning { border-color: rgba(251, 191, 36, 0.34); }
.dash-overview-metric.is-warning .dash-overview-metric-arrow { color: var(--warning); }

/* ------------------------------------------------------------------ */
/* PWA — instalação e experiência mobile                              */
/* ------------------------------------------------------------------ */
.dash-install-app {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #dce5ef;
  border: 1px solid rgba(185, 192, 202, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(185, 192, 202, 0.14), rgba(185, 192, 202, 0.04));
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.dash-install-app[hidden] { display: none; }

.dash-install-app svg {
  width: 16px;
  height: 16px;
}

.dash-install-app:hover,
.dash-install-app:focus-visible {
  outline: none;
  border-color: rgba(230, 234, 240, 0.75);
  background: linear-gradient(135deg, rgba(220, 226, 234, 0.2), rgba(185, 192, 202, 0.08));
  box-shadow: 0 10px 22px rgba(220, 226, 234, 0.08);
  transform: translateY(-1px);
}

.pwa-offline-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% 0%, #1a1e26 0%, #08090b 52%);
}

.pwa-offline-card {
  width: min(100%, 420px);
  padding: 34px 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(18, 21, 27, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.pwa-offline-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  place-items: center;
  border: 1px solid rgba(210, 216, 225, 0.42);
  border-radius: 18px;
  color: #f3f5f8;
  background: linear-gradient(145deg, #242a34, #101319);
  font-size: 24px;
  font-weight: 800;
}

.pwa-offline-card h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.pwa-offline-card p:not(.dash-welcome-eyebrow) {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.pwa-standalone .dash-topbar {
  padding-top: max(10px, env(safe-area-inset-top));
}

@media (max-width: 820px) {
  .dash-install-app { width: 40px; justify-content: center; padding: 0; }
  .dash-install-app [data-pwa-install-label] { display: none; }
}

@media (max-width: 560px) {
  .dash-topbar-actions { gap: 7px; }
  .dash-install-app { min-height: 38px; width: 38px; border-radius: 11px; }
}

/* ------------------------------------------------------------------ */
/* Atualização visual Titanium — autenticação                          */
/* ------------------------------------------------------------------ */

.auth-page {
  padding: 40px 24px;
  background:
    radial-gradient(1000px 560px at 50% -18%, rgba(181, 166, 255, 0.10), transparent 62%),
    radial-gradient(620px 460px at 6% 90%, rgba(42, 171, 238, 0.08), transparent 72%);
}

.auth-card {
  max-width: 456px;
  padding: 42px 38px 36px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(150deg, rgba(30, 30, 34, 0.96), rgba(12, 12, 14, 0.98) 58%),
    var(--card);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58), 0 2px 0 rgba(255, 255, 255, 0.045) inset;
}

.auth-card::before {
  height: 2px;
  opacity: 0.75;
}

.auth-brand {
  gap: 10px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 15px;
}

.auth-brand .auth-logo {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.auth-form {
  gap: 20px;
}

.auth-title {
  font-size: clamp(25px, 5vw, 29px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.auth-subtitle {
  max-width: 340px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-secondary) 92%, white);
}

.auth-or-divider {
  margin: 2px 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field label {
  font-weight: 650;
  letter-spacing: 0.005em;
}

.field input {
  min-height: 48px;
  padding: 13px 14px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 8, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field input:focus {
  border-color: rgba(218, 213, 255, 0.78);
  background: rgba(12, 12, 15, 0.9);
  box-shadow: 0 0 0 4px rgba(181, 166, 255, 0.11), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.password-field .toggle-password {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  right: 5px;
}

.btn-primary {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 720;
  letter-spacing: 0.005em;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.09), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.btn-secondary {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 650;
}

.btn-google {
  min-height: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.google-oauth-help {
  font-size: 11.5px;
}

.register-progress {
  margin: 5px 0 2px;
}

.register-progress li span {
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.register-progress li:not(:last-child)::after {
  top: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.register-step {
  min-height: 284px;
  padding-top: 24px;
}

.register-step h2 {
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.register-review-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.register-review-card > div {
  padding: 14px 15px;
  transition: background var(--transition);
}

.register-review-card > div:hover {
  background: rgba(255, 255, 255, 0.035);
}

.auth-password-generator {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(181, 166, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(181, 166, 255, 0.12), rgba(255, 255, 255, 0.025));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.auth-password-generator:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 166, 255, 0.56);
  background: linear-gradient(135deg, rgba(181, 166, 255, 0.17), rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.auth-password-generator:focus-visible {
  outline: 3px solid rgba(181, 166, 255, 0.28);
  outline-offset: 2px;
}

.auth-password-generator-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(181, 166, 255, 0.16);
  color: #d7cffd;
}

.auth-password-generator > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.auth-password-generator strong {
  font-size: 12px;
  font-weight: 700;
}

.auth-password-generator small {
  color: var(--text-muted);
  font-size: 11px;
}

.auth-password-generator-arrow {
  color: #d7cffd;
  font-size: 16px;
  transition: transform var(--transition);
}

.auth-password-generator:hover .auth-password-generator-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 560px) {
  .auth-page { padding: 18px 14px 28px; }
  .auth-card { padding: 30px 22px 26px; border-radius: 16px; }
  .auth-brand { margin-bottom: 26px; }
  .register-progress li small { font-size: 9px; }
  .register-step { min-height: 264px; }
}

/* ------------------------------------------------------------------ */
/* Atualização visual Titanium — painel                                */
/* ------------------------------------------------------------------ */

.dash-shell {
  position: relative;
  background:
    radial-gradient(900px 480px at 76% -8%, rgba(181, 166, 255, 0.075), transparent 66%),
    radial-gradient(760px 520px at 0% 100%, rgba(42, 171, 238, 0.055), transparent 70%);
}

.dash-topbar {
  min-height: 76px;
  padding: 12px clamp(16px, 2.6vw, 34px);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(11, 11, 14, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.dash-brand {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.dash-brand .auth-logo {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.dash-command-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.dash-command-trigger svg { width: 16px; height: 16px; color: #d7cffd; }
.dash-command-trigger kbd,
.dash-command-input-wrap kbd,
.dash-command-footer kbd,
.dash-command-item-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font: 600 10px/1 inherit;
  white-space: nowrap;
}

.dash-command-trigger:hover,
.dash-command-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(181, 166, 255, 0.5);
  background: rgba(181, 166, 255, 0.11);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dash-sidebar {
  width: 238px;
  padding: 22px 15px;
  border-right-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.78), rgba(11, 11, 14, 0.82));
}

.dash-nav { gap: 6px; }

.dash-nav-item {
  min-height: 42px;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 600;
}

.dash-nav-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.dash-nav-item:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
}

.dash-nav-item.active {
  border-color: rgba(181, 166, 255, 0.32);
  background: linear-gradient(135deg, rgba(181, 166, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), inset 2px 0 0 #d7cffd;
}

.dash-nav-item.active .dash-nav-icon {
  border-color: rgba(181, 166, 255, 0.4);
  background: rgba(181, 166, 255, 0.14);
  color: #d7cffd;
}

.dash-content {
  width: min(100%, 1220px);
  padding: 34px clamp(18px, 3vw, 42px) 56px;
  max-width: 1220px;
}

.dash-welcome-card {
  padding: 30px 32px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(125deg, rgba(33, 33, 39, 0.94), rgba(15, 15, 18, 0.96) 58%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.045) inset;
}

.dash-welcome-card-pro::before {
  height: 2px;
  opacity: 0.92;
}

.dash-welcome-card-pro::after {
  content: '';
  position: absolute;
  top: -96px;
  right: -56px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 166, 255, 0.18), transparent 66%);
  pointer-events: none;
}

.dash-welcome-avatar {
  width: 62px;
  height: 62px;
  border-color: rgba(181, 166, 255, 0.4);
  background: linear-gradient(145deg, rgba(181, 166, 255, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.dash-welcome-name { font-size: clamp(28px, 3.2vw, 36px); font-weight: 740; letter-spacing: -0.04em; }
.dash-welcome-sub { max-width: 720px; line-height: 1.6; }

.dash-overview-command,
.dash-overview-panel,
.dash-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.dash-overview-command {
  background: linear-gradient(145deg, rgba(29, 29, 34, 0.92), rgba(16, 16, 19, 0.92));
}

.dash-overview-metric {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.dash-overview-metric:hover,
.dash-overview-metric:focus-visible {
  border-color: rgba(181, 166, 255, 0.44);
  background: linear-gradient(135deg, rgba(181, 166, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.dash-overview-panel {
  background: linear-gradient(150deg, rgba(24, 24, 28, 0.94), rgba(15, 15, 18, 0.94));
}

.dash-overview-action {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.022);
}

.dash-overview-action:hover {
  border-color: rgba(181, 166, 255, 0.36);
  background: rgba(181, 166, 255, 0.09);
}

.dash-card {
  background: linear-gradient(145deg, rgba(28, 28, 32, 0.92), rgba(16, 16, 19, 0.94));
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.dash-card:hover {
  border-color: rgba(181, 166, 255, 0.36);
  background: linear-gradient(145deg, rgba(35, 35, 41, 0.96), rgba(18, 18, 21, 0.96));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.dash-command-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: min(14vh, 124px) 18px 24px;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dash-command-palette {
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(31, 31, 37, 0.98), rgba(14, 14, 17, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: commandPaletteIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-command-input-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dash-command-input-wrap > svg { width: 19px; height: 19px; color: #d7cffd; }
.dash-command-input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 600 15px/1.4 inherit;
}
.dash-command-input-wrap input::placeholder { color: var(--text-muted); font-weight: 500; }

.dash-command-heading { display: grid; gap: 3px; padding: 15px 17px 8px; }
.dash-command-heading > span { color: var(--text-secondary); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.dash-command-heading small { color: var(--text-muted); font-size: 12px; }
.dash-command-list { display: grid; gap: 4px; padding: 8px; }

.dash-command-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.dash-command-item:hover,
.dash-command-item.is-active {
  border-color: rgba(181, 166, 255, 0.34);
  background: linear-gradient(135deg, rgba(181, 166, 255, 0.14), rgba(255, 255, 255, 0.035));
}

.dash-command-item:active { transform: scale(0.99); }
.dash-command-item > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 2px; }
.dash-command-item strong { font-size: 13px; font-weight: 700; }
.dash-command-item small { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.dash-command-item-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 15px;
}
.dash-command-item-icon.is-consultas { color: #e7db9a; border-color: rgba(231, 219, 154, 0.28); background: rgba(231, 219, 154, 0.08); }
.dash-command-item-icon.is-whatsapp { color: #25d366; border-color: rgba(37, 211, 102, 0.3); background: rgba(37, 211, 102, 0.08); }
.dash-command-item-icon.is-telegram { color: #62b5e8; border-color: rgba(98, 181, 232, 0.3); background: rgba(98, 181, 232, 0.08); }
.dash-command-item-icon.is-vip { color: #f4d47c; border-color: rgba(244, 212, 124, 0.3); background: rgba(244, 212, 124, 0.08); }
.dash-command-item-icon.is-security { color: #b5a6ff; border-color: rgba(181, 166, 255, 0.3); background: rgba(181, 166, 255, 0.08); }

.dash-command-empty { padding: 22px 18px; color: var(--text-muted); font-size: 13px; text-align: center; }
.dash-command-footer { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 10px; }
.dash-command-footer span { display: inline-flex; align-items: center; gap: 4px; }
body.has-command-palette { overflow: hidden; }

@keyframes commandPaletteIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .dash-command-trigger > span { display: none; }
  .dash-command-trigger { padding: 0 10px; }
  .dash-command-trigger kbd { display: none; }
  .dash-content { width: 100%; }
}

@media (max-width: 620px) {
  .dash-topbar { min-height: 66px; gap: 10px; }
  .dash-topbar-actions { gap: 7px; }
  .dash-topbar-support { padding: 5px; }
  .dash-topbar-support-label { display: none; }
  .dashboard-badge { display: none; }
  .dash-content { padding: 22px 15px 40px; }
  .dash-welcome-card { padding: 24px 20px; }
  .dash-welcome-top { align-items: flex-start; }
  .dash-welcome-avatar { width: 52px; height: 52px; }
  .dash-command-overlay { padding: 68px 12px 16px; }
  .dash-command-palette { border-radius: 15px; }
  .dash-command-footer { gap: 8px; }
}
