: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;
}

.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;
}

#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-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);
}
