/**
 * BottomNav.css - Barra de navegacao inferior
 * Fixada no bottom, blur background, safe area aware.
 * Redesign: icones SVG, botao central destacado, 60px de altura.
 */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  padding: 8px 0 4px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item--active {
  color: #fff;
}

.bottom-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.bottom-nav-item--active .bottom-nav-icon {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

/* Botao central SOS - destaque circular vermelho */
.bottom-nav-icon--sos {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  margin-top: -20px;
  box-shadow: 0 2px 14px rgba(239, 68, 68, 0.4);
  animation: sosPulse 2s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Pulso animado no SOS pra chamar atencao */
.bottom-nav-icon--sos::after {
  content: "SOS";
  position: absolute;
  bottom: -14px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.08em;
}

@keyframes sosPulse {
  0%, 100% { box-shadow: 0 2px 14px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 2px 22px rgba(239, 68, 68, 0.7); }
}

.bottom-nav-icon--sos:active {
  transform: scale(0.93);
}

.bottom-nav-item--active .bottom-nav-icon--sos {
  position: relative;
  background: #dc2626;
  box-shadow: 0 2px 18px rgba(239, 68, 68, 0.55);
}

.bottom-nav-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.bottom-nav-item--active .bottom-nav-label {
  opacity: 1;
  color: var(--accent);
}

/* Desktop: centraliza e limita largura */
@media (min-width: 768px) {
  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}
/**
 * Admin.css - Painel administrativo XO 171
 * Redesign profissional: fundo claro, sidebar desktop, cards limpos.
 * Mobile-first com sidebar em desktop (1024px+).
 * Substituiu versao anterior (basica, dark, sem sidebar).
 * Atualizado: 17/03/2026
 */

/* ============================
   LAYOUT GERAL
   ============================ */
.admin-layout {
  display: flex;
  min-height: 100dvh;
  background: #f5f6fa;
}

/* ============================
   SIDEBAR (desktop 1024px+)
   ============================ */
.admin-sidebar {
  display: none;
}

/* ============================
   MAIN CONTENT
   ============================ */
.admin-main {
  flex: 1;
  min-width: 0;
}

/* --- Top bar mobile --- */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar__menu-btn {
  background: none;
  border: none;
  padding: 6px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.admin-topbar__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.admin-topbar__back {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.admin-topbar__back:hover {
  background: #eff6ff;
}

/* --- Mobile nav drawer --- */
.admin-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.admin-mobile-nav--open {
  display: flex;
}

.admin-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.admin-mobile-nav__panel {
  position: relative;
  width: 280px;
  background: #fff;
  padding: 24px 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}

.admin-mobile-nav__header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.admin-mobile-nav__brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
}

.admin-mobile-nav__sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

/* --- Nav items (shared mobile/desktop) --- */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.admin-nav-item--active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-left-color: #3b82f6;
}

.admin-nav-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-nav-item--active .admin-nav-item__icon {
  opacity: 1;
}

/* ============================
   PAGE CONTAINER
   ============================ */
.admin-page {
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-page-header {
  margin-bottom: 24px;
}

.admin-page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.admin-page-header p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================
   LOADING / ERROR / EMPTY
   ============================ */
.admin-loading {
  text-align: center;
  color: #6b7280;
  padding: 64px 16px;
  font-size: 0.95rem;
}

.admin-loading::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: admin-spin 0.7s linear infinite;
}

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

.admin-empty {
  text-align: center;
  color: #9ca3af;
  padding: 48px 16px;
  font-size: 0.95rem;
}

.admin-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ============================
   TOAST
   ============================ */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: admin-toast-in 0.3s ease-out;
}

.admin-toast--success {
  background: #059669;
}

.admin-toast--error {
  background: #dc2626;
}

@keyframes admin-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================
   STATS GRID (Dashboard)
   ============================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--blue { background: #eff6ff; color: #3b82f6; }
.stat-card__icon--red { background: #fef2f2; color: #ef4444; }
.stat-card__icon--green { background: #ecfdf5; color: #10b981; }
.stat-card__icon--yellow { background: #fffbeb; color: #f59e0b; }
.stat-card__icon--purple { background: #f5f3ff; color: #8b5cf6; }
.stat-card__icon--cyan { background: #ecfeff; color: #06b6d4; }

.stat-card__trend {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.stat-card__trend--up {
  background: #ecfdf5;
  color: #059669;
}

.stat-card__trend--down {
  background: #fef2f2;
  color: #dc2626;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-top: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* ============================
   QUICK ACTIONS (Dashboard nav)
   ============================ */
.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 12px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}

.admin-quick-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59,130,246,0.1);
}

.admin-quick-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-quick-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

.admin-quick-card p {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.3;
}

/* ============================
   MODERACAO
   ============================ */
.moderacao-filtros {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.moderacao-filtro {
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.moderacao-filtro:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.moderacao-filtro--ativo {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.moderacao-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moderacao-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}

.moderacao-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.moderacao-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.moderacao-tipo {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.moderacao-data {
  font-size: 0.75rem;
  color: #9ca3af;
}

.moderacao-descricao {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moderacao-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.moderacao-acoes {
  display: flex;
  gap: 8px;
}

.moderacao-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

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

.moderacao-btn--remover {
  background: #fef2f2;
  color: #dc2626;
}

.moderacao-btn--remover:hover:not(:disabled) {
  background: #fee2e2;
}

.moderacao-btn--spam {
  background: #fffbeb;
  color: #d97706;
}

.moderacao-btn--spam:hover:not(:disabled) {
  background: #fef3c7;
}

.moderacao-btn--restaurar {
  background: #ecfdf5;
  color: #059669;
}

.moderacao-btn--restaurar:hover:not(:disabled) {
  background: #d1fae5;
}

/* ============================
   PUSH FORM
   ============================ */
.push-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

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

.push-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.push-field input,
.push-field textarea,
.push-field select {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.push-field input:focus,
.push-field textarea:focus,
.push-field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.push-field textarea {
  resize: vertical;
  min-height: 100px;
}

.push-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.push-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
}

.push-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

.push-submit {
  background: #3b82f6;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.push-submit:hover:not(:disabled) {
  background: #2563eb;
}

.push-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Push Resultado --- */
.push-resultado {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 16px;
}

.push-resultado h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 8px;
}

.push-resultado-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.push-stat {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
}

.push-stat--success { color: #059669; }
.push-stat--fail { color: #dc2626; }

.push-resultado-msg {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================
   WAITLIST / GENERICS
   ============================ */
.waitlist-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.waitlist-busca {
  flex: 1;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.waitlist-busca:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.waitlist-busca::placeholder {
  color: #9ca3af;
}

.waitlist-export-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 16px;
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.waitlist-export-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.waitlist-count {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.waitlist-nome {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.waitlist-email {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
  word-break: break-all;
}

.waitlist-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.waitlist-paginacao button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.waitlist-paginacao button:hover:not(:disabled) {
  background: #f3f4f6;
}

.waitlist-paginacao button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.waitlist-page-info {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

/* ============================
   USUARIOS
   ============================ */
.user-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: #6b7280;
}

.user-role-badge--admin {
  background: #3b82f6;
  color: #fff;
}

.user-meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.user-meta-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
}

/* ============================
   INSTITUICOES
   ============================ */
.inst-add-btn {
  padding: 10px 20px;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  background: transparent;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.inst-add-btn:hover {
  background: #3b82f6;
  color: #fff;
}

.inst-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.inst-form-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.inst-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inst-save-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.inst-save-btn:hover:not(:disabled) {
  background: #2563eb;
}

.inst-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.inst-edit-form {
  width: 100%;
}

.inst-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.inst-detail {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

.inst-site {
  word-break: break-all;
  opacity: 0.7;
}

/* ============================
   GENERIC CARD (reusavel)
   ============================ */
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}

.admin-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================
   FILTROS ESTADO (waitlist/usuarios)
   ============================ */
.estado-filtros {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.estado-filtro {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.estado-filtro:hover {
  border-color: #3b82f6;
}

.estado-filtro--ativo {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* ============================
   WAITLIST STATS
   ============================ */
.waitlist-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.waitlist-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}

.waitlist-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.waitlist-stat-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
}

/* ============================
   DESKTOP (1024px+)
   ============================ */
@media (min-width: 1024px) {
  /* Sidebar aparece */
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    flex-shrink: 0;
  }

  .admin-sidebar__brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
  }

  .admin-sidebar__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
  }

  .admin-sidebar__sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
  }

  .admin-sidebar .admin-nav-item {
    padding: 10px 24px;
  }

  .admin-sidebar__footer {
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
  }

  .admin-sidebar__footer a {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s;
  }

  .admin-sidebar__footer a:hover {
    color: #3b82f6;
  }

  /* Hide mobile topbar menu btn */
  .admin-topbar__menu-btn {
    display: none;
  }

  /* Page content */
  .admin-page {
    padding: 32px 40px;
  }

  .admin-page-header h1 {
    font-size: 1.75rem;
  }

  /* Stats grid 3 cols */
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Quick actions 3 cols */
  .admin-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Moderacao acoes */
  .moderacao-acoes {
    justify-content: flex-end;
  }

  /* Instituicoes form grid */
  .inst-form-grid {
    flex-direction: row;
    gap: 16px;
  }

  .inst-form-grid .push-field {
    flex: 1;
  }

  /* Waitlist stats */
  .waitlist-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Charts grid 2 colunas no desktop */
  .admin-charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 3 colunas pra mini lines */
  .admin-charts-grid:first-of-type {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================
   SELO VERIFICADO BADGE
   ============================ */
.selo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

/* ============================
   CHARTS (Dashboard graficos)
   ============================ */
.admin-charts-section {
  margin-top: 8px;
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.admin-chart-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

/* Bar chart horizontal */
.admin-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-chart-label {
  font-size: 0.7rem;
  color: #6b7280;
  min-width: 60px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chart-bar-bg {
  flex: 1;
  height: 20px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.admin-chart-bar {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.5s ease;
}

.admin-chart-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  min-width: 28px;
  text-align: right;
}

/* Mini line (vertical bars / sparkline) */
.admin-miniline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.admin-miniline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.admin-miniline-bar-bg {
  flex: 1;
  width: 100%;
  background: #f3f4f6;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.admin-miniline-bar {
  width: 100%;
  border-radius: 4px;
  min-height: 2px;
  transition: height 0.5s ease;
}

.admin-miniline-label {
  font-size: 0.6rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* ============================
   LARGE DESKTOP (1440px+)
   ============================ */
@media (min-width: 1440px) {
  .admin-stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0a1628f5;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  padding: 8px 0 4px;
  color: #ffffff73;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item--active {
  color: #fff;
}
.bottom-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}
.bottom-nav-item--active .bottom-nav-icon {
  background: #3b82f633;
  color: var(--accent);
}
.bottom-nav-icon--sos {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  margin-top: -16px;
  box-shadow: 0 2px 14px #ef444466;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.bottom-nav-icon--sos:active {
  transform: scale(0.93);
}
.bottom-nav-item--active .bottom-nav-icon--sos {
  background: #dc2626;
  box-shadow: 0 2px 18px #ef44448c;
}
.bottom-nav-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
.bottom-nav-item--active .bottom-nav-label {
  opacity: 1;
  color: var(--accent);
}
@media (min-width: 768px) {
  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translate(-50%);
    border-radius: 16px 16px 0 0;
  }
}
.lgpd-consent {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628d9;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}
.lgpd-consent__card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px #0000004d;
  animation: lgpdSlideUp 0.3s ease;
}
@keyframes lgpdSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lgpd-consent__icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.lgpd-consent__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.lgpd-consent__text {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.lgpd-consent__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.lgpd-consent__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #3b82f60f;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.lgpd-consent__link:hover {
  background: #3b82f61f;
}
.lgpd-consent__legal {
  font-size: 0.78rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.8;
}
.lgpd-consent__erro {
  padding: 10px;
  margin-bottom: 12px;
  background: #ef444414;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.82rem;
}
.lgpd-consent__btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.lgpd-consent__btn:disabled {
  opacity: 0.6;
}
.admin-layout {
  display: flex;
  min-height: 100dvh;
  background: #f5f6fa;
}
.admin-sidebar {
  display: none;
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-topbar__menu-btn {
  background: none;
  border: none;
  padding: 6px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.admin-topbar__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.admin-topbar__back {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.admin-topbar__back:hover {
  background: #eff6ff;
}
.admin-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}
.admin-mobile-nav--open {
  display: flex;
}
.admin-mobile-nav__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0006;
}
.admin-mobile-nav__panel {
  position: relative;
  width: 280px;
  background: #fff;
  padding: 24px 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px #0000001a;
}
.admin-mobile-nav__header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}
.admin-mobile-nav__brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
}
.admin-mobile-nav__sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}
.admin-nav-item--active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-left-color: #3b82f6;
}
.admin-nav-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}
.admin-nav-item--active .admin-nav-item__icon {
  opacity: 1;
}
.admin-page {
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.admin-page-header {
  margin-bottom: 24px;
}
.admin-page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.admin-page-header p {
  font-size: 0.875rem;
  color: #6b7280;
}
.admin-loading {
  text-align: center;
  color: #6b7280;
  padding: 64px 16px;
  font-size: 0.95rem;
}
.admin-loading:before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: admin-spin 0.7s linear infinite;
}
@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-empty {
  text-align: center;
  color: #9ca3af;
  padding: 48px 16px;
  font-size: 0.95rem;
}
.admin-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 100;
  box-shadow: 0 8px 24px #0003;
  animation: admin-toast-in 0.3s ease-out;
}
.admin-toast--success {
  background: #059669;
}
.admin-toast--error {
  background: #dc2626;
}
@keyframes admin-toast-in {
  0% {
    opacity: 0;
    transform: translate(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%) translateY(0);
  }
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 12px #0000000f;
}
.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}
.stat-card__icon--red {
  background: #fef2f2;
  color: #ef4444;
}
.stat-card__icon--green {
  background: #ecfdf5;
  color: #10b981;
}
.stat-card__icon--yellow {
  background: #fffbeb;
  color: #f59e0b;
}
.stat-card__icon--purple {
  background: #f5f3ff;
  color: #8b5cf6;
}
.stat-card__icon--cyan {
  background: #ecfeff;
  color: #06b6d4;
}
.stat-card__trend {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.stat-card__trend--up {
  background: #ecfdf5;
  color: #059669;
}
.stat-card__trend--down {
  background: #fef2f2;
  color: #dc2626;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-top: 8px;
}
.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}
.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 12px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}
.admin-quick-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px #3b82f61a;
}
.admin-quick-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.admin-quick-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}
.admin-quick-card p {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.3;
}
.moderacao-filtros {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.moderacao-filtro {
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.moderacao-filtro:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
.moderacao-filtro--ativo {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.moderacao-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.moderacao-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.moderacao-card:hover {
  box-shadow: 0 2px 8px #0000000d;
}
.moderacao-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.moderacao-tipo {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.moderacao-data {
  font-size: 0.75rem;
  color: #9ca3af;
}
.moderacao-descricao {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.moderacao-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 12px;
}
.moderacao-acoes {
  display: flex;
  gap: 8px;
}
.moderacao-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.moderacao-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.moderacao-btn--remover {
  background: #fef2f2;
  color: #dc2626;
}
.moderacao-btn--remover:hover:not(:disabled) {
  background: #fee2e2;
}
.moderacao-btn--spam {
  background: #fffbeb;
  color: #d97706;
}
.moderacao-btn--spam:hover:not(:disabled) {
  background: #fef3c7;
}
.moderacao-btn--restaurar {
  background: #ecfdf5;
  color: #059669;
}
.moderacao-btn--restaurar:hover:not(:disabled) {
  background: #d1fae5;
}
.push-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}
.push-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.push-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}
.push-field input,
.push-field textarea,
.push-field select {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  font-size: 0.9rem;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.push-field input:focus,
.push-field textarea:focus,
.push-field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px #3b82f61a;
}
.push-field textarea {
  resize: vertical;
  min-height: 100px;
}
.push-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.push-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
}
.push-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}
.push-submit {
  background: #3b82f6;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.push-submit:hover:not(:disabled) {
  background: #2563eb;
}
.push-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.push-resultado {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 16px;
}
.push-resultado h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 8px;
}
.push-resultado-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.push-stat {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
}
.push-stat--success {
  color: #059669;
}
.push-stat--fail {
  color: #dc2626;
}
.push-resultado-msg {
  font-size: 0.875rem;
  color: #6b7280;
}
.waitlist-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.waitlist-busca {
  flex: 1;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111827;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.waitlist-busca:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px #3b82f61a;
}
.waitlist-busca::placeholder {
  color: #9ca3af;
}
.waitlist-export-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 16px;
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.waitlist-export-btn:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.waitlist-count {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 12px;
}
.waitlist-nome {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.waitlist-email {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
  word-break: break-all;
}
.waitlist-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.waitlist-paginacao button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.waitlist-paginacao button:hover:not(:disabled) {
  background: #f3f4f6;
}
.waitlist-paginacao button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.waitlist-page-info {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}
.user-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: #6b7280;
}
.user-role-badge--admin {
  background: #3b82f6;
  color: #fff;
}
.user-meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.user-meta-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
}
.inst-add-btn {
  padding: 10px 20px;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  background: transparent;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.inst-add-btn:hover {
  background: #3b82f6;
  color: #fff;
}
.inst-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.inst-form-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}
.inst-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inst-save-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.inst-save-btn:hover:not(:disabled) {
  background: #2563eb;
}
.inst-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.inst-edit-form {
  width: 100%;
}
.inst-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.inst-detail {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}
.inst-site {
  word-break: break-all;
  opacity: 0.7;
}
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.admin-card:hover {
  box-shadow: 0 2px 8px #0000000d;
}
.estado-filtros {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.estado-filtro {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.estado-filtro:hover {
  border-color: #3b82f6;
}
.estado-filtro--ativo {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.waitlist-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.waitlist-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.waitlist-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}
.waitlist-stat-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    flex-shrink: 0;
  }
  .admin-sidebar__brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
  }
  .admin-sidebar__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
  }
  .admin-sidebar__sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
  }
  .admin-sidebar .admin-nav-item {
    padding: 10px 24px;
  }
  .admin-sidebar__footer {
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
  }
  .admin-sidebar__footer a {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s;
  }
  .admin-sidebar__footer a:hover {
    color: #3b82f6;
  }
  .admin-topbar__menu-btn {
    display: none;
  }
  .admin-page {
    padding: 32px 40px;
  }
  .admin-page-header h1 {
    font-size: 1.75rem;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .admin-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .moderacao-acoes {
    justify-content: flex-end;
  }
  .inst-form-grid {
    flex-direction: row;
    gap: 16px;
  }
  .inst-form-grid .push-field {
    flex: 1;
  }
  .waitlist-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .admin-charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-grid:first-of-type {
    grid-template-columns: repeat(3, 1fr);
  }
}
.selo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}
.admin-charts-section {
  margin-top: 8px;
}
.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.admin-chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}
.admin-chart-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}
.admin-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-chart-label {
  font-size: 0.7rem;
  color: #6b7280;
  min-width: 60px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-chart-bar-bg {
  flex: 1;
  height: 20px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.admin-chart-bar {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.5s ease;
}
.admin-chart-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  min-width: 28px;
  text-align: right;
}
.admin-miniline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.admin-miniline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.admin-miniline-bar-bg {
  flex: 1;
  width: 100%;
  background: #f3f4f6;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.admin-miniline-bar {
  width: 100%;
  border-radius: 4px;
  min-height: 2px;
  transition: height 0.5s ease;
}
.admin-miniline-label {
  font-size: 0.6rem;
  color: #9ca3af;
  white-space: nowrap;
}
@media (min-width: 1440px) {
  .admin-stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #111d32;
  --bg-tertiary: #1a2940;
  --text-primary: #e4e8ef;
  --text-secondary: #8899ad;
  --bg-content: #f5f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --text-dark: #1a1d26;
  --text-dark-secondary: #5f6880;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-input: rgba(0, 0, 0, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.08);
  --accent-dark: #1e3a5f;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Samsung One UI Dark Theme */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-content: #000000;
  --bg-card: #1c1c1e;
  --bg-card-hover: #2c2c2e;
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-dark: #ffffff;
  --text-dark-secondary: #aeaeb2;
  --accent: #3478f6;
  --accent-hover: #4d8ef8;
  --accent-light: #1a3a6e;
  --danger: #ff3b30;
  --success: #30d158;
  --warning: #ffd60a;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-input: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(255, 255, 255, 0.07);
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}
.feed,
.report,
.profile,
.checklist {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  .feed,
  .report,
  .profile,
  .checklist {
    padding-bottom: 96px;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
