/* ============================================================
   admin.css — CardápioApp PWA Admin
   Dark mode · Mobile-first · Touch-friendly
   ============================================================ */

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #21262d;
  --borda:     #30363d;
  --texto:     #e6edf3;
  --texto-s:   #8b949e;
  --verde:     #238636;
  --verde-h:   #2ea043;
  --vermelho:  #da3633;
  --amarelo:   #d29922;
  --azul:      #1f6feb;
  --radius:    10px;
  --header-h:  56px;
  --sidebar-w: 240px;
}

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LOGIN ── */
#tela-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.login-card {
  width: 100%; max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.login-logo {
  font-size: 2.8rem; text-align: center; margin-bottom: 8px;
}

.login-card h1 {
  text-align: center; font-size: 1.5rem; font-weight: 900;
  color: var(--texto); margin-bottom: 4px;
}

.login-sub {
  text-align: center; font-size: 0.82rem;
  color: var(--texto-s); margin-bottom: 24px; font-weight: 700;
}

/* ── HEADER ── */
.admin-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--borda);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px; z-index: 50;
}

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

.admin-header-left span {
  font-size: 1rem; font-weight: 800; color: var(--texto);
}

.admin-header-right {
  display: flex; align-items: center; gap: 8px;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--borda);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 40;
  overflow-y: auto;
}

.sidebar.aberta { transform: translateX(0); }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 39;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.escondido {
  display: none !important;
}

.sidebar-empresa {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--borda);
  display: flex; align-items: center; gap: 10px;
}

.sidebar-logo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}

.sidebar-empresa span {
  font-size: 0.85rem; font-weight: 800;
  color: var(--texto); line-height: 1.3;
}

.sidebar-menu {
  list-style: none; padding: 8px 0;
}

.nav-item {
  width: 100%; text-align: left;
  padding: 12px 16px; border: none;
  background: transparent; color: var(--texto-s);
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; border-radius: 0;
  transition: all 0.15s;
  font-family: 'Nunito', sans-serif;
}

.nav-item:hover { background: var(--bg3); color: var(--texto); }
.nav-item.ativo  { background: var(--bg3); color: var(--texto); border-left: 3px solid var(--verde); }

/* ── MAIN ── */
.admin-main {
  margin-top: var(--header-h);
  padding: 20px 16px 80px;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
}

/* ── TELAS ── */
.tela-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tela-header h2 {
  font-size: 1.2rem; font-weight: 900; color: var(--texto);
}

/* ── FILTRO CATEGORIAS ── */
.filtro-cats {
  display: flex; overflow-x: auto; gap: 8px;
  padding-bottom: 12px; scrollbar-width: none;
}
.filtro-cats::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: 0 0 auto; padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: var(--bg2); color: var(--texto-s);
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all 0.15s;
  font-family: 'Nunito', sans-serif;
}
.cat-pill:hover { border-color: var(--verde); color: var(--texto); }
.cat-pill.ativo { background: var(--verde); border-color: var(--verde); color: #fff; }

/* ── LISTA DE ITENS ADMIN ── */
.lista-admin { display: flex; flex-direction: column; gap: 8px; }

.item-admin {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.item-admin:hover { border-color: var(--verde); background: var(--bg3); }
.item-admin.indisponivel { opacity: 0.55; }

.item-admin-foto {
  width: 52px; height: 52px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg3);
}

.item-admin-foto-placeholder {
  width: 52px; height: 52px; border-radius: 8px;
  background: var(--bg3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.item-admin-info { flex: 1; min-width: 0; }
.item-admin-nome {
  font-size: 0.88rem; font-weight: 800; color: var(--texto);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-admin-cat {
  font-size: 0.72rem; color: var(--texto-s); font-weight: 700;
}

.item-admin-direita {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; flex-shrink: 0;
}

.item-admin-preco {
  font-size: 0.9rem; font-weight: 800; color: var(--verde-h);
}

/* toggle disponível inline */
.toggle-disp {
  position: relative; display: inline-block;
  width: 40px; height: 22px; flex-shrink: 0;
}
.toggle-disp input { opacity: 0; width: 0; height: 0; }
.toggle-disp .slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--borda); cursor: pointer;
  transition: background 0.2s;
}
.toggle-disp input:checked + .slider { background: var(--verde); }
.toggle-disp .slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px;
  transition: transform 0.2s;
}
.toggle-disp input:checked + .slider::before { transform: translateX(18px); }

/* ── DASHBOARD ── */
.dashboard-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 8px;
}

.dash-card {
  background: var(--bg2); border: 1px solid var(--borda);
  border-radius: var(--radius); padding: 20px 16px;
  text-align: center;
}

.dash-num {
  font-size: 2rem; font-weight: 900; color: var(--verde-h);
  margin-bottom: 4px;
}
.dash-num.vermelho { color: var(--vermelho); }
.dash-label { font-size: 0.75rem; color: var(--texto-s); font-weight: 700; }

.link-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--borda);
  border-radius: 8px; padding: 10px 12px;
}
.link-box span {
  flex: 1; font-size: 0.78rem; color: var(--azul);
  font-family: monospace; word-break: break-all;
}

/* ── FORMULÁRIO EMPRESA ── */
.form-empresa { display: flex; flex-direction: column; gap: 4px; }

/* ── CAMPOS ── */
.campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.campo label {
  font-size: 0.78rem; font-weight: 800; color: var(--texto-s);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.campo input,
.campo select,
.campo textarea {
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--borda);
  background: var(--bg3); color: var(--texto);
  font-size: 0.88rem; font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none; border-color: var(--verde);
}
.campo textarea { resize: vertical; }

.campo-row { display: flex; gap: 12px; }
.campo-row .campo { flex: 1; }

/* cor picker */
.cor-picker-wrap {
  display: flex; align-items: center; gap: 10px;
}
.cor-picker-wrap input[type="color"] {
  width: 44px; height: 44px; padding: 2px;
  border-radius: 8px; cursor: pointer;
}
.cor-picker-wrap span {
  font-family: monospace; font-size: 0.85rem; color: var(--texto-s);
}

/* ── UPLOAD ÁREA ── */
.upload-area {
  position: relative;
  border: 2px dashed var(--borda);
  border-radius: var(--radius);
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  transition: border-color 0.2s;
}
.upload-area:hover { border-color: var(--verde); }

.upload-area .preview-img {
  width: 100%; height: 160px; object-fit: cover;
}

#upload-logo-placeholder,
#upload-item-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 20px;
}
#upload-logo-placeholder span,
#upload-item-placeholder span { font-size: 2rem; }
#upload-logo-placeholder p,
#upload-item-placeholder p {
  font-size: 0.78rem; color: var(--texto-s); font-weight: 700;
}

.input-file {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

/* ── TOGGLE CHECKBOX ── */
.toggle-wrap {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.toggle-wrap input { display: none; }
.toggle {
  position: relative; width: 44px; height: 24px;
  border-radius: 999px; background: var(--borda);
  transition: background 0.2s; flex-shrink: 0;
}
.toggle::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle-wrap input:checked + .toggle { background: var(--verde); }
.toggle-wrap input:checked + .toggle::before { transform: translateX(20px); }
.toggle-label { font-size: 0.85rem; font-weight: 700; color: var(--texto-s); }

/* ── DRAWER ── */
.drawer {
  /* container full-screen — captura toque no fundo para fechar */
  position: fixed; inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* quando visível o fundo escurece via ::before */
}
.drawer::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* fundo clicável separado para fechar — filho direto, antes do conteúdo */
.drawer-overlay-bg {
  position: absolute; inset: 0;
  z-index: 1;
  cursor: pointer;
}

.drawer-conteudo {
  position: relative;
  z-index: 2; /* acima do overlay-bg — nunca interceptado */
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--borda);
  padding: 0 0 0;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

.drawer-header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--borda);
  z-index: 1;
}
.drawer-header h3 { font-size: 1rem; font-weight: 900; }

.drawer-conteudo .campo,
.drawer-conteudo .campo-row {
  padding: 0 20px;
}

.drawer-conteudo .upload-area { margin: 0 20px; }

.drawer-botoes {
  display: flex; justify-content: space-between;
  padding: 16px 20px 16px; gap: 10px;
  position: sticky; bottom: 0;
  background: var(--bg2);
  border-top: 1px solid var(--borda);
  z-index: 2; /* acima do conteúdo do drawer, nunca coberto */
}

/* ── MODAL CATEGORIA ── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 70; padding: 0;
  backdrop-filter: blur(3px);
}

/* ── Estrutura modal moderno (idêntica ao public) ── */
.modal-conteudo {
  width: 100%; max-width: 520px; background: var(--bg2);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
  display: flex; flex-direction: column;
  max-height: 92vh; overflow: hidden;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-config-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--borda);
  flex-shrink: 0;
}
.modal-config-header h3 {
  font-size: 1.05rem; font-weight: 900;
  color: var(--texto); margin-bottom: 4px;
}

.modal-config-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 16px 20px 0;
  scrollbar-width: thin;
}
.modal-config-body::-webkit-scrollbar { width: 4px; }
.modal-config-body::-webkit-scrollbar-thumb {
  background: var(--borda); border-radius: 4px;
}

.modal-config-rodape {
  flex-shrink: 0;
  padding: 12px 20px 28px;
  border-top: 1px solid var(--borda);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.cfg-grupo-single {
  margin-bottom: 14px;
}
.cfg-grupo-single > label, .cfg-grupo-single label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--texto-suave); margin-bottom: 6px;
}
.cfg-grupo-single input[type="text"],
.cfg-grupo-single input[type="number"],
.cfg-grupo-single select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--borda);
  font-size: 0.85rem; font-family: 'Nunito', sans-serif;
  background: var(--bg2); color: var(--texto);
  transition: border-color 0.2s;
}
.cfg-grupo-single input:focus,
.cfg-grupo-single select:focus {
  outline: none; border-color: var(--verde); background: var(--bg1);
}

.modal-botoes {
  display: flex; gap: 8px; align-items: center;
}

/* legado — modal-box usado no modal-cat e modal-bairro */
.modal-box {
  background: var(--bg2); border: 1px solid var(--borda);
  border-radius: 16px; padding: 24px 20px;
  width: 100%; max-width: 340px;
  margin: auto;
}
.modal.modal-center {
  align-items: center;
}
.modal-box h3 { font-size: 1rem; font-weight: 900; margin-bottom: 16px; }

/* ── BOTÕES ── */
.btn-primario {
  padding: 10px 18px; border-radius: 8px; border: none;
  background: var(--verde); color: #fff;
  font-size: 0.88rem; font-weight: 800; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s, transform 0.1s;
}
.btn-primario:hover  { background: var(--verde-h); }
.btn-primario:active { transform: scale(0.97); }
.btn-primario.w100   { width: 100%; padding: 12px; font-size: 0.95rem; }

.btn-ghost {
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--borda);
  background: transparent; color: var(--texto-s);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--texto-s); color: var(--texto); }

.btn-danger {
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--vermelho);
  background: transparent; color: var(--vermelho);
  font-size: 0.88rem; font-weight: 800; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.15s;
}
.btn-danger:hover { background: rgba(218,54,51,0.1); }

.btn-icon {
  width: 36px; height: 36px; border-radius: 8px; border: none;
  background: var(--bg3); color: var(--texto);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.btn-icon:hover { background: var(--borda); }

/* ── MENSAGENS ── */
.msg-erro {
  padding: 10px 12px; border-radius: 8px; margin-bottom: 12px;
  font-size: 0.82rem; font-weight: 700;
  background: rgba(218,54,51,0.15); color: #ff7b72;
  border: 1px solid rgba(218,54,51,0.3);
}
.msg-sucesso {
  padding: 10px 12px; border-radius: 8px; margin-bottom: 12px;
  font-size: 0.82rem; font-weight: 700;
  background: rgba(35,134,54,0.15); color: #56d364;
  border: 1px solid rgba(35,134,54,0.3);
}

/* ── LOADING ── */
.loading-inline {
  text-align: center; padding: 40px;
  color: var(--texto-s); font-weight: 700; font-size: 0.85rem;
}

/* ── UTILITÁRIOS ── */
.escondido { display: none !important; }

/* ── REMOVER FOTO ── */
.btn-remover-foto {
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--vermelho);
  background: transparent;
  color: var(--vermelho);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.15s;
}
.btn-remover-foto:hover { background: rgba(218,54,51,0.1); }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .sidebar { transform: translateX(0); }
  .sidebar-overlay { display: none !important; }
  #btn-menu { display: none; }
  .admin-main {
    margin-left: var(--sidebar-w);
    margin-right: 0;
    /* Ocupa todo o espaço restante — sem vazio à direita */
    max-width: calc(100% - var(--sidebar-w));
    padding: 24px 32px 80px;
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .drawer { left: var(--sidebar-w); }

  /* itens da lista — garante que o nome apareça no desktop */
  .item-admin {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
  }
  .item-admin-info {
    min-width: 0;
    overflow: hidden;
  }
  .item-admin-nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }
  .item-admin-direita {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  /* tela empresa — scroll quando conteúdo ultrapassa a tela */
  #tela-empresa {
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }

  /* carrinho do site público — scroll correto no desktop */
  .carrinho-conteudo {
    overflow-y: auto;
  }

  /* filtro categorias — mais espaço no desktop */
  .filtro-cats {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}


/* ════════════════════════════════════════════════
   v8 — Grupos, Bairros, Horários, Pagamento
   ════════════════════════════════════════════════ */
.tela-sub {
  color: var(--text-muted, #9aa);
  margin: -8px 0 16px;
  font-size: 14px;
}
.card-config {
  background: var(--surface, #1f2030);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
}
.card-config-titulo {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.grupo-itens {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grupo-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.grupo-item-row input[type="text"] { flex: 2; }
.grupo-item-row input[type="number"] { flex: 1; min-width: 0; }
.grupo-item-row .btn-rm-item {
  background: transparent;
  border: 0;
  color: #f55;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
}

.grupos-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 10px;
  max-height: 180px;
  overflow-y: auto;
}
.grupos-checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 4px;
}
.grupos-checklist .hint-vazio {
  color: #888;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.bairro-row, .grupo-row {
  background: var(--surface, #1f2030);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bairro-info, .grupo-info { flex: 1; min-width: 0; }
.bairro-nome, .grupo-nome {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.bairro-meta, .grupo-meta {
  font-size: 13px;
  color: #9aa;
}
.bairro-acoes, .grupo-acoes { display: flex; gap: 6px; }

.lista-horarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.horario-row {
  background: var(--surface, #1f2030);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
}
.horario-dia { font-weight: 700; font-size: 15px; }
.horario-controles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.horario-controles input[type="time"] {
  width: 110px;
}
.horario-fechado .horario-controles input[type="time"] {
  opacity: .35;
  pointer-events: none;
}

.lista-pagamento {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pagamento-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}
.pagamento-nome { font-weight: 600; }

@media (max-width: 600px) {
  .horario-row { grid-template-columns: 1fr; }
  .horario-controles { width: 100%; }
}

/* v9 — selects de hora compactos (substitui type=time que cortava no Android) */
.hora-select-wrap{display:inline-flex;align-items:center;gap:2px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:2px 4px}
.hora-select{background:transparent;color:inherit;border:0;padding:6px 2px;font-size:14px;font-variant-numeric:tabular-nums;-webkit-appearance:none;appearance:none;text-align:center;min-width:38px}
.hora-select:focus{outline:0}
.hora-sep{opacity:.55;font-weight:600}
@media (max-width:480px){
  .horario-controles{flex-wrap:wrap;gap:8px}
  .hora-select{font-size:13px;min-width:34px}
}

/* ── Badge de novos pedidos no menu lateral ── */
.nav-item { position: relative; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  margin-left: 8px;
  background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.25);
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0.05); }
}
