:root {
  --bg-body: #04060f;
  --bg-body-glow: radial-gradient(circle at center, #0a1220 0%, #04060f 60%, #02040a 100%);

  --bg-sidebar: radial-gradient(circle at top left, #02202e 0%, #021018 55%, #000000 100%);
  --bg-main: radial-gradient(circle at top, #06111f 0%, #03060d 50%, #02040a 100%);

  --card-bg: #07101c;
  --card-bg-soft: #060e19;

  --neon-green: #22c55e;
  --neon-green-soft: rgba(34, 197, 94, 0.25);
  --neon-orange: #f97316;
  --neon-orange-soft: rgba(249, 115, 22, 0.28);

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;

  --radius-card: 20px;
}

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

body {
  background: var(--bg-body-glow);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}

html, body {
  height: 100%;
}

/* LAYOUT */
.app-shell {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg-main);
}

/* SIDEBAR */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(20, 30, 50, 0.8);
  box-shadow: 8px 0 30px rgba(0,0,0,0.8);
  padding: 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.sidebar-logo {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #000000 100%);
  box-shadow:
    0 0 26px rgba(34, 197, 94, 0.5),
    0 0 0 1px rgba(6, 95, 70, 0.7);
}
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-title {
  font-size: 0.70rem;
  text-align: center;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}
.sidebar-title span {
  color: var(--neon-green);
  font-weight: 700;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.nav-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.1rem;
  cursor: pointer;
  border-radius: 999px;
  transition: 0.15s ease-out;
}

.nav-item i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1220;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.8),
    0 0 0 1px rgba(20,25,40,0.8);
}

.nav-item.active {
  color: #fff;
}
.nav-item.active i {
  box-shadow:
    0 0 14px rgba(34,197,94,0.8),
    0 0 0 1px rgba(34,197,94,0.7);
  background: #052d1d;
}

.sidebar-footer {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.62rem;
}

/* MAIN */
.main {
  padding: 1.1rem 1.3rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* TOPBAR AJUSTADA */
.topbar {
  background: #091524;
  border-radius: 22px;
  padding: 0.85rem 1rem;
  box-shadow:
    0 15px 40px rgba(0,0,0,0.75),
    0 0 0 1px rgba(25,35,55,0.8);
  display: flex;
  justify-content: space-between;
}

.company-context-bar {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.42);
  display: grid;
  gap: 8px;
}
.owner-global-notice-host {
  display: grid;
  gap: 8px;
}
.owner-global-notice {
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(15, 23, 42, .75);
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.owner-global-notice.is-important {
  border-color: rgba(251, 191, 36, .55);
  background: rgba(120, 53, 15, .35);
}
.owner-global-notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.owner-global-notice h3 {
  margin: 0;
  font-size: 14px;
}
.owner-global-notice p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(226, 232, 240, .95);
}
.owner-global-notice-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.owner-global-notice-close {
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: transparent;
  color: #e2e8f0;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.company-context-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, .9);
}
.company-context-main h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
#companyViewSubtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(226, 232, 240, .84);
}
.company-context-note {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, .95);
}
.company-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.company-context-actions .btn-soft {
  padding: 9px 12px;
  font-size: 12px;
}

.recovery-readiness-bar {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, .32);
  border-radius: 12px;
  background: rgba(8, 47, 73, .20);
}
.recovery-readiness-title {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.recovery-readiness-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recovery-readiness-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(30, 41, 59, .35);
}
.recovery-readiness-chip.is-overdue {
  border-color: rgba(251, 146, 60, .38);
  background: rgba(154, 52, 18, .25);
}
.recovery-readiness-chip.is-soon {
  border-color: rgba(56, 189, 248, .38);
  background: rgba(8, 47, 73, .30);
}
.recovery-readiness-chip.is-missing {
  border-color: rgba(148, 163, 184, .38);
  background: rgba(51, 65, 85, .32);
}
.recovery-readiness-chip.is-fresh {
  border-color: rgba(34, 197, 94, .38);
  background: rgba(20, 83, 45, .28);
}
.recovery-readiness-chip.is-absent {
  border-color: rgba(239, 68, 68, .38);
  background: rgba(127, 29, 29, .24);
}
.recovery-readiness-chip.is-cancelled {
  border-color: rgba(251, 191, 36, .38);
  background: rgba(113, 63, 18, .26);
}
.recovery-readiness-chip.is-early {
  border-color: rgba(16, 185, 129, .38);
  background: rgba(6, 78, 59, .28);
}
.recovery-readiness-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(226, 232, 240, .82);
}

.title-neon {
  font-size: 1.28rem;
  letter-spacing: 0.32em;
  color: var(--neon-green);
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(34,197,94,0.9),
    0 0 24px rgba(34,197,94,0.7);
}

.sub {
  color: var(--text-soft);
  font-size: 0.83rem;
}

/* STATUS */
.status-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #0b1625;
  border: 1px solid rgba(20,30,50,0.8);
  font-size: 0.75rem;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
}
.dot.on {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}
.dot.off {
  background: #e66;
  box-shadow: 0 0 10px rgba(255,30,30,0.7);
}

/* SEARCH */
.search-box {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.search-box input {
  flex: 1;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(25,35,55,0.9);
  background: #0a1320;
  color: var(--text-main);
}
.btn-green {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #062d1e;
  font-size: 0.88rem;
}

/* GRID CARDS */
.metrics-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.8rem;
}

/* CARD BASE */
.metric-card {
  background: #08121f;
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(249,115,22,0.3);
  box-shadow:
    0 0 10px rgba(249,115,22,0.15),
    0 14px 40px rgba(0,0,0,0.9);
}

.metric-card h3 {
  font-size: 0.93rem;
  display: flex;
  justify-content: space-between;
}
.metric-card .icon {
  font-size: 1.15rem;
  opacity: 0.9;
}

.metric-card p {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  font-weight: 700;
  color: #ff6f1c;
}

/* TRAÇO LARANJA (FINO) */
.metric-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.20rem;
}
.metric-card p::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  background: var(--neon-orange);
  border-radius: 3px;
  margin-top: 4px;
}

/* CARD COBRANÇA — AJUSTADO */
.metric-card.metric-orange {
  background: linear-gradient(180deg, #141f2e 0%, #0a0f18 100%);
  border-color: rgba(249,115,22,0.4);
  box-shadow:
    0 0 16px rgba(249,115,22,0.28),
    0 0 55px rgba(249,115,22,0.23);
}

/* BOTÃO DISPARAR (mesmo estilo do cadastro rápido) */
.btn-disparar {
  margin-top: 0.7rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.78rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  box-shadow:
    0 14px 28px rgba(249,115,22,0.4),
    0 0 0 1px rgba(254,243,199,0.6);
}

/* CLIENTES DO DIA */
.clientes-dia {
  margin-top: 1rem;
  background: #08121f;
  border-radius: 20px;
  padding: 1rem;
  box-shadow:
    0 22px 50px rgba(0,0,0,0.85),
    0 0 0 1px rgba(20,30,50,0.7);
}
.cd-info {
  color: var(--text-soft);
  font-size: 0.88rem;
}
.btn-add {
  margin-top: 0.7rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  box-shadow:
    0 18px 38px rgba(249,115,22,0.4),
    0 0 0 1px rgba(254,243,199,0.6);
}

/* VIEWS */
.view { display: none; }
.view.active { display: block; }

/* RESPONSIVO */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 78px 1fr;
  }
  .metric-card {
    min-height: 110px;
  }
}


/* =========================================================
   PATCH 01 — AJUSTES FINOS NOS SHARDS / TOPBAR / ÍCONES
   ========================================================= */

/* 1 — Remover traço grande interno (—) */
.metric-card p {
  color: var(--neon-orange);
  line-height: 1.1;
}

.metric-card p::before,
.metric-card p::after {
  content: "";
}


/* 2 — VENOM FLOW mais vivo + animação */
.title-neon {
  color: #32ff75 !important; /* verde mais claro e vivo */
  text-shadow:
    0 0 12px rgba(50, 255, 117, 1),
    0 0 28px rgba(50, 255, 117, 0.9),
    0 0 45px rgba(50, 255, 117, 0.7);
  animation: neonPulseStrong 2.6s ease-in-out infinite;
}

@keyframes neonPulseStrong {
  0%,100% {
    text-shadow:
      0 0 10px rgba(50, 255, 117, 1),
      0 0 26px rgba(50, 255, 117, 1),
      0 0 40px rgba(50, 255, 117, 0.7);
  }
  50% {
    text-shadow:
      0 0 18px rgba(80, 255, 150, 1),
      0 0 38px rgba(80, 255, 150, 0.9),
      0 0 60px rgba(80, 255, 150, 0.8);
  }
}


/* 3 — Shard “Receita do painel” alinhado ao topo */
.metric-card h3 {
  margin-bottom: 0.4rem !important;
}

.metric-card:nth-child(5) { /* RECEITA */
  display: flex;
  justify-content: flex-start !important;
  padding-top: 1.1rem;
}


/* 4 — Mais neon no Shard COBRANÇA */
.metric-orange {
  box-shadow:
    0 0 28px rgba(249, 115, 22, 0.9),
    0 0 110px rgba(249, 115, 22, 0.6),
    0 18px 50px rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(249, 115, 22, 0.65) !important;
  background: radial-gradient(circle at center, #0f0f0f 0%, #1a0e02 60%, #0e0901 100%) !important;
}


/* 5 — Anel neon nos ícones dos Shards */
.metric-card h3::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 12px rgba(255,255,255,0.2),
    inset 0 0 6px rgba(255,255,255,0.15);
  pointer-events: none;
}

/* garante que o ícone continue visível acima da borda */
.metric-card h3 i, 
.metric-card h3 emoji {
  position: relative;
  z-index: 2;
}


/* =========================================================
   PARTE 3 — NEON SUAVE • FUNDO VIVO • SHARDS COMPACTOS
   ========================================================= */

/* 1 — Neon suave interno em TODOS os shards */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}

/* 2 — Ícones mais vivos */
.metric-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card h3 emoji,
.metric-card h3 i {
  font-size: 1.25rem !important;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

/* Anel suave no ícone (internal ring) */
.metric-card h3::after {
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow:
    0 0 8px rgba(255,255,255,0.12),
    inset 0 0 6px rgba(255,255,255,0.12) !important;
}


/* 3 — Fundo geral mais vivo e profundo */
body {
  background: radial-gradient(circle at bottom, #020617 0%, #01040d 45%, #000000 100%) !important;
}

/* Levíssima textura (não pesa) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
  z-index: -1;
}


/* 4 — TOPBAR com profundidade e borda interna */
.topbar {
  background: linear-gradient(145deg, #020b16, #030915);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    inset 0 0 14px rgba(0,0,0,0.6),
    0 10px 25px rgba(0,0,0,0.8);
}


/* 5 — SHARDS menores + compactos */
.metrics-grid {
  gap: 0.65rem !important;
}

.metric-card {
  padding: 0.75rem 0.85rem !important;
  min-height: 115px !important;
}

.metric-card h3 {
  font-size: 0.92rem !important;
}

.metric-card p {
  font-size: 1.2rem !important;
}


/* RECEITA DO PAINEL — corrige alinhamento final */
.metric-card:nth-child(5) {
  padding-top: 1rem !important;
}


/* COBRANÇA — reforço final do brilho */
.metric-orange {
  box-shadow:
    0 0 32px rgba(249, 115, 22, 0.85),
    0 0 110px rgba(249, 115, 22, 0.45),
    0 16px 45px rgba(0,0,0,0.95) !important;
  background: radial-gradient(circle at center, #130b03 0%, #0d0601 50%, #070401 100%) !important;
}

/* HOTFIX – remover traço grande e círculo desalinhado nos cards */
.metric-card p::after {
  display: none !important;
}

.metric-card h3::after {
  content: none !important;
  display: none !important;
}
/* ==========================
   AJUSTE FINO DOS ÍCONES NOS CARDS
   ========================== */

.metric-card h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Círculo atrás do emoji (centralizado e suave) */
.metric-card h3 span.icone,
.metric-card h3 i.icone,
.metric-card h3 .icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* cria o círculo perfeito atrás do emoji */
.metric-card h3 span.icone::after,
.metric-card h3 i.icone::after,
.metric-card h3 .icon-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.9); /* laranja neon */
  box-shadow:
    0 0 8px rgba(249, 115, 22, 0.8),
    0 0 16px rgba(249, 115, 22, 0.6);
  pointer-events: none;
}

/* Ajuste 1 – remover traços grandes e deixar placeholder pequeno */
.metric-card p::after {
  display: none !important;
}

.metric-placeholder {
  width: 28px;
  height: 3px;
  border-radius: 8px;
  background: rgba(255,140,60,0.55);
  margin-top: 4px;
  margin-bottom: 6px;
}


/* Ajuste 2 – borda fina e centralização real dos ícones */
.metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.metric-icon span {
  font-size: 20px;
  margin: 0;
}


/* Ajuste 3 – neon interno premium no shard de cobrança */
.metric-card.metric-orange {
  box-shadow:
    0 0 26px rgba(249,115,22,0.7),
    inset 0 0 28px rgba(255,140,60,0.25),
    0 0 80px rgba(255,100,0,0.50);
}

.metric-card.metric-orange .btn-disparar {
  box-shadow:
    0 0 22px rgba(249,115,22,0.9),
    0 0 0 2px rgba(255,220,170,0.95),
    inset 0 0 25px rgba(255,150,90,0.45);
}


/* Ajuste 5 – alinhar título do card Receita */
.metric-card h3 {
  margin-top: 0px !important;
  padding-top: 4px;
}


/* Ajuste 4 – título VENOM FLOW mais vivo */
.title-neon {
  color: #32ff92;
  text-shadow:
    0 0 12px rgba(50,255,150,0.85),
    0 0 32px rgba(50,255,150,0.55),
    0 0 52px rgba(50,255,150,0.38),
    0 0 88px rgba(50,255,150,0.28);
  animation: venomGlow 5s ease-in-out infinite;
}

@keyframes venomGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(50,255,150,0.8),
      0 0 28px rgba(50,255,150,0.5),
      0 0 52px rgba(50,255,150,0.40);
  }
  50% {
    text-shadow:
      0 0 16px rgba(100,255,200,1),
      0 0 38px rgba(100,255,200,0.9),
      0 0 72px rgba(100,255,200,0.75);
  }
}


/* Ajuste 5 – alinhar título do card Receita */
.metric-card h3 {
  margin-top: 0px !important;
  padding-top: 4px;
}


/* Ajuste 6 – borda interna premium */
.metric-card {
  position: relative;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}


/* Ajuste 7 – fundo com leve vida tecnológica */
body {
  background: radial-gradient(circle at bottom, #000b14 0%, #020617 55%, #01050b 100%);
}


/* Ajuste 8 – equalizar sombras */
.metric-card {
  box-shadow:
    0 0 14px rgba(0,0,0,0.85),
    0 12px 26px rgba(0,0,0,0.70);
}


/* ================================================
   AJUSTES FINAIS (FINISH) PARA TODOS OS SHARDS
   ================================================ */

/* Remove traços antigos por segurança */
.metric-card p {
  margin-bottom: 8px !important;
  color: #ffffffd8 !important;
}

/* Barra premium neon laranja */
.metric-bar {
  width: 42px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff9d3b, #ff7a00);
  box-shadow:
    0 0 6px rgba(255, 128, 0, 0.75),
    0 0 12px rgba(255, 128, 0, 0.50);
  margin-bottom: 10px;
}

/* Círculo interno dos ícones */
.metric-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 6px rgba(255,255,255,0.10),
    inset 0 0 4px rgba(255,255,255,0.10);
}

/* Shard de cobrança — neon mais forte */
.metric-card.metric-orange {
  box-shadow:
    0 0 30px rgba(255, 128, 0, 0.88),
    0 0 60px rgba(255, 128, 0, 0.50),
    0 22px 50px rgba(0, 0, 0, 0.95);
}

/* Título do shard Receita alinhado ao topo */
.metric-card.receita h3 {
  margin-top: 6px !important;
}

/* ================================================
   AJUSTES FINAIS (FINISH) PARA TODOS OS SHARDS
   ================================================ */

/* Remove traços antigos por segurança */
.metric-card p {
  margin-bottom: 8px !important;
  color: #ffffffd8 !important;
}

/* Barra premium neon laranja */
.metric-bar {
  width: 42px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff9d3b, #ff7a00);
  box-shadow:
    0 0 6px rgba(255, 128, 0, 0.75),
    0 0 12px rgba(255, 128, 0, 0.50);
  margin-bottom: 10px;
}

/* Círculo interno dos ícones */
.metric-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 6px rgba(255,255,255,0.10),
    inset 0 0 4px rgba(255,255,255,0.10);
}

/* Shard de cobrança — neon mais forte */
.metric-card.metric-orange {
  box-shadow:
    0 0 30px rgba(255, 128, 0, 0.88),
    0 0 60px rgba(255, 128, 0, 0.50),
    0 22px 50px rgba(0, 0, 0, 0.95);
}

/* Título do shard Receita alinhado ao topo */
.metric-card.receita h3 {
  margin-top: 6px !important;
}

/* ============================
   AJUSTE FINAL – ÍCONES INTERNOS
   ============================ */

.metric-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  border-radius: 50%;
  margin-left: auto;
  margin-bottom: 0.2rem;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.07),
    inset 0 0 16px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Ajuste para ícones ficarem mais no topo */
.metric-card h3 {
  margin-top: -0.3rem;
}

/* Alinhamento do título do shard Receita */
.metric-card.receita h3 {
  margin-top: -0.2rem !important;
}

/* ============================
   SHARD COBRANÇA – NEON PREMIUM
   ============================ */

.metric-card.metric-orange {
  background: radial-gradient(circle at center, #1a0f05 0%, #120a03 45%, #0a0502 100%);
  border: 1px solid rgba(255, 165, 55, 0.45);
  box-shadow:
    0 0 28px rgba(255, 140, 0, 0.45),
    0 0 65px rgba(255, 120, 0, 0.35),
    inset 0 0 22px rgba(255, 120, 0, 0.15),
    0 18px 55px rgba(0, 0, 0, 0.95);
}

/* Botão Disparar Agora */
.btn-disparar {
  box-shadow:
    0 0 22px rgba(255, 180, 55, 0.75),
    0 0 0 2px rgba(255, 230, 150, 0.75),
    inset 0 0 30px rgba(255, 160, 55, 0.4);
}

/* ===== AJUSTE FINO HEADER DOS CARDS ===== */

/* Linha do título + ícone */
.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

/* Título continua ocupando a esquerda */
.metric-header h3 {
  margin: 0;
}

/* Círculo do ícone – versão corrigida */
.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.06),
    inset 0 0 10px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Garante que o emoji não “desça” dentro do círculo */
.metric-icon span,
.metric-icon i,
.metric-icon svg {
  display: block;
  line-height: 1;
}



/* ============================================================
   🔥 AJUSTE FINAL – ÍCONES, TÍTULOS E CARD COBRANÇA  
   Baseado na versão antiga (IMAGEM 2)  
   ============================================================ */


/* === 1. ÍCONES REDUZIDOS (visualmente menor, padrão imagem antiga) === */
.metric-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.95rem !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 12px;

  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  box-shadow:
    0 0 8px rgba(255,255,255,0.05),
    inset 0 0 8px rgba(255,255,255,0.08),
    0 0 0 1px rgba(255,255,255,0.20);
}

.metric-card {
  position: relative;
}





/* === 2. TÍTULO RECEITA – FORÇA QUEBRA DE LINHA DEPOIS DE "do" === */
.metric-card h3 {
  max-width: 80%;
  line-height: 1.25rem !important;
  word-break: break-word;
  white-space: pre-line;
}

#card-receita h3::after {
  content: "";
}

#card-receita h3 {
  white-space: normal !important;
}




/* === 3. REMOVER TRAÇOS GRANDES (SÓ DEIXAR OS LARANJAS PEQUENOS) === */
.metric-card p {
  margin-top: 0.3rem;
}

.metric-card p:first-of-type {
  margin-bottom: -6px;
}



/* === 4. CARD COBRANÇA – GLOW INTERNO IGUAL AO MODELO ANTIGO === */

.metric-card.metric-orange {
  background: radial-gradient(circle at center,
      rgba(255,140,0,0.08) 0%,
      rgba(0,0,0,0.85) 65%,
      rgba(0,0,0,0.90) 100%
  ) !important;

  box-shadow:
    inset 0 0 25px rgba(255,149,0,0.22),
    inset 0 0 40px rgba(255,149,0,0.12),
    0 0 45px rgba(255,140,0,0.65),
    0 0 95px rgba(255,110,0,0.35) !important;
}


/* === 5. ÍCONES DENTRO DO CÍRCULO 100% CENTRALIZADOS === */
.metric-icon span,
.metric-icon i,
.metric-icon img {
  display: block;
  margin: 0;
  padding: 0;
  transform: translateY(0);
  line-height: 1;
}


/* Glow suave para subtítulo */
.sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-shadow: 
    0 0 6px rgba(34, 197, 94, 0.25),
    0 0 14px rgba(34, 197, 94, 0.15);
}


/* Barra de busca mais viva */
.search-box input {
  background: radial-gradient(circle at top, #07111d, #020617);
  border: 1px solid rgba(80, 100, 130, 0.45);
}


/* Micro-relieve nos cards */
.metric-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 14px var(--neon-orange-soft),
    0 22px 44px rgba(0, 0, 0, 0.95);
}

.metric-card.metric-orange {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 26px rgba(249, 115, 22, 0.85),
    0 0 70px rgba(249, 115, 22, 0.60),
    0 26px 60px rgba(0, 0, 0, 0.98);
}


/* Ícone decorativo Clientes do Dia */
.clientes-dia::before {
  content: "📅";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.25rem;
  opacity: 0.25;
  filter: drop-shadow(0 0 6px rgba(249,115,22,0.35));
}


.clientes-dia {
  position: relative;
}


/* Vinheta suave no topo da sidebar */
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: radial-gradient(circle at top center, rgba(34,197,94,0.25), transparent 70%);
  pointer-events: none;
}

.sidebar {
  position: relative;
}


/* ================================
      CLIENTES – TELA INTERNA
================================ */

.titulo-interno {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--neon-green);
}

.topo-clientes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-add-cliente {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6);
}

.clientes-search-box {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.clientes-search-box input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  background: #020818;
  padding: 0.65rem 1rem;
  color: var(--text-main);
}

.clientes-tabela {
  background: radial-gradient(circle at top left, #020818, #020713);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.9);
}

.clientes-tabela table {
  width: 100%;
  border-collapse: collapse;
}

.clientes-tabela th {
  text-align: left;
  padding: 0.6rem;
  color: var(--neon-green);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.clientes-tabela td {
  padding: 0.6rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clientes-tabela tr:hover {
  background: rgba(255,255,255,0.03);
}

/* skeleton */
.clientes-tabela.loading .skeleton-line {
  height: 16px;
  background: #1f2937;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: .4; }
  50% { opacity: 1; }
  100% { opacity: .4; }
}

/* =========================================
   CLIENTES – LISTA + PAINEL LATERAL
   ========================================= */

.clientes-header {
  padding: 24px 24px 12px;
}

.clientes-header h2 {
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 4px;
}

.clientes-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

/* LISTA PRINCIPAL */

.clientes-lista {
  padding: 0 24px 32px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cliente-item {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9) 0%, rgba(9,9,20,0.95) 60%, #020617 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 0 18px rgba(0,0,0,0.65);
}

.cliente-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cliente-nome {
  font-size: 16px;
  color: #f9fafb;
  font-weight: 600;
}

.cliente-tel {
  font-size: 13px;
  color: #9ca3af;
}

.cliente-status {
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  width: fit-content;
  font-weight: 600;
}

/* badges de status */

.st-ativo {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.25);
}

.st-vencendo {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
}

.st-atrasado {
  background: rgba(248, 113, 113, 0.16);
  color: #f97373;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.25);
}

/* BOTÃO "⋮" (ver cliente) */

.btn-ver {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffb74a;
  background: radial-gradient(circle at top, #fed7aa 0%, #fb923c 40%, #ea580c 100%);
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.65);
}

/* PAINEL LATERAL DO CLIENTE */

.cliente-panel {
  position: fixed;
  right: -76%;
  top: 0;
  height: 100vh;
  width: 76%;
  max-width: 420px;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #000000 100%);
  box-shadow: -8px 0 30px rgba(0,0,0,0.7);
  padding: 20px 20px 28px;
  transition: right .30s ease;
  overflow-y: auto;
  z-index: 90;
}

.cliente-panel.show {
  right: 0;
}

.panel-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  cursor: pointer;
  margin-bottom: 8px;
}

.painel-header {
  margin-bottom: 10px;
}

#pNome {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 4px;
}

.p-status {
  font-size: 13px;
  color: #a5b4fc;
}

.p-tel,
.p-venc {
  font-size: 14px;
  color: #e5e7eb;
  margin: 2px 0;
}

.p-historico {
  margin-top: 8px;
  font-size: 13px;
  color: #cbd5f5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.painel-acoes {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-acao {
  border-radius: 999px;
  padding: 8px 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* variações dos botões */

.btn-edit {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

.btn-renovar {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.btn-cobrar {
  background: rgba(251, 146, 60, 0.18);
  color: #fed7aa;
}

.btn-delete {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

/* ========================================= */
/* CLIENTES – lista em cards                 */
/* ========================================= */

#clientes.view {
  padding: 32px 24px;
  overflow-y: auto;
}

.clientes-header {
  margin-bottom: 16px;
}

.clientes-header h2 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #e5e7eb;
}

.clientes-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

#clientesView {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card do cliente */
.cliente-item {
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #000000 100%);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cliente-item:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
}

.cliente-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cliente-nome {
  font-size: 16px;
  color: #f9fafb;
  font-weight: 600;
}

.cliente-tel {
  font-size: 14px;
  color: #9ca3af;
}

/* Badge de status */
.cliente-status {
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  width: fit-content;
  font-weight: 600;
}

.st-ativo {
  background: rgba(16, 185, 129, 0.18);
  color: #22c55e;
}

.st-vencendo {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.st-atrasado {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* Botão de 3 pontos à direita */
.cliente-more {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #f97316;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
  flex-shrink: 0;
}

.cliente-more:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Itens do histórico dentro do painel */
.ph-item {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

/* ========================================= */
/* CLIENTES – lista em cards                 */
/* ========================================= */

#clientes.view {
  padding: 32px 24px;
  overflow-y: auto;
}

.clientes-header {
  margin-bottom: 16px;
}

.clientes-header h2 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #e5e7eb;
}

.clientes-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

#clientesView {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card do cliente */
.cliente-item {
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #000000 100%);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cliente-item:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
}

.cliente-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cliente-nome {
  font-size: 16px;
  color: #f9fafb;
  font-weight: 600;
}

.cliente-tel {
  font-size: 14px;
  color: #9ca3af;
}

/* Badge de status */
.cliente-status {
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  width: fit-content;
  font-weight: 600;
}

.st-ativo {
  background: rgba(16, 185, 129, 0.18);
  color: #22c55e;
}

.st-vencendo {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.st-atrasado {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* Botão de 3 pontos à direita */
.cliente-more {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #f97316;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
  flex-shrink: 0;
}

.cliente-more:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Itens do histórico dentro do painel */
.ph-item {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

/* ============================= */
/* PLANOS – VenomFlow            */
/* ============================= */

.planos-header {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.planos-header h2 {
  font-size: 1.05rem;
}

.planos-header p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.planos-toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.planos-search {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020818;
  color: var(--text-main);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  outline: none;
}

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

.btn-add-plano {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
  box-shadow:
    0 12px 30px rgba(249, 115, 22, 0.8),
    0 0 0 1px rgba(254, 243, 199, 0.9);
}

.planos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plano-card {
  background: radial-gradient(circle at top left, #020818, #020713);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.95);
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out;
}

.plano-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
  border-color: var(--neon-green-soft);
}

.pl-linha-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 0.5rem;
}

.pl-nome {
  font-size: 0.96rem;
  font-weight: 600;
}

.pl-tag-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-soft);
}

.pl-tag-chip.tag-principal {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.pl-tag-chip.tag-promocao {
  border-color: var(--neon-orange);
  color: var(--neon-orange);
}

.pl-tag-chip.tag-teste {
  border-color: #22d3ee;
  color: #22d3ee;
}

.pl-linha-middle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pl-preco-mini {
  font-weight: 600;
  color: #e5e7eb;
}

.pl-duracao-mini {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.pl-linha-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pl-status-mini {
  font-weight: 600;
}

.pl-status-mini.st-ativo {
  color: var(--neon-green);
}

.pl-status-mini.st-pausado {
  color: #f97373;
}

.planos-vazio {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 0.6rem 0.1rem;
}

/* Painel lateral de plano */
.plano-panel {
  position: fixed;
  right: -420px;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 420px;
  background: #020617;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.95);
  padding: 1rem 1.1rem 1.4rem;
  z-index: 60;
  transition: right 0.25s ease-out;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plano-panel.show {
  right: 0;
}

.plano-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.plano-header h2 {
  font-size: 1rem;
}

.pl-tag {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.pl-preco,
.pl-duracao,
.pl-tipo {
  font-size: 0.86rem;
  color: var(--text-main);
}

.pl-beneficios {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.plano-acoes {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-acao {
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.btn-acao.btn-edit {
  border-color: #22c55e;
}

.btn-acao.btn-duplicar {
  border-color: #22d3ee;
}

.btn-acao.btn-pausar {
  border-color: #fbbf24;
}

.btn-acao.btn-delete {
  border-color: #f97373;
  color: #fecaca;
}

@media (max-width: 900px) {
  .plano-panel {
    max-width: 100%;
  }
}

/* ============================= */
/* PLANOS – CARDS                */
/* ============================= */

.planos-lista {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plano-card {
  background: radial-gradient(circle at top left, #020818, #020713);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.95);
  cursor: pointer;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    border-color 0.14s ease-out;
}

.plano-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.95);
  border-color: var(--neon-green-soft);
}

.pl-linha-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.pl-nome {
  font-size: 0.98rem;
  font-weight: 600;
}

.pl-tag-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-soft);
}

.pl-tag-chip.tag-principal {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.pl-tag-chip.tag-promocao {
  border-color: var(--neon-orange);
  color: var(--neon-orange);
}

.pl-tag-chip.tag-teste {
  border-color: #22d3ee;
  color: #22d3ee;
}

.pl-linha-middle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pl-preco-mini {
  font-weight: 600;
  color: #e5e7eb;
}

.pl-duracao-mini {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.pl-linha-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pl-tipo-mini {
  opacity: 0.9;
}

.pl-status-mini {
  font-weight: 600;
}

.pl-status-mini.st-ativo {
  color: var(--neon-green);
}

.pl-status-mini.st-pausado {
  color: #f97373;
}

.planos-vazio {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 0.6rem 0.1rem;
}

/* ============================= */
/* PLANOS – CARDS                */
/* ============================= */

.planos-lista {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plano-card {
  background: radial-gradient(circle at top left, #020818, #020713);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.95);
  cursor: pointer;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    border-color 0.14s ease-out;
}

.plano-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.95);
  border-color: var(--neon-green-soft);
}

.pl-linha-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.pl-nome {
  font-size: 0.98rem;
  font-weight: 600;
}

.pl-tag-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-soft);
}

.pl-tag-chip.tag-principal {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.pl-tag-chip.tag-promocao {
  border-color: var(--neon-orange);
  color: var(--neon-orange);
}

.pl-tag-chip.tag-teste {
  border-color: #22d3ee;
  color: #22d3ee;
}

.pl-linha-middle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pl-preco-mini {
  font-weight: 600;
  color: #e5e7eb;
}

.pl-duracao-mini {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.pl-linha-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pl-tipo-mini {
  opacity: 0.9;
}

.pl-status-mini {
  font-weight: 600;
}

.pl-status-mini.st-ativo {
  color: var(--neon-green);
}

.pl-status-mini.st-pausado {
  color: #f97373;
}

.planos-vazio {
  font-size: 0.86rem;
  color: var(--text-soft);
  padding: 0.6rem 0.1rem;
}

/* ===================================== */
/* COBRANÇAS – cards de vencidos         */
/* ===================================== */

#cobrancas {
  padding: 24px;
}

.cobrancas-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.cobrancas-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.cobrancas-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cb-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
}

.cb-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #f9fafb;
}

#cobrancasLista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cobranca-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

.cb-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cb-nome {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.cb-plano {
  font-size: 14px;
  color: #9ca3af;
}

.cb-vencimento {
  font-size: 13px;
  color: #e5e7eb;
}

.cb-tel {
  font-size: 13px;
  color: #64748b;
}

.cb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cb-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cb-hoje {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.cb-prox {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.cb-atrasado {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.cb-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.cb-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cobranca-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cb-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ===================================== */
/* COBRANÇAS – cards de vencidos         */
/* ===================================== */

#cobrancas {
  padding: 24px;
}

.cobrancas-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.cobrancas-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.cobrancas-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cb-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
}

.cb-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #f9fafb;
}

#cobrancasLista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cobranca-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

.cb-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cb-nome {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.cb-plano {
  font-size: 14px;
  color: #9ca3af;
}

.cb-vencimento {
  font-size: 13px;
  color: #e5e7eb;
}

.cb-tel {
  font-size: 13px;
  color: #64748b;
}

.cb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cb-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cb-hoje {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.cb-prox {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.cb-atrasado {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.cb-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.cb-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cobranca-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cb-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ===================================== */
/* MENSAGENS – templates                 */
/* ===================================== */

#mensagens {
  padding: 24px;
}

.mensagens-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.mensagens-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.mensagens-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.msg-search {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 14px;
}

.msg-search::placeholder {
  color: #6b7280;
}

.msg-btn-novo {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
  cursor: pointer;
}

.mensagens-disparos-bloco {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
}

.mensagens-disparos-bloco h3 {
  margin: 0;
  font-size: 15px;
}

.mensagens-disparos-sub {
  margin: 4px 0 10px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.82);
}

.mensagens-disparos-lista {
  display: grid;
  gap: 8px;
}

.mensagens-disparo-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.35);
}

.mensagens-disparo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.mensagens-disparo-meta,
.mensagens-disparo-servico,
.mensagens-disparos-empty {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.9);
}

#templatesLista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

.tpl-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-title {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.tpl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tpl-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tp-cobranca {
  background: rgba(239,68,68,0.18);
  color: #fecaca;
}

.tp-lembrete {
  background: rgba(234,179,8,0.18);
  color: #facc15;
}

.tp-boasvindas {
  background: rgba(34,197,94,0.18);
  color: #86efac;
}

.tp-campanha {
  background: rgba(59,130,246,0.18);
  color: #bfdbfe;
}

.tpl-canal {
  font-size: 11px;
  color: #9ca3af;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,0.6);
}

.tpl-uso {
  font-size: 13px;
  color: #e5e7eb;
  margin-top: 4px;
}

.tpl-preview {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.tpl-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.tpl-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tpl-btn.azul {
  background: rgba(37,99,235,0.9);
  color: #e5e7eb;
}

.tpl-btn.laranja {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
}

.tpl-btn.cinza {
  background: rgba(51,65,85,0.9);
  color: #e5e7eb;
}

.msg-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15,23,42,0.9);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 768px) {
  .template-card {
    flex-direction: column;
  }

  .tpl-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ===================================== */
/* CAMPANHAS – cards e filtros           */
/* ===================================== */

#campanhas {
  padding: 24px;
}

.camp-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.camp-header p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

.camp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.camp-filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.camp-chip {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
}

.camp-filter-active {
  border-color: #fb923c;
  background: rgba(251,146,60,0.15);
  color: #fed7aa;
}


.camp-pilot-note {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15,23,42,0.65);
}

.camp-btn-novo {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
  cursor: pointer;
}

#campanhasLista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camp-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 0 24px rgba(0,0,0,0.7);
}

.camp-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.camp-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.camp-nome {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.camp-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.camp-ativa {
  background: rgba(34,197,94,0.25);
  color: #bbf7d0;
}

.camp-agendada {
  background: rgba(234,179,8,0.25);
  color: #facc15;
}

.camp-finalizada {
  background: rgba(148,163,184,0.25);
  color: #e5e7eb;
}

.camp-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.camp-tipo {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,0.7);
}

.camp-periodo {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
}

.camp-publico {
  margin-top: 4px;
  font-size: 13px;
  color: #e5e7eb;
}

.camp-info-extra {
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.camp-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.camp-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.camp-btn.azul {
  background: rgba(37,99,235,0.9);
  color: #e5e7eb;
}

.camp-btn.laranja {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #0f172a;
}

.camp-btn.cinza {
  background: rgba(51,65,85,0.9);
  color: #e5e7eb;
}

.camp-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15,23,42,0.9);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 768px) {
  .camp-card {
    flex-direction: column;
  }

  .camp-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ===========================
   Pills genéricas (Filtros)
   =========================== */
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.pill:not(.active):hover {
  border-color: rgba(248, 250, 252, 0.5);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.pill.active {
  border-color: #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
  background: radial-gradient(circle at top left, #f97316 0%, #facc15 40%, #111827 100%);
  color: #111827;
}

/* ========================================= */
/* MÉTRICAS – VENOM FLOW                     */
/* ========================================= */

.metricas-header {
  margin-bottom: 24px;
}

.metricas-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metricas-header p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.metricas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metricas-card {
  background: radial-gradient(circle at top left, rgba(34,197,94,0.07), rgba(15,23,42,1));
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 0 18px rgba(248, 165, 66, 0.16);
}

.metricas-card.wide {
  grid-column: 1 / -1;
}

.m-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.9);
}

.m-value {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}

.m-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}

.metricas-row {
  margin-bottom: 24px;
}

.m-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.badge-soft {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-size: 12px;
}

.mt-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 12px 10px 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.4));
  overflow: hidden;
}

.mt-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(248, 165, 66, 0.2), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.mt-chart-bar {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #f97316, #ea580c);
  box-shadow: 0 0 14px rgba(248, 165, 66, 0.6);
  min-height: 8px;
}

.mt-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.mt-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.status-pill.st-ativo {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.status-pill.st-vencendo {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.status-pill.st-atrasado {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.mt-resumo-texto {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}

/* Responsivo */
@media (max-width: 1024px) {
  .metricas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .metricas-grid {
    grid-template-columns: 1fr;
  }

  .metricas-card {
    border-radius: 16px;
  }

  .mt-chart {
    height: 120px;
  }
}

/* ========================================= */
/* CONFIGURAÇÕES – VENOM FLOW                */
/* ========================================= */

.config-header {
  margin-bottom: 24px;
}

.config-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.config-header p {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(148, 163, 184, 0.9);
}

.config-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 18px;
  margin-bottom: 24px;
}

.config-row {
  margin-bottom: 24px;
}

.config-card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.09), rgba(15,23,42,1));
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 22px rgba(15, 23, 42, 0.9);
}

.config-title {
  font-size: 18px;
  font-weight: 600;
}

.config-sub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}

.config-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.config-field-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.cf-label {
  font-size: 13px;
  font-weight: 500;
}

.cf-input {
  background: rgba(15,23,42,0.9);
  border-radius: 999px;
  border: 1px solid rgba(51,65,85,0.9);
  padding: 7px 12px;
  font-size: 14px;
  outline: none;
  color: #e5e7eb;
}

.cf-input:focus {
  border-color: rgba(34,197,94,0.8);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.4);
}

.cf-hint {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

.cfg-btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cfg-btn-primary {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(34,197,94,0.4);
}

.cfg-btn-ghost {
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.5);
}

.cfg-btn-danger {
  background: rgba(239,68,68,0.9);
  color: #f9fafb;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(239,68,68,0.6);
}

.cfg-btn-danger-soft {
  background: transparent;
  color: #fca5a5;
  border: 1px dashed rgba(248,113,113,0.8);
}

.cfg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(248,165,66,0.35);
}

.config-switch-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.cfg-switch input {
  display: none;
}

.cfg-switch-slider {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(30,64,175,0.9);
  position: relative;
  box-shadow: inset 0 0 6px rgba(15,23,42,0.9);
  transition: background 0.15s ease;
}

.cfg-switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: transform 0.15s ease;
}

.cfg-switch input:checked + .cfg-switch-slider {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.cfg-switch input:checked + .cfg-switch-slider::before {
  transform: translateX(16px);
}

.cfg-switch-label {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.95);
}

.config-status-block {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(30,64,175,0.7);
}

.cfg-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 4px;
}

.cfg-status-label {
  color: rgba(226,232,240,0.95);
}

.cfg-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.cfg-badge-off {
  background: rgba(15,23,42,1);
  border-color: rgba(148,163,184,0.7);
  color: rgba(148,163,184,0.9);
}

.cfg-mini {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(148,163,184,0.9);
}

.config-danger {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(248,113,113,0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-danger-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* RESPONSIVO CONFIG */
@media (max-width: 1200px) {
  .config-grid {
    grid-template-columns: 1.7fr 1.3fr;
  }
}

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

  .config-field-inline,
  .config-danger-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .cfg-btn {
    align-self: flex-start;
  }
}

/* Clientes do dia – cards pequenos */
.cd-item {
  background: radial-gradient(circle at top left, rgba(248, 171, 64, 0.16), rgba(15, 23, 42, 1));
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid rgba(248, 171, 64, 0.6);
  box-shadow: 0 0 16px rgba(248, 171, 64, 0.35);
  font-size: 13px;
}

.cd-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cd-nome {
  font-weight: 600;
}

.cd-info-line span {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
}

.cd-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.cd-ativo {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.9);
  color: #6ee7b7;
}

.cd-vencendo {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.9);
  color: #facc15;
}

.cd-atrasado {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.9);
  color: #fecaca;
}

/* ========== OVERRIDE FINAL – Chips de filtro dos Clientes ========== */
#clientes .clientes-filtros .clientes-filtro-chip {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #e5e7eb !important;
  font-size: 13px !important;
  cursor: pointer;
  box-sizing: border-box;
}

#clientes .clientes-filtros .clientes-filtro-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.9) !important;
}

#clientes .clientes-filtros .clientes-filtro-chip.active {
  border-color: var(--primary, #22c55e) !important;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.35),
    rgba(15, 23, 42, 0.95)
  ) !important;
  color: #bbf7d0 !important;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
}

/* ============================
   Modal Cadastro Rápido – Card Premium VENOM
   ============================ */

#modalCadastroRapido {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15,23,42,0.88), rgba(2,6,23,0.96));
  backdrop-filter: blur(12px);
  z-index: 999;
}

#modalCadastroRapido.hidden {
  display: none;
}

/* Card interno do modal (o "premium") */
#modalCadastroRapido > * {
  max-width: 640px;
  width: 92%;
  border-radius: 28px;
  padding: 24px 24px 20px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(2,6,23,1));
  border: 1px solid rgba(34, 197, 94, 0.9);              /* borda verde neon */
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 0 24px rgba(34, 197, 94, 0.55);                    /* glow premium */
}

/* Título do modal destacado */
#modalCadastroRapido h2,
#modalCadastroRapido .modal-title {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbf7d0;
}

/* Linha de descrição mais suave */
#modalCadastroRapido p {
  color: #94a3b8;
}

/* Botão "Salvar" com cara de CTA VENOM */
#modalCadastroRapido button.salvar,
#modalCadastroRapido .btn-salvar,
#modalCadastroRapido button[type="submit"] {
  border-radius: 999px;
  padding-inline: 32px;
  font-weight: 600;
  background: radial-gradient(circle at top, #22c55e, #16a34a);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

/* Botão "Cancelar" mais discreto */
#modalCadastroRapido button.cancelar,
#modalCadastroRapido .btn-cancelar {
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
}

/* =========================================
   MODAL CADASTRO RÁPIDO – BOTÕES PREMIUM
   ========================================= */
#modalCadastroRapido .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* Botão CANCELAR – mais visível, com contorno neon suave */
#modalCadastroRapido .btn-cancelar,
#modalCadastroRapido button.cancelar {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.85);
  color: rgba(226,232,240,0.92);
  box-shadow: 0 0 10px rgba(15,23,42,0.9);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

#modalCadastroRapido .btn-cancelar:hover,
#modalCadastroRapido button.cancelar:hover {
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.92));
  border-color: rgba(148,163,184,1);
  color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(148,163,184,0.65);
}

/* Botão SALVAR – CTA principal, com gradiente e glow VENOM */
#modalCadastroRapido .btn-salvar,
#modalCadastroRapido button.salvar,
#modalCadastroRapido button[type="submit"],
#modalCadastroRapido #btnSalvar {
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at top, #22c55e, #16a34a);
  color: #02120a;
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 0 18px rgba(34,197,94,0.85);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease;
}

#modalCadastroRapido .btn-salvar:hover,
#modalCadastroRapido button.salvar:hover,
#modalCadastroRapido button[type="submit"]:hover,
#modalCadastroRapido #btnSalvar:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.7),
    0 0 22px rgba(34,197,94,0.95);
}

/* Toque sutil ao pressionar */
#modalCadastroRapido .btn-salvar:active,
#modalCadastroRapido button.salvar:active,
#modalCadastroRapido button[type="submit"]:active,
#modalCadastroRapido #btnSalvar:active,
#modalCadastroRapido .btn-cancelar:active,
#modalCadastroRapido button.cancelar:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(15,23,42,0.9);
}

/* =========================================
   MODAL CADASTRO RÁPIDO – VISUAL PREMIUM OFICIAL
   (Cancelar azul • Salvar verde)
   ========================================= */
#modalCadastroRapido {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15,23,42,0.88), rgba(2,6,23,0.96));
  backdrop-filter: blur(12px);
  z-index: 999;
}
#modalCadastroRapido.hidden {
  display: none;
}

/* Card interno */
#modalCadastroRapido > * {
  max-width: 640px;
  width: 92%;
  border-radius: 28px;
  padding: 24px 24px 22px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(2,6,23,1));
  border: 1px solid rgba(34, 197, 94, 0.9);
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 0 28px rgba(34, 197, 94, 0.55);
}

/* Título e descrição como na imagem boa */
#modalCadastroRapido h2,
#modalCadastroRapido .modal-title {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #bbf7d0;
}
#modalCadastroRapido p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Inputs arredondados (mantém padrão bonito) */
#modalCadastroRapido input[type="text"],
#modalCadastroRapido input[type="tel"],
#modalCadastroRapido input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(51,65,85,0.85);
  background: rgba(15,23,42,0.96);
  padding: 10px 16px;
  color: #e5e7eb;
  font-size: 0.9rem;
}
#modalCadastroRapido input::placeholder {
  color: rgba(148,163,184,0.9);
}

/* Área dos botões embaixo, centralizada */
#modalCadastroRapido .modal-footer,
#modalCadastroRapido .modal-actions,
#modalCadastroRapido .acoes-botoes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

/* Base para ambos os botões (Cancelar + Salvar) */
#modalCadastroRapido button.cancelar,
#modalCadastroRapido .btn-cancelar,
#modalCadastroRapido button.salvar,
#modalCadastroRapido .btn-salvar,
#modalCadastroRapido #btnSalvar {
  min-width: 120px;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    filter 0.15s ease,
    border-color 0.15s ease;
}

/* CANCELAR – azul / ciano, como na imagem */
#modalCadastroRapido button.cancelar,
#modalCadastroRapido .btn-cancelar {
  background: radial-gradient(circle at top, #0f172a, #0b1220);
  border: 1px solid rgba(56,189,248,0.7);
  color: #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 0 16px rgba(56,189,248,0.55);
}
#modalCadastroRapido button.cancelar:hover,
#modalCadastroRapido .btn-cancelar:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.9),
    0 0 20px rgba(56,189,248,0.9);
}

/* SALVAR – verde neon forte, igual ao print */
#modalCadastroRapido .btn-salvar,
#modalCadastroRapido button.salvar,
#modalCadastroRapido button[type="submit"],
#modalCadastroRapido #btnSalvar {
  background: radial-gradient(circle at top, #22c55e, #16a34a);
  color: #02120a;
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 0 20px rgba(34,197,94,0.95);
}
#modalCadastroRapido .btn-salvar:hover,
#modalCadastroRapido button.salvar:hover,
#modalCadastroRapido button[type="submit"]:hover,
#modalCadastroRapido #btnSalvar:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Clique */
#modalCadastroRapido .btn-salvar:active,
#modalCadastroRapido button.salvar:active,
#modalCadastroRapido button[type="submit"]:active,
#modalCadastroRapido #btnSalvar:active,
#modalCadastroRapido button.cancelar:active,
#modalCadastroRapido .btn-cancelar:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(15,23,42,0.9);
}

/* ===========================================
   MODAL PREMIUM – EDIÇÃO DE CLIENTE
   (mesma linguagem visual do Cadastro rápido)
   =========================================== */
.vf-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.vf-modal-overlay.show {
  display: flex;
}

.vf-modal-card {
  min-width: min(480px, 92vw);
  max-width: 520px;
  background: radial-gradient(circle at top left, #020617 0%, #020617 40%, #020617 100%);
  border-radius: 26px;
  border: 1px solid rgba(74, 222, 128, 0.8);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.25),
    0 0 40px rgba(34, 197, 94, 0.45);
  padding: 22px 22px 20px;
  color: #e5f9ff;
}

.vf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.vf-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bbf7d0;
}

.vf-modal-close {
  background: transparent;
  border: none;
  color: #e5f9ff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vf-modal-close:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.05);
}

.vf-modal-subtitle {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 16px;
}

.vf-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.vf-field span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.95);
}

.vf-field input {
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #e5f9ff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vf-field input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.vf-field input:focus {
  border-color: rgba(74, 222, 128, 0.9);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.vf-modal-resumo {
  font-size: 0.8rem;
  margin-top: 2px;
  margin-bottom: 4px;
  color: rgba(148, 163, 184, 0.95);
}

.vf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.vf-btn {
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vf-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(74, 222, 128, 0.9);
  color: #022c22;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.4),
    0 0 24px rgba(34, 197, 94, 0.6);
}

.vf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.6),
    0 0 32px rgba(34, 197, 94, 0.8);
}

.vf-btn-secondary {
  background: radial-gradient(circle at top left, #020617, #020617);
  border-color: rgba(56, 189, 248, 0.8);
  color: #e5f9ff;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.4),
    0 0 18px rgba(8, 47, 73, 0.9);
}

.vf-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.7),
    0 0 26px rgba(8, 47, 73, 1);
}

/* ajuste mobile */
@media (max-width: 640px) {
  .vf-modal-card {
    min-width: 92vw;
    padding: 20px 16px 18px;
  }

  .vf-modal-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .vf-btn {
    flex: 1;
    text-align: center;
  }
}

/* HOTFIX – posicionamento do modal de edição de cliente */
.vf-modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(6px);
  z-index: 99999;
}

.vf-modal-overlay.show {
  display: flex !important;
}
/* ==========================================
   COBRANÇAS – CARDS PREMIUM VENOM FLOW
   (cards + botão "Cobrar agora")
   ========================================== */
.cobranca-item {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.32), rgba(8, 16, 36, 0.96));
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.18),
    0 18px 35px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cobranca-item .cb-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cobranca-item .cb-nome {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5f9ff;
}

.cobranca-item .cb-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hoje / 7 dias / Atrasado / Outros  */
.cb-st-hoje {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.85);
}

.cb-st-7dias {
  background: rgba(251, 191, 36, 0.12);
  color: #facc15;
  border: 1px solid rgba(251, 191, 36, 0.85);
}

.cb-st-atrasado {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.9);
}

.cb-st-outros {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.cobranca-item .cb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.cobranca-item .cb-venc {
  font-weight: 500;
}

.cobranca-item .cb-tel {
  opacity: 0.8;
}

.cobranca-item .cb-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Botão COBRAR AGORA – estilo card premium */
.cobranca-item .cb-btn-cobrar {
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: radial-gradient(circle at top left, #f97316, #ea580c);
  color: #020617;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.55);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.cobranca-item .cb-btn-cobrar:hover {
  filter: brightness(1.03);
}

.cobranca-item .cb-btn-cobrar:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}
/* ==========================================
   COBRANÇAS – CARDS PREMIUM VENOM FLOW
   (cards + botão "Cobrar agora")
   ========================================== */
.cobranca-item {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.32), rgba(8, 16, 36, 0.96));
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.18),
    0 18px 35px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cobranca-item .cb-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cobranca-item .cb-nome {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5f9ff;
}

.cobranca-item .cb-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hoje / 7 dias / Atrasado / Outros  */
.cb-st-hoje {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.85);
}

.cb-st-7dias {
  background: rgba(251, 191, 36, 0.12);
  color: #facc15;
  border: 1px solid rgba(251, 191, 36, 0.85);
}

.cb-st-atrasado {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.9);
}

.cb-st-outros {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.cobranca-item .cb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.cobranca-item .cb-venc {
  font-weight: 500;
}

.cobranca-item .cb-tel {
  opacity: 0.8;
}

.cobranca-item .cb-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Botão COBRAR AGORA – estilo card premium */
.cobranca-item .cb-btn-cobrar {
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: radial-gradient(circle at top left, #f97316, #ea580c);
  color: #020617;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.55);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.cobranca-item .cb-btn-cobrar:hover {
  filter: brightness(1.03);
}

.cobranca-item .cb-btn-cobrar:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

/* ============================
   COBRANÇAS – Busca premium
   ============================ */

.cobrancas-header .cobrancas-search {
  margin-top: 1.4rem;
  margin-bottom: 0.9rem;
}

.cobrancas-header .cobrancas-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45); /* cinza suave */
  background: rgba(10, 20, 40, 0.95);
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  outline: none;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.1s ease;
}

.cobrancas-header .cobrancas-search input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.cobrancas-header .cobrancas-search input:focus {
  border-color: var(--primary);
  background: rgba(8, 16, 35, 1);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.5),
    0 0 22px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

/* Pequeno ajuste em telas muito estreitas */
@media (max-width: 640px) {
  .cobrancas-header .cobrancas-search {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
  }
}

/* ============================
   COBRANÇAS – Chips refinados
   ============================ */

.cb-chip {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(10, 20, 40, 0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.cb-chip:hover {
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-1px);
}

.cb-chip-active {
  border-color: var(--primary);
  background: radial-gradient(circle at top, var(--primary-soft), rgba(10, 20, 40, 1));
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.55),
    0 0 20px rgba(34, 197, 94, 0.35);
}

/* ===========================
   COBRANÇAS – Campo de busca
   =========================== */
#cobrancas .cobrancas-search {
  margin: 1.25rem 0 1rem;
}

#cobrancas .cobrancas-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  padding: 0.85rem 1.25rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

#cobrancas .cobrancas-search input::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

#cobrancas .cobrancas-search input:focus {
  border-color: #22c55e;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.5),
    0 0 22px rgba(34, 197, 94, 0.35);
}

/* ============================
   COBRANÇAS – barra de pesquisa
   ============================ */
#cobrancas .clientes-search {
  margin-top: 1.6rem;
}

#cobrancas .clientes-search input {
  width: 100%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95); /* fundo escuro, padrão painel */
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#cobrancas .clientes-search input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

#cobrancas .clientes-search input:focus {
  outline: none;
  border-color: #22c55e; /* verde neon VENOM */
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.65),
    0 0 18px rgba(34, 197, 94, 0.5);
  background: rgba(15, 23, 42, 0.98);
}

/* ================================
   BADGE NAV (Fila) - estilo WhatsApp
   ================================ */
.nav-item[data-nav="fila"] { position: relative; }
.nav-item[data-nav="fila"] .nav-badge {
  position: absolute;
  top: 6px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  background: var(--neon-orange);
  color: #111827;
  box-shadow: 0 0 10px rgba(249,115,22,0.75);
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-item[data-nav="fila"] .nav-badge.show { display: inline-flex; }

/* ================================
   Badge da Fila (sidebar) – Whats/Facebook style
   ================================ */
.nav-item i { position: relative; }

.nav-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;

  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;

  color:#111827;
  background: linear-gradient(135deg, var(--neon-orange), #ff3b3b);
  box-shadow:
    0 0 12px rgba(249,115,22,.55),
    0 0 0 1px rgba(255,255,255,.06);
}

.nav-badge.hidden{ display:none; }

/* =========================================================
   VENOM PATCH (SIDEBAR ICON SIZE + SVG SUPPORT)
   - aumenta ícones da sidebar sem quebrar layout
   - permite SVG (WhatsApp) com cor verde
   ========================================================= */
.sidebar-menu .nav-item i{
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* emojis */
  line-height: 1;
}

.sidebar-menu .nav-item i svg{
  width: 24px;
  height: 24px;
  display: block;
}

.sidebar-menu .nav-item i.ico-wa{
  color: #22c55e; /* verde WhatsApp */
}


/* =========================================================
   VENOM PATCH v2 (SIDEBAR ACTIVE RING FIX)
   - garante que o destaque verde do item ativo NÃO fique encoberto
   - padroniza ícone emoji/SVG
   ========================================================= */
.sidebar-menu .nav-item{ overflow: visible; }

.sidebar-menu .nav-item i{
  position: relative;
  z-index: 2;              /* fica acima de qualquer bg/efeito do botão */
  border-radius: 999px;
}

/* reforça o "círculo verde" no item ativo */
.sidebar-menu .nav-item.active i{
  background: rgba(34,197,94,.18);
  box-shadow:
    0 0 0 2px rgba(34,197,94,.55),
    0 0 18px rgba(34,197,94,.30);
}

/* feedback ao clicar (tap) */
.sidebar-menu .nav-item:active i{
  background: rgba(34,197,94,.22);
  box-shadow:
    0 0 0 2px rgba(34,197,94,.65),
    0 0 22px rgba(34,197,94,.38);
}

/* WhatsApp icon (SVG) herda cor do tema */
.sidebar-menu .nav-item i.ico-wa{ color: var(--primary); }
.sidebar-menu .nav-item i.ico-wa svg{ fill: currentColor; }

/* =========================================================
   VENOM PATCH 2 (ACTIVE RING FIX + ICON CONSISTENCY)
   - Corrige destaque (anel verde) do item ativo (não fica cortado)
   - Mantém ícones com tamanho consistente (emoji/SVG)
   ========================================================= */
.sidebar-menu{
  padding-left: 10px;  /* cria respiro para o anel não bater na borda */
  padding-right: 10px;
}

.nav-item{
  overflow: visible;   /* garante que efeitos não sejam cortados */
}

.sidebar-menu .nav-item i{
  position: relative;
  z-index: 2;          /* ícone fica acima do anel */
}

/* Recria/garante o "anel ativo" em volta do ícone */
.sidebar-menu .nav-item.active i::before{
  content: "";
  position: absolute;
  inset: -7px;         /* tamanho do anel */
  border-radius: 999px;
  border: 2px solid var(--primary);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 18px rgba(34,197,94,.35);
  z-index: -1;         /* anel atrás do ícone */
}

/* WhatsApp: força cor e consistência do ícone */
.nav-item[data-nav="planos"] i{
  color: var(--primary);
}

/* =========================================================
   VENOM PATCH 2 (ACTIVE RING FIX + ICON CONSISTENCY)
   - Corrige destaque (anel verde) do item ativo (não fica cortado)
   - Mantém ícones com tamanho consistente (emoji/SVG)
   ========================================================= */
.sidebar-menu{
  padding-left: 10px;  /* cria respiro para o anel não bater na borda */
  padding-right: 10px;
}

.nav-item{
  overflow: visible;   /* garante que efeitos não sejam cortados */
}

.sidebar-menu .nav-item i{
  position: relative;
  z-index: 2;          /* ícone fica acima do anel */
}

/* Recria/garante o "anel ativo" em volta do ícone */
.sidebar-menu .nav-item.active i::before{
  content: "";
  position: absolute;
  inset: -7px;         /* tamanho do anel */
  border-radius: 999px;
  border: 2px solid var(--primary);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 18px rgba(34,197,94,.35);
  z-index: -1;         /* anel atrás do ícone */
}

/* WhatsApp: força cor e consistência do ícone */
.nav-item[data-nav="planos"] i{
  color: var(--primary);
}

/* =========================================================
   VENOM FLOW • Refino Modal Cadastro Rápido (Premium)
   Data: 2025-12-23
   Objetivo: alinhar toggles/checkbox, header/close, grid responsivo
========================================================= */

#modalCadastroRapido{
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#modalCadastroRapido.hidden{ display: none; }

#modalCadastroRapido .modal-card-cadastro{
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 22px;
}

#modalCadastroRapido .modal-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#modalCadastroRapido .modal-close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
#modalCadastroRapido .modal-close:active{
  transform: scale(.98);
}

#modalCadastroRapido .modal-body{
  padding-top: 10px;
}

#modalCadastroRapido .modal-row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px){
  #modalCadastroRapido .modal-row-2{
    grid-template-columns: 1fr;
  }
}

#modalCadastroRapido .vf-toggle-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
  margin-top: 14px;
}

@media (max-width: 560px){
  #modalCadastroRapido .vf-toggle-grid{
    grid-template-columns: 1fr;
  }
}

/* Toggle “card” alinhado */
#modalCadastroRapido .vf-toggle{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

#modalCadastroRapido .vf-toggle span{
  display: inline-block;
  line-height: 1.2;
}

#modalCadastroRapido .vf-toggle input[type="checkbox"]{
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #22c55e; /* verde premium */
}

/* Footer mais “premium” */
#modalCadastroRapido .modal-footer{
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

#modalCadastroRapido .modal-footer .btn-cancelar,
#modalCadastroRapido .modal-footer .btn-salvar{
  width: 100%;
}


/* =========================================================
 * VF DASH STATUS STRIP (Topo do Dashboard) — 2026-01-14
 * ========================================================= */
.vf-strip{ margin-top:.65rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.vf-strip-card{ background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:12px; cursor:pointer; transition:transform .12s ease,border-color .12s ease; }
.vf-strip-card:hover{ transform:translateY(-1px); border-color:rgba(255,255,255,.16); }
.vf-strip-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.vf-strip-title{ font-weight:950; font-size:12px; letter-spacing:.2px; color:var(--text-soft); text-transform:uppercase; }
.vf-strip-pill{ display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.18); font-size:12px; font-weight:950; color:rgba(255,255,255,.92); white-space:nowrap; }
.vf-dot{ width:10px; height:10px; border-radius:50%; background:#F59E0B; box-shadow:0 0 16px rgba(245,158,11,.20); }
.vf-dot.on{ background:#22C55E; box-shadow:0 0 18px rgba(34,197,94,.22); }
.vf-dot.warn{ background:#F59E0B; box-shadow:0 0 18px rgba(245,158,11,.22); }
.vf-dot.off{ background:#EF4444; box-shadow:0 0 18px rgba(239,68,68,.22); }
.vf-strip-rows{ display:grid; gap:6px; }
.vf-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; color:rgba(255,255,255,.88); }
.vf-row span{ color:var(--text-soft); font-weight:800; }
.vf-row b{ font-weight:950; color:rgba(255,255,255,.92); }
@media (max-width:760px){ .vf-strip{ grid-template-columns:1fr; } }


/* VF_PLANO_CARD_MINI_v2 */

/* Card Plano: compacto e legível */
.metric-card.receita .plano-nome{
  margin: 6px 0 2px 0;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.05;
}
.metric-card.receita .plano-meta{
  font-size: 12px;
  line-height: 1.15;
  opacity: 0.92;
  margin-top: 4px;
}
.metric-card.receita .plano-meta > div{ margin: 2px 0; }

/* Cor por plano */
.metric-card.receita .plano-nome.plan-ultra{ color: #ffcc66; }
.metric-card.receita .plano-nome.plan-pro{   color: #66d1ff; }
.metric-card.receita .plano-nome.plan-trial{ color: #bdbdbd; }


/* VF_DASH_PLAN_CARD_v1 */
/* Card Plano (Dashboard) — minimalista e sem estourar */
#dashPlanName{
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 18px;
  line-height: 1.1;
}
#dashPlanMeta{
  display: block;
  margin-top: 6px;
  line-height: 1.15;
  opacity: .88;
  font-size: 12px;
}

/* cor sutil por plano (sem poluir) */
.plan-key-ultra{ filter: drop-shadow(0 0 10px rgba(255, 170, 0, .35)); }
.plan-key-pro{   filter: drop-shadow(0 0 10px rgba(0, 170, 255, .30)); }
.plan-key-free{  opacity: .90; }
.plan-key-trial{ filter: drop-shadow(0 0 10px rgba(180, 120, 255, .25)); }

/* ================================
   VENOM FLOW — CONFIG (LIGHT CARDS)
   (override seguro: só dentro de #config)
   ================================ */
#config .card,
#config .panel-card,
#config .box,
#config .tile,
#config .section,
#config .section-card,
#config .vf-card,
#config .vf-box,
#config .cfg-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,247,255,0.90));
  border: 1px solid rgba(120, 140, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}

#config h1, #config h2, #config h3,
#config .title, #config .section-title {
  color: rgba(255,255,255,0.92);
}

#config p, #config .muted, #config .desc, #config label,
#config .card *, #config .panel-card *, #config .box *, #config .tile * {
  color: rgba(20, 25, 35, 0.88);
}

#config .muted, #config .desc, #config small {
  color: rgba(20, 25, 35, 0.62);
}

#config input[type="text"],
#config input[type="email"],
#config input[type="tel"],
#config select,
#config textarea {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(120, 140, 255, 0.22);
  color: rgba(15, 18, 25, 0.92);
}

#config input[type="checkbox"] {
  accent-color: rgba(140, 90, 255, 1);
}

#config button {
  border: 1px solid rgba(120, 140, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

#config #cfg_save_status {
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   VENOM FLOW — CONFIG PALETTE (Lilás + Toque Amarelo)
   - NÃO altera layout global, só a aba #config
   ========================================================= */
#config{
  /* base lilás */
  --cfg-lilac-1: rgba(178, 120, 255, 0.95);
  --cfg-lilac-2: rgba(120, 70, 210, 0.92);
  --cfg-lilac-3: rgba(90, 40, 170, 0.88);

  /* glow lilás */
  --cfg-glow: rgba(178, 120, 255, 0.22);

  /* toque amarelo (premium) */
  --cfg-gold: rgba(255, 214, 98, 0.95);
  --cfg-gold-soft: rgba(255, 214, 98, 0.18);

  /* texto */
  --cfg-text: rgba(255,255,255,0.92);
  --cfg-sub: rgba(255,255,255,0.68);
}

/* Cards/blocos do Config */
#config .card-bloco{
  background:
    radial-gradient(900px 260px at 18% -10%, rgba(178,120,255,0.22), transparent 60%),
    radial-gradient(700px 260px at 90% 0%, rgba(255,214,98,0.10), transparent 55%),
    linear-gradient(180deg, rgba(20,18,30,0.78), rgba(12,10,18,0.76));
  border: 1px solid rgba(178,120,255,0.22);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,214,98,0.06) inset;
  backdrop-filter: blur(8px);
}

#config .card-bloco-title{
  color: var(--cfg-text);
  letter-spacing: .2px;
  text-shadow: 0 6px 18px rgba(178,120,255,0.18);
}

#config .card-bloco-sub,
#config .hint{
  color: var(--cfg-sub);
}

/* inputs/select */
#config input[type="text"],
#config input[type="email"],
#config input[type="tel"],
#config select{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(178,120,255,0.20);
  color: var(--cfg-text);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,214,98,0.06) inset;
}

#config input::placeholder{
  color: rgba(255,255,255,0.40);
}

/* chips (Backend/WhatsApp) */
#config .integ-chip{
  border: 1px solid rgba(178,120,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--cfg-text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

#config .integ-chip.on{
  border-color: rgba(255,214,98,0.30);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.26),
    0 0 0 1px rgba(255,214,98,0.10) inset,
    0 0 26px rgba(255,214,98,0.10);
}

#config .integ-chip.off{
  opacity: .85;
}

/* botões */
#config .btn-cta{
  background:
    linear-gradient(90deg, rgba(178,120,255,0.96), rgba(120,70,210,0.94));
  border: 1px solid rgba(255,214,98,0.20);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.30),
    0 0 0 1px rgba(255,214,98,0.06) inset;
}

#config .btn-soft{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(178,120,255,0.20);
  color: var(--cfg-text);
}

#config .btn-danger{
  background: linear-gradient(90deg, rgba(255,214,98,0.16), rgba(178,120,255,0.14));
  border: 1px solid rgba(255,214,98,0.26);
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
}

/* checkboxes */
#config input[type="checkbox"]{
  accent-color: rgba(255,214,98,0.95);
}

/* Linha pontilhada e textos */
#config hr,
#config [style*="border-top"]{
  border-color: rgba(178,120,255,0.18) !important;
}

/* ================================
   VENOM FLOW — CONFIG (LIGHT CARDS)
   (override seguro: só dentro de #config)
   ================================ */
#config .card,
#config .panel-card,
#config .box,
#config .tile,
#config .section,
#config .section-card,
#config .vf-card,
#config .vf-box,
#config .cfg-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,247,255,0.90));
  border: 1px solid rgba(120, 140, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}

#config h1, #config h2, #config h3,
#config .title, #config .section-title {
  color: rgba(255,255,255,0.92);
}

#config p, #config .muted, #config .desc, #config label,
#config .card *, #config .panel-card *, #config .box *, #config .tile * {
  color: rgba(20, 25, 35, 0.88);
}

#config .muted, #config .desc, #config small {
  color: rgba(20, 25, 35, 0.62);
}

#config input[type="text"],
#config input[type="email"],
#config input[type="tel"],
#config select,
#config textarea {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(120, 140, 255, 0.22);
  color: rgba(15, 18, 25, 0.92);
}

#config input[type="checkbox"] {
  accent-color: rgba(140, 90, 255, 1);
}

#config button {
  border: 1px solid rgba(120, 140, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

#config #cfg_save_status {
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   VENOM FLOW — CONFIG UI HOTFIX (Card menor + Laranja + Inputs escuros)
   (Overrides do patch anterior, só em #config)
   ========================================================= */
#config{
  --cfg-orange: rgba(255, 146, 64, 0.96);
  --cfg-orange-soft: rgba(255, 146, 64, 0.18);
  --cfg-ink: rgba(10, 10, 14, 0.92);
  --cfg-card: rgba(18, 16, 26, 0.78);
  --cfg-card-2: rgba(10, 9, 14, 0.78);
  --cfg-border: rgba(255, 146, 64, 0.20);
  --cfg-text: rgba(255,255,255,0.92);
  --cfg-sub: rgba(255,255,255,0.66);
}

/* Card menor e mais “apertado” */
#config .card-bloco{
  max-width: 520px;           /* limita pra não ficar gigante */
  margin: 16px auto !important;
  padding: 16px 16px !important;
  border-radius: 18px !important;

  background:
    radial-gradient(800px 240px at 18% -10%, rgba(255,146,64,0.14), transparent 62%),
    radial-gradient(700px 240px at 90% 0%, rgba(255,146,64,0.08), transparent 55%),
    linear-gradient(180deg, var(--cfg-card), var(--cfg-card-2));
  border: 1px solid var(--cfg-border) !important;
  box-shadow:
    0 18px 45px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,146,64,0.06) inset;
}

/* Títulos e descrições */
#config .card-bloco-title{ color: var(--cfg-text) !important; }
#config .card-bloco-sub,
#config .hint{ color: var(--cfg-sub) !important; }

/* Inputs/Select: FUNDO ESCURO + BORDA LARANJA + SOMBRA (pra enxergar onde escreve) */
#config input[type="text"],
#config input[type="email"],
#config input[type="tel"],
#config input[type="password"],
#config select{
  background: rgba(0,0,0,0.38) !important;
  border: 1px solid rgba(255,146,64,0.26) !important;
  color: var(--cfg-text) !important;
  border-radius: 999px !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.30),
    0 0 0 1px rgba(255,146,64,0.08) inset !important;
}

/* Placeholder mais visível */
#config input::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

/* Botão principal (laranja premium) */
#config .btn-cta{
  background: linear-gradient(90deg, rgba(255,146,64,0.98), rgba(255,92,31,0.96)) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.38),
    0 0 0 1px rgba(255,146,64,0.12) inset !important;
}

/* Chips de integrações */
#config .integ-chip{
  background: rgba(0,0,0,0.26) !important;
  border: 1px solid rgba(255,146,64,0.18) !important;
  color: var(--cfg-text) !important;
}

/* Checkboxes com destaque laranja */
#config input[type="checkbox"]{
  accent-color: rgba(255,146,64,0.95) !important;
}

/* =========================================================
   VENOM FLOW — CONFIG: tornar labels/descrições legíveis
   (somente em #config)
   ========================================================= */

/* Labels e textos pequenos acima dos inputs */
#config label,
#config .label,
#config .field-label,
#config .cfg-label,
#config small,
#config .hint,
#config .muted,
#config p{
  color: rgba(255,255,255,0.78) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55) !important;
}

/* Se o seu layout usa "título do campo" como h4/h5 */
#config h4, #config h5{
  color: rgba(255,255,255,0.88) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.60) !important;
}

/* Ajuda “usado em links…” etc: deixa mais claro ainda */
#config .hint,
#config small{
  color: rgba(255,255,255,0.70) !important;
}

/* Inputs continuam escuros, mas com borda mais nítida */
#config input[type="text"],
#config input[type="email"],
#config input[type="tel"],
#config input[type="password"],
#config select{
  border-color: rgba(255,146,64,0.34) !important;
  box-shadow:
    0 10px 26px rgba(0,0,0,0.30),
    0 0 0 1px rgba(255,146,64,0.12) inset !important;
}

/* VF HOTFIX — corta vazamento horizontal (texto "Recursos" escapando) */
html, body {
  overflow-x: hidden !important;
}

/* VF FIX (emergência) — painel lateral de Planos não pode vazar na tela Licenças (planos_admin) */
#planos_admin.view.active ~ #planoPanel,
#planos_admin.view.active #planoPanel { display:none !important; }

/* VF FIX — garantir que view inativa não renderiza (mata "Recursos" vazando no mobile) */
.view { display: none !important; }
.view.active { display: block !important; }

/* VF FIX extra — corta qualquer vazamento horizontal no mobile */
@media (max-width: 980px){
  html, body { overflow-x: hidden !important; }
}

/* VF HOTFIX — corta vazamento horizontal real (mobile normal) */
#app, .app, .main, main, .content, .container, .layout, .wrap, .page {
  overflow-x: hidden !important;
}

/* VF FIX — mobile: painel lateral de plano não pode sobrar pixels (right:-420px dá “sobra” em telas ~412px) */
@media (max-width: 980px){
  .plano-panel{
    right: -100vw !important; /* some 100% garantido */
  }
  .plano-panel.show{
    right: 0 !important;
  }
}

/* VF_METRICAS_TUNE_BEGIN
   Objetivo: clarear a tela de Métricas e dar "vida" (sem quebrar layout campeão).
   Escopo: apenas #metricas e classes relacionadas.
*/

#metricas{
  position: relative;
}

/* brilho/ambiente leve atrás da tela (sem mudar o fundo global) */
#metricas::before{
  content:"";
  position:absolute;
  inset:-30px;
  pointer-events:none;
  background:
    radial-gradient(700px 420px at 18% 8%, rgba(0,255,160,.10), transparent 62%),
    radial-gradient(760px 460px at 75% 22%, rgba(255,140,0,.09), transparent 65%),
    radial-gradient(900px 520px at 55% 85%, rgba(120,90,255,.08), transparent 70%);
  filter: blur(6px);
  opacity: .95;
  z-index: 0;
}

#metricas > *{
  position: relative;
  z-index: 1;
}

/* cards mais claros (menos “black glass”) */
#metricas .metricas-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 18px 55px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

/* borda viva com glow bem controlado */
#metricas .metricas-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 22px rgba(0,255,160,.10),
    0 0 24px rgba(255,140,0,.08);
  opacity: .85;
}

/* tipografia mais clara e premium */
#metricas .m-label{
  opacity: .82;
  letter-spacing: .20em;
  color: rgba(220,235,245,.92);
}

#metricas .m-value{
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

#metricas .m-sub{
  opacity: .78;
  color: rgba(205,220,235,.88);
}

/* badge “Total” com presença melhor */
#metricas .badge-soft{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,140,0,.25);
  box-shadow: 0 0 24px rgba(255,140,0,.10);
}

/* gráfico com vida: barras animam ao entrar */
#metricas .mt-chart,
#metricas #mtChart7,
#metricas #mt7Bars{
  position: relative;
}

#metricas .mt-chart .bar,
#metricas #mtChart7 .bar,
#metricas #mt7Bars .bar{
  transform-origin: bottom;
  animation: vfBarIn .55s ease-out both;
  filter: drop-shadow(0 6px 18px rgba(255,140,0,.18));
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  opacity: .92;
}

#metricas .mt-chart .bar:active,
#metricas #mtChart7 .bar:active,
#metricas #mt7Bars .bar:active{
  transform: translateY(1px) scaleY(.98);
  filter: drop-shadow(0 10px 26px rgba(255,140,0,.26));
  opacity: 1;
}

@keyframes vfBarIn{
  from { transform: scaleY(.10); opacity: .35; }
  to   { transform: scaleY(1);   opacity: .92; }
}

/* pílulas de status um pouco mais brilhantes */
#metricas .status-pill{
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* VF_METRICAS_TUNE_END */


#clientes{
  position: relative;
  overflow: hidden;
}

/* camada de brilho só no fundo */
#clientes::before{
  content:"";
  position:absolute;
  left:-35%;
  right:-35%;
  top:52%;
  bottom:-55%;
  pointer-events:none;
  z-index:-1; /* fica atrás do conteúdo do #clientes */
  background:
    radial-gradient(circle at 50% 88%, rgba(59,130,246,0.18), transparent 62%),
    radial-gradient(circle at 30% 98%, rgba(56,189,248,0.14), transparent 70%),
    radial-gradient(circle at 70% 98%, rgba(59,130,246,0.10), transparent 74%),
    linear-gradient(to top, rgba(59,130,246,0.10), transparent 62%);
  filter: blur(18px);
  opacity: 1;
}

/* ==========================================================
   VF PATCH — CLIENTES: ORB AZUL LOCKSCREEN v2 (SAFE)
   Objetivo: iluminação azul “orb” (igual foto), de baixo->cima,
   com vinheta escura ao redor, sem afetar cliques/editar.
   ========================================================== */

#clientes{
  position: relative;
  overflow: hidden;
  isolation: isolate; /* garante stacking previsível sem vazar */
}

/* ORB azul vindo de baixo (principal) */
#clientes::before{
  content:"";
  position:absolute;
  left:-45%;
  right:-45%;
  top:45%;
  bottom:-65%;
  pointer-events:none;
  z-index:-1; /* sempre atrás */
  background:
    radial-gradient(closest-side at 50% 92%, rgba(96,165,250,0.30), transparent 62%),
    radial-gradient(closest-side at 50% 98%, rgba(59,130,246,0.22), transparent 72%),
    radial-gradient(closest-side at 40% 88%, rgba(56,189,248,0.10), transparent 70%),
    linear-gradient(to top, rgba(59,130,246,0.10), transparent 55%);
  filter: blur(22px);
  opacity: 1;
}

/* vinheta escura (pra dar “profundidade” igual lockscreen) */
#clientes{
  background:
    radial-gradient(circle at 50% 85%, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.55) 100%);
}

/* =========================================================
   VF SAFE PATCH — CLIENTES: BLUE GLOW NO QUADRO (SEM QUEBRAR)
   - NÃO usa position:fixed
   - NÃO usa ::before/overlay com z-index
   - Só dá vida no #clientes e na .clientes-lista
   ========================================================= */
#clientes.view{
  background-image:
    radial-gradient(circle at 40% 12%, rgba(56,189,248,0.22), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(59,130,246,0.14), transparent 62%),
    radial-gradient(circle at 50% 115%, rgba(56,189,248,0.16), transparent 58%);
  background-repeat: no-repeat;
  background-size: cover;
}

#clientes.view .clientes-lista{
  border-radius: 22px;
  padding: 12px;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(56,189,248,0.14), transparent 62%),
    radial-gradient(circle at 70% 100%, rgba(59,130,246,0.10), transparent 65%);
  background-repeat: no-repeat;
  background-size: cover;
}

/* === MÉTRICAS: esconder dias da semana (mantém últimos 7 dias) === */
.mt-chart-labels {
  display: none !important;
}


/* === MÉTRICAS: performance/scroll fix (mobile) === */
#metricas.view{
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
}

/* reduz peso visual APENAS na aba métricas em telas menores (evita travar/cortar) */
@media (max-width: 900px){
  #metricas .metricas-card,
  #metricas .metricas-card.wide{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.45) !important;
  }

  #metricas .mt-chart,
  #metricas #mtChart7{
    transform: translateZ(0);
    contain: paint;
  }
}


/* === MÉTRICAS: anti-travada/anti-corte no scroll (mobile) === */
/* Causa comum: blur/backdrop-filter + cards grandes => repaint atrasado */
#metricas, #metricas *{
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#metricas{
  /* ajuda a evitar "puxões" e áreas em branco ao scroll rápido */
  contain: paint;
  overscroll-behavior: contain;
}

/* alivia GPU: remove blur pesado SÓ na aba Métricas */
#metricas .metricas-card,
#metricas .mt-chart{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* mantém aparência premium sem blur pesado (sombra suave) */
#metricas .metricas-card{
  box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
}

/* === DASHBOARD: remover texto "Clientes do dia" (mantém botão Cadastro rápido) === */
#dashboard .clientes-dia-msg,
#dashboard .clientes-dia-info,
#dashboard .clientes-do-dia p,
#dashboard .clientes-do-dia .m-sub,
#dashboard .clientes-do-dia .sub,
#dashboard .clientes-do-dia .info {
  display: none !important;
}


/* === VF_PATCH: BORDA VERDE NO CARD "Clientes do dia" (cadastro rápido) === */
.clientes-dia{
  border: 1px solid rgba(0, 255, 140, .55) !important;         /* verde acendente */
  box-shadow:
    0 0 0 1px rgba(0, 255, 140, .18) inset,
    0 0 18px rgba(0, 255, 140, .16),
    0 0 40px rgba(0, 255, 140, .08) !important;
}

/* === VF_PATCH: BORDA LARANJA NO CARD "Clientes do dia" === */
.clientes-dia{
  border: 1px solid rgba(255, 165, 0, .65) !important; /* laranja */
  box-shadow:
    0 0 0 1px rgba(255, 165, 0, .22) inset,
    0 0 20px rgba(255, 165, 0, .25),
    0 0 45px rgba(255, 140, 0, .18) !important;
}

/* =========================================================
   VENOMFLOW — SIDEBAR ICON FIX (VENOMBETA)
   - Ícones menores (exceto WhatsApp)
   - Centraliza dentro da bolinha no active/hover
   - Destaque por anel (sem empurrar ícone)
   ========================================================= */

.sidebar-menu .nav-item{
  /* garante alinhamento do conteúdo do botão sem “pulo” */
  display: flex;
  align-items: center;
}

/* Caixa fixa do ícone = bolinha sempre central */
.sidebar-menu .nav-item > i{
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  /* ajuste “tamanho da bolinha” (menor que o atual) */
  width: 38px;
  height: 38px;

  /* emoji não pode “subir/descer” */
  line-height: 1;
  font-size: 20px;

  /* evita deslocamento por padding/borda antigas */
  padding: 0 !important;
  margin-right: 12px;

  transform: none !important;
}

/* WhatsApp fica maior (como você pediu) */
.sidebar-menu .nav-item > i.ico-wa{
  width: 44px;
  height: 44px;
  font-size: 22px;
}

/* SVG do WhatsApp centralizado e proporcional */
.sidebar-menu .nav-item > i.ico-wa svg{
  width: 24px;
  height: 24px;
  display: block;
}

/* Badge da fila não pode quebrar o grid */
.sidebar-menu .nav-item > i .nav-badge{
  position: absolute;
  right: -4px;
  top: -4px;
}

/* Anel de destaque no ativo (não mexe no ícone) */
.sidebar-menu .nav-item.active > i::before{
  content: "";
  position: absolute;
  inset: -4px;              /* tamanho do anel */
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(0,255,140,.85),
    0 0 18px rgba(0,255,140,.35);
  pointer-events: none;
}

/* Feedback de hover elegante (sem pular) */
.sidebar-menu .nav-item:hover > i::before{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(0,255,140,.45),
    0 0 12px rgba(0,255,140,.20);
  pointer-events: none;
}


/* =========================================================
   VENOMFLOW — SIDEBAR COMPACT (mantém centralizado + cabe tudo)
   ========================================================= */

.sidebar-menu{
  /* reduz “respiro” do menu pra caber Fila/Config */
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 6px;               /* se seu CSS usa gap em flex/column */
}

/* botão do menu mais baixo (sem mexer no layout geral) */
.sidebar-menu .nav-item{
  padding: 8px 10px;      /* era maior -> empurrava tudo */
  min-height: 52px;       /* controla a altura de cada item */
  line-height: 1.1;
  gap: 12px;              /* espaço entre ícone e texto */
  font-size: 13px;        /* texto um pouco menor só na sidebar */
}

/* mantém a caixa do ícone (centralizada) mas com altura menor */
.sidebar-menu .nav-item > i{
  width: 36px;
  height: 36px;
  font-size: 19px;
  margin-right: 0;        /* agora usamos gap do botão */
}

/* WhatsApp continua maior */
.sidebar-menu .nav-item > i.ico-wa{
  width: 42px;
  height: 42px;
  font-size: 22px;
}



/* ===============================
   VENOMFLOW SIDEBAR REFINO PREMIUM
   - Mantém ícones maiores
   - Reduz altura vertical
   - Recupera Fila e Config na dobra
================================= */

.sidebar-menu .nav-item{
  padding: 6px 0 !important;      /* reduz altura vertical */
  gap: 8px !important;            /* espaçamento ícone/texto */
  font-size: 13px !important;     /* levemente mais elegante */
}

.sidebar-menu .nav-item i{
  width: 40px !important;
  height: 40px !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sidebar-menu .nav-item:not(.active){
  opacity: 0.85;                  /* hierarquia visual premium */
}

.sidebar-menu .nav-item.active{
  opacity: 1;
}


/* mantém WhatsApp levemente maior */
.sidebar-menu .nav-item[data-nav="whatsapp"] i{
  transform: scale(1.05);
}



/* ===============================
   VENOMFLOW SIDEBAR ULTRA REFINO
   =============================== */

.sidebar-menu {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.sidebar-menu .nav-item{
  padding: 5px 0 !important;     /* mais compacto ainda */
  gap: 6px !important;
  font-size: 12.8px !important;
}

.sidebar-menu .nav-item i{
  width: 38px !important;
  height: 38px !important;
  font-size: 18px !important;
}

.sidebar-menu .nav-item[data-nav="whatsapp"] i{
  width: 40px !important;
  height: 40px !important;
}


/* =========================
   SIDEBAR FIT MOBILE (VENOMBETA)
   Objetivo: subir "Fila" e "Config" sem mexer no WhatsApp
========================= */
@media (max-height: 860px) {
  .sidebar-menu { gap: 10px !important; }

  .sidebar-menu .nav-item{
    padding: 10px 10px !important;  /* antes estava mais “alto” */
    min-height: 64px !important;    /* baixa um pouco a altura do botão */
    font-size: 13px !important;     /* texto levemente menor */
    line-height: 1.05 !important;
  }

  /* mantém WhatsApp como está (não encolhe) */
  .sidebar-menu .nav-item i.ico-wa{
    font-size: inherit !important;
  }
}

/* =========================
   SIDEBAR FIT MOBILE v2 (VENOMBETA)
   - Mais compacto pra caber "Fila" e "Config"
   - Funciona mesmo quando a barra do Chrome muda a altura
   - NÃO mexe no WhatsApp (ico-wa)
========================= */
@media (max-width: 520px), (max-height: 980px) {
  .sidebar-menu{
    gap: 8px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .sidebar-menu .nav-item{
    padding: 8px 10px !important;
    min-height: 58px !important;
    font-size: 12.5px !important;
    line-height: 1.05 !important;
  }

  /* ícone “normal” mais contido */
  .sidebar-menu .nav-item i{
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
    line-height: 44px !important;
  }

  /* WhatsApp fica do jeitinho que está */
  .sidebar-menu .nav-item i.ico-wa{
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: inherit !important;
  }
}

/* =========================
   SIDEBAR ULTRA COMPACT (VENOMBETA v3)
   - Ícones menores
   - Menos altura por item
   - Sobe Fila e Config
   - WhatsApp preservado
========================= */
@media (max-width: 520px), (max-height: 980px) {

  .sidebar-menu{
    gap: 6px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .sidebar-menu .nav-item{
    padding: 6px 8px !important;
    min-height: 52px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  /* Ícones padrão menores */
  .sidebar-menu .nav-item i{
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
    line-height: 38px !important;
  }

  /* WhatsApp continua elegante */
  .sidebar-menu .nav-item i.ico-wa{
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: inherit !important;
  }

}

/* =========================
   SIDEBAR ULTRA COMPACT (VENOMBETA v4)
   - Sobe a Fila (mais itens visíveis)
   - Ícones e círculo menores
   - Menos glow/sombra (não rouba atenção)
========================= */
@media (max-width: 520px), (max-height: 980px) {

  .sidebar-menu{
    gap: 5px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .sidebar-menu .nav-item{
    padding: 5px 8px !important;
    min-height: 48px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  /* Ícone (bolinha) mais compacto */
  .sidebar-menu .nav-item i{
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    line-height: 34px !important;

    /* menos “sombra/bola” */
    box-shadow: 0 6px 16px rgba(0,0,0,.38) !important;
    filter: none !important;
  }

  /* WhatsApp preservado (mesmo tamanho, só reduz glow) */
  .sidebar-menu .nav-item i.ico-wa{
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.38) !important;
  }

  /* anel ativo mais fino (menos “roubo” visual) */
  .sidebar-menu .nav-item.active i::before{
    inset: -4px !important;
    border-width: 2px !important;
    filter: none !important;
    opacity: .95 !important;
  }

}


.owner-quick-actions{margin-top:14px;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(2,6,23,.35)}
.owner-quick-actions h3{margin:0 0 10px;font-size:14px;font-weight:800}
.owner-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}

.relationship-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin-top:10px}
.relationship-card{border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(2,6,23,.35);padding:12px}
.relationship-card h3{margin:0 0 6px;font-size:15px}
.relationship-card p{margin:0 0 10px;font-size:12px;opacity:.88;line-height:1.35}
.relationship-actions{display:flex;gap:6px;flex-wrap:wrap}
.relationship-tag{display:inline-block;font-size:11px;opacity:.75;margin-bottom:6px}
