/* ═══════════════════════════════════════════════════════
   KARAMELOO — Melhorias v2026.05.15
   Itens: 1,2,4,5,7,8,9,10,11
   ═══════════════════════════════════════════════════════ */

/* ════════════════════════════════
   VARIÁVEIS GLOBAIS
   ════════════════════════════════ */
:root{
  --kml-purple: #7c3aed;
  --kml-purple-light: #9d5cf0;
  --kml-purple-dim: rgba(124,58,237,.18);
  --kml-gold: #ffe08a;
  --kml-bg: #0b1222;
  --kml-bg2: #0d1428;
  --kml-surface: rgba(255,255,255,.05);
  --kml-border: rgba(255,255,255,.10);
  --kml-text: rgba(255,255,255,.92);
  --kml-text-muted: rgba(255,255,255,.50);
  --kml-radius: 16px;
  --kml-radius-sm: 10px;
  --kml-radius-xs: 8px;
  --kml-shadow: 0 20px 60px rgba(0,0,0,.55);
  --kml-transition: all .2s cubic-bezier(.16,1,.3,1);
}

/* ════════════════════════════════
   ITEM 2 — BOTÕES PROFISSIONAIS
   ════════════════════════════════ */
.btn, button.btn{
  position:relative;
  overflow:hidden;
  transition: var(--kml-transition) !important;
  letter-spacing:.02em;
  font-weight:700;
}
.btn:not(.secondary):not(.ghost):not(.danger){
  background: linear-gradient(135deg, var(--kml-purple), #5b21b6) !important;
  color:#fff !important;
  border:1px solid rgba(124,58,237,.4) !important;
  box-shadow: 0 4px 20px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.15) !important;
}
.btn:not(.secondary):not(.ghost):not(.danger):hover{
  transform:translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(124,58,237,.50), inset 0 1px 0 rgba(255,255,255,.2) !important;
  filter:brightness(1.08) !important;
}
.btn:not(.secondary):not(.ghost):not(.danger):active{
  transform:translateY(0) !important;
  filter:brightness(.96) !important;
}
.btn.secondary{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.88) !important;
  transition: var(--kml-transition) !important;
}
.btn.secondary:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
  transform:translateY(-1px) !important;
}
.btn.secondary:active{
  transform:translateY(0) !important;
}

/* ════ Setas e elementos de navegação ════ */
.secBtn, .loadMoreBtn, .flp-more-btn, .flpFiltBtn, .edFrelaFilterBtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 18px;
  border-radius:var(--kml-radius-sm);
  border:1px solid var(--kml-border);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.8);
  font-weight:700;
  font-size:.85rem;
  cursor:pointer;
  transition: var(--kml-transition);
  letter-spacing:.01em;
}
.secBtn:hover, .loadMoreBtn:hover, .flp-more-btn:hover{
  background:rgba(124,58,237,.18);
  border-color:rgba(124,58,237,.4);
  color:#fff;
  transform:translateY(-1px);
}
.edFrelaFilterBtn.active, .flpFiltBtn.active{
  background:rgba(124,58,237,.25) !important;
  border-color:rgba(124,58,237,.5) !important;
  color:#c4b5fd !important;
}

/* ════ Corner Menu — botões mais profissionais ════ */
.cmBtn{
  border-radius:var(--kml-radius-sm) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(255,255,255,.04) !important;
  transition: var(--kml-transition) !important;
  padding:11px 14px !important;
}
.cmBtn:hover{
  background:rgba(124,58,237,.15) !important;
  border-color:rgba(124,58,237,.3) !important;
  transform:translateX(3px) !important;
}
.cmBtn.isActive, .cmBtn[class*="Active"]{
  background:rgba(124,58,237,.22) !important;
  border-color:rgba(124,58,237,.45) !important;
}
.cmIco{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:var(--kml-radius-xs) !important;
  transition: var(--kml-transition) !important;
}
.cmBtn:hover .cmIco{
  background:rgba(124,58,237,.25) !important;
  border-color:rgba(124,58,237,.4) !important;
}

/* Badge de notificação mais chamativo */
.cmNotifBadge{
  background:linear-gradient(135deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
  font-weight:800 !important;
  font-size:.7rem !important;
  min-width:18px !important;
  height:18px !important;
  border-radius:9px !important;
  padding:0 5px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow: 0 2px 8px rgba(239,68,68,.5) !important;
  animation:kmlBadgePulse 2s ease infinite !important;
}
@keyframes kmlBadgePulse{
  0%,100%{box-shadow:0 2px 8px rgba(239,68,68,.5)}
  50%{box-shadow:0 2px 16px rgba(239,68,68,.8)}
}
.pulse-in{animation:pulseIn .4s cubic-bezier(.16,1,.3,1)!important}
@keyframes pulseIn{from{transform:scale(.7);opacity:.5}to{transform:scale(1);opacity:1}}

/* ════ EdPkgTab — tabs do editor profissionais ════ */
.edPkgTab{
  flex:1;
  border-radius:var(--kml-radius-sm) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  padding:10px 14px !important;
  font-size:.82rem !important;
  font-weight:700 !important;
  transition: var(--kml-transition) !important;
  background:rgba(255,255,255,.04) !important;
  color:rgba(255,255,255,.65) !important;
}
.edPkgTab.active, .edPkgTab[class*="active"]{
  background:rgba(124,58,237,.22) !important;
  border-color:rgba(124,58,237,.45) !important;
  color:#c4b5fd !important;
  box-shadow: 0 4px 16px rgba(124,58,237,.2) !important;
}
.edPkgTab:hover:not(.active){
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.16) !important;
  color:rgba(255,255,255,.88) !important;
}
.edPkgTabBadge{
  background:linear-gradient(135deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
  border-radius:10px !important;
  padding:1px 6px !important;
  font-size:.7rem !important;
  font-weight:800 !important;
}

/* ════════════════════════════════
   ITEM 4 — PERFORMANCE / FLUIDEZ
   ════════════════════════════════ */
.screen{
  will-change:auto !important;
  transform:translateZ(0);
}
.screen.show{
  animation:kmlScreenFade .25s cubic-bezier(.16,1,.3,1) both !important;
}
@keyframes kmlScreenFade{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}

/* Transições de card menos pesadas */
.editor-card, .card{
  transition:transform .18s ease, box-shadow .18s ease !important;
  will-change:transform;
}
.editor-card:hover, .card:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 16px 40px rgba(0,0,0,.5) !important;
}

/* Remove backdrop-filter em elementos não críticos mobile */
@media(max-width:768px){
  .cornerMenu, .cmBtn, .chatModal{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}

/* ════════════════════════════════
   ITEM 5 — REDESIGN CHAT / CONTATOS
   ════════════════════════════════ */

/* ── Overlay ── */
#chatOverlay{
  background:rgba(6,8,18,.75) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
}

/* ── Modal principal ── */
#chatModal{
  width:min(900px,97vw) !important;
  max-width:900px !important;
  height:min(680px,92vh) !important;
  border-radius:22px !important;
  border:1px solid rgba(124,58,237,.25) !important;
  box-shadow:0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(124,58,237,.12) !important;
  background:#0e1629 !important;
  overflow:hidden !important;
  display:grid !important;
  grid-template-rows:auto 1fr !important;
  animation:kmlChatIn .28s cubic-bezier(.16,1,.3,1) !important;
}
@keyframes kmlChatIn{
  from{opacity:0;transform:scale(.97) translateY(10px)}
  to{opacity:1;transform:none}
}

/* ── Lista de contatos ── */
#chatContacts{
  width:280px !important;
  min-width:280px !important;
  background:#0b1120 !important;
  border-right:1px solid rgba(255,255,255,.07) !important;
  overflow-y:auto !important;
  padding:8px 0 !important;
  flex-shrink:0 !important;
}
#chatContacts::-webkit-scrollbar{width:4px}
#chatContacts::-webkit-scrollbar-track{background:transparent}
#chatContacts::-webkit-scrollbar-thumb{background:rgba(124,58,237,.3);border-radius:2px}

/* ── Cada contato ── */
.contactItem{
  display:grid !important;
  grid-template-columns:44px 1fr !important;
  gap:10px !important;
  align-items:center !important;
  padding:11px 16px !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  color:inherit !important;
  text-align:left !important;
  width:100% !important;
  cursor:pointer !important;
  transition:background .15s ease !important;
  border-bottom:1px solid rgba(255,255,255,.04) !important;
  position:relative !important;
}
.contactItem:hover{
  background:rgba(124,58,237,.12) !important;
}
.contactItem.active, .contactItem[class*="active"]{
  background:rgba(124,58,237,.2) !important;
  border-right:2px solid var(--kml-purple) !important;
}

.contactAvatar{
  width:44px !important;
  height:44px !important;
  border-radius:50% !important;
  background:rgba(124,58,237,.2) !important;
  border:2px solid rgba(124,58,237,.25) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:1.1rem !important;
  font-weight:800 !important;
  color:#c4b5fd !important;
  flex-shrink:0 !important;
  overflow:hidden !important;
  position:relative !important;
}
.contactAvatar img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.contactMeta{ overflow:hidden; flex:1; min-width:0; }
.contactTop{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:6px !important;
  margin-bottom:3px !important;
}
.contactName{
  font-weight:700 !important;
  font-size:.88rem !important;
  color:rgba(255,255,255,.92) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.contactTime{
  font-size:.72rem !important;
  color:rgba(255,255,255,.35) !important;
  flex-shrink:0 !important;
}
.contactLast{
  font-size:.78rem !important;
  color:rgba(255,255,255,.45) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.contactLast.isTyping{
  color:var(--kml-purple-light) !important;
  font-style:italic !important;
}
.contactUnreadBadge{
  position:absolute !important;
  top:10px !important;
  right:14px !important;
  background:linear-gradient(135deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
  border-radius:10px !important;
  padding:1px 6px !important;
  font-size:.68rem !important;
  font-weight:800 !important;
  box-shadow:0 2px 8px rgba(239,68,68,.4) !important;
}

/* Typing indicator */
.contactTypingBadge{ display:none !important; }
.contactTypingBadge.show{ display:inline-flex !important; gap:3px !important; align-items:center !important; }
.contactTypingBadge i{
  width:5px !important;
  height:5px !important;
  border-radius:50% !important;
  background:var(--kml-purple-light) !important;
  animation:kmlTyping 1.4s ease infinite !important;
}
.contactTypingBadge i:nth-child(2){animation-delay:.2s !important}
.contactTypingBadge i:nth-child(3){animation-delay:.4s !important}
@keyframes kmlTyping{
  0%,60%,100%{transform:translateY(0)}
  30%{transform:translateY(-5px)}
}

/* ── Status online dot ── */
.contactAvatar::after{
  content:'';
  position:absolute !important;
  bottom:1px !important;
  right:1px !important;
  width:11px !important;
  height:11px !important;
  border-radius:50% !important;
  background:#9ca3af !important;
  border:2px solid #0b1120 !important;
  display:none !important;
}
.contactAvatar.online::after{ background:#22c55e !important; display:block !important; }

/* ── Header do chat ── */
#chatHeader{
  background:#0d1525 !important;
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  padding:14px 18px !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-height:62px !important;
  flex-shrink:0 !important;
}
#chatAvatarBox, .chatHeaderAvatar{
  width:40px !important;
  height:40px !important;
  border-radius:50% !important;
  background:rgba(124,58,237,.2) !important;
  border:2px solid rgba(124,58,237,.3) !important;
  flex-shrink:0 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#chatTitle{
  flex:1 !important;
  font-weight:800 !important;
  font-size:.97rem !important;
  color:#fff !important;
}

/* ── Área de mensagens ── */
#chatMsgs{
  flex:1 !important;
  overflow-y:auto !important;
  padding:18px 20px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
  background:linear-gradient(180deg,#0e1629,#0d1422) !important;
}
#chatMsgs::-webkit-scrollbar{width:5px}
#chatMsgs::-webkit-scrollbar-track{background:transparent}
#chatMsgs::-webkit-scrollbar-thumb{background:rgba(124,58,237,.25);border-radius:3px}

/* ── Bolhas de mensagem ── */
.aiMsg, .chatBubble{
  max-width:72% !important;
  padding:10px 14px !important;
  border-radius:18px !important;
  font-size:.88rem !important;
  line-height:1.5 !important;
  position:relative !important;
  animation:kmlMsgIn .2s cubic-bezier(.16,1,.3,1) !important;
}
@keyframes kmlMsgIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}

.aiMsg:not(.me), .chatBubble:not(.me){
  background:rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.92) !important;
  border-radius:18px 18px 18px 4px !important;
  align-self:flex-start !important;
  border:1px solid rgba(255,255,255,.10) !important;
}
.aiMsg.me, .chatBubble.me{
  background:linear-gradient(135deg,rgba(124,58,237,.55),rgba(91,33,182,.65)) !important;
  color:#fff !important;
  border-radius:18px 18px 4px 18px !important;
  align-self:flex-end !important;
  border:1px solid rgba(124,58,237,.4) !important;
  box-shadow:0 4px 16px rgba(124,58,237,.25) !important;
}

.waTime, .chatBubbleTime, .msgTime{
  font-size:.7rem !important;
  color:rgba(255,255,255,.35) !important;
  display:block !important;
  margin-top:4px !important;
  text-align:right !important;
}
.aiMsg:not(.me) .waTime, .aiMsg:not(.me) .chatBubbleTime{
  text-align:left !important;
}

/* ── Input do chat ── */
#chatFooter, .chatFooter{
  padding:14px 18px !important;
  background:#0d1525 !important;
  border-top:1px solid rgba(255,255,255,.07) !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-shrink:0 !important;
}
#chatInput, .chatInput{
  flex:1 !important;
  padding:11px 16px !important;
  border-radius:var(--kml-radius) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  font-size:.9rem !important;
  font-family:inherit !important;
  transition: var(--kml-transition) !important;
  resize:none !important;
  outline:none !important;
  line-height:1.4 !important;
}
#chatInput:focus, .chatInput:focus{
  border-color:rgba(124,58,237,.5) !important;
  background:rgba(124,58,237,.07) !important;
  box-shadow:0 0 0 2px rgba(124,58,237,.15) !important;
}
#chatInput::placeholder{ color:rgba(255,255,255,.3) !important; }

/* ── Botão enviar ── */
#chatSendBtn, .chatSendBtn{
  width:44px !important;
  height:44px !important;
  border-radius:50% !important;
  border:none !important;
  background:linear-gradient(135deg,var(--kml-purple),#5b21b6) !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  transition: var(--kml-transition) !important;
  box-shadow:0 4px 16px rgba(124,58,237,.4) !important;
  flex-shrink:0 !important;
}
#chatSendBtn:hover, .chatSendBtn:hover{
  transform:scale(1.08) !important;
  box-shadow:0 6px 22px rgba(124,58,237,.55) !important;
}

/* ── Busca de contatos ── */
#chatContactsSearch, .chatContactsSearch{
  width:calc(100% - 24px) !important;
  margin:10px 12px 6px !important;
  padding:9px 14px !important;
  border-radius:var(--kml-radius-sm) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  font-size:.85rem !important;
  outline:none !important;
  transition: var(--kml-transition) !important;
}
#chatContactsSearch:focus{
  border-color:rgba(124,58,237,.4) !important;
  background:rgba(124,58,237,.06) !important;
}

/* ── Empty state ── */
.contactsEmpty{
  padding:40px 20px !important;
  text-align:center !important;
  color:rgba(255,255,255,.35) !important;
  font-size:.88rem !important;
  line-height:1.6 !important;
}

/* ── Bolha bloqueada (link inválido) ── */
.msgLinkBlocked{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:6px 12px !important;
  border-radius:8px !important;
  background:rgba(239,68,68,.12) !important;
  border:1px solid rgba(239,68,68,.3) !important;
  color:#fca5a5 !important;
  font-size:.8rem !important;
  margin-top:4px !important;
}

/* ── Mensagens com mídia ── */
.chatMediaMsg img{
  max-width:240px !important;
  border-radius:12px !important;
  margin-top:6px !important;
  display:block !important;
}
.chatMediaMsg audio{
  width:200px !important;
  margin-top:6px !important;
}

/* ── Botões de mídia no footer ── */
.chatMediaBtn{
  width:36px !important;
  height:36px !important;
  border-radius:var(--kml-radius-xs) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.05) !important;
  color:rgba(255,255,255,.65) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  transition: var(--kml-transition) !important;
  flex-shrink:0 !important;
}
.chatMediaBtn:hover{
  background:rgba(124,58,237,.18) !important;
  border-color:rgba(124,58,237,.4) !important;
  color:#c4b5fd !important;
}

/* ── Chat fullpage (screenChat) ── */
#screenChat{
  background:linear-gradient(180deg,#0b1220,#0a1018) !important;
}
#screenChat .chatPageWrap{
  display:grid !important;
  grid-template-columns:280px 1fr !important;
  height:100% !important;
  overflow:hidden !important;
}
#screenChat .chatPageLeft{
  border-right:1px solid rgba(255,255,255,.07) !important;
  display:flex !important;
  flex-direction:column !important;
  background:#0b1120 !important;
  overflow:hidden !important;
}
#screenChat .chatPageRight{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
.chatPageHeader{
  padding:14px 18px !important;
  background:#0d1525 !important;
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex-shrink:0 !important;
}
#chatPageMessages{
  flex:1 !important;
  overflow-y:auto !important;
  padding:18px 20px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
}

/* Mobile chat */
@media(max-width:680px){
  #screenChat .chatPageWrap{
    grid-template-columns:1fr !important;
  }
  #screenChat .chatPageLeft{
    display:none !important;
  }
  #screenChat .chatPageLeft.showList{
    display:flex !important;
  }
  #chatModal{
    width:100vw !important;
    height:100vh !important;
    border-radius:0 !important;
    max-height:100vh !important;
    border:none !important;
  }
  #chatContacts{
    width:100% !important;
    min-width:0 !important;
  }
}

/* ════════════════════════════════
   ITEM 7 — MENU LATERAL EDITOR
   ════════════════════════════════ */

/* Garantir grid lado-a-lado no desktop */
@media(min-width:820px){
  #screenEditor .editorDashboardGridV2{
    display:grid !important;
    grid-template-columns:minmax(280px,1fr) minmax(320px,1fr) !important;
    gap:18px !important;
    align-items:start !important;
  }
}

/* Tabs mais verticais no mobile */
@media(max-width:820px){
  #screenEditor .editorDashboardGridV2{
    grid-template-columns:1fr !important;
  }
}

/* EdPkgTabs scrollable no mobile */
@media(max-width:600px){
  .edPkgTabs{
    overflow-x:auto !important;
    padding-bottom:4px !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
  }
  .edPkgTabs::-webkit-scrollbar{ display:none !important; }
  .edPkgTab{
    flex-shrink:0 !important;
    white-space:nowrap !important;
  }
}

/* Corrige sticky do packages card */
#screenEditor #editorPackagesCard{
  position:sticky !important;
  top:14px !important;
  max-height:calc(100vh - 100px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  border-radius:var(--kml-radius) !important;
}
#screenEditor #editorPackagesCard::-webkit-scrollbar{width:4px}
#screenEditor #editorPackagesCard::-webkit-scrollbar-track{background:transparent}
#screenEditor #editorPackagesCard::-webkit-scrollbar-thumb{background:rgba(124,58,237,.2);border-radius:2px}

/* ════════════════════════════════
   ITEM 8 — NOTIFICAÇÕES IN-APP
   ════════════════════════════════ */

/* Painel de notificações */
#kmlNotifPanel{
  position:fixed !important;
  top:60px !important;
  right:16px !important;
  width:360px !important;
  max-width:calc(100vw - 32px) !important;
  background:#0f1929 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:var(--kml-radius) !important;
  box-shadow:0 24px 64px rgba(0,0,0,.7) !important;
  z-index:9999 !important;
  overflow:hidden !important;
  animation:kmlNotifIn .22s cubic-bezier(.16,1,.3,1) !important;
  display:none !important;
  flex-direction:column !important;
}
#kmlNotifPanel.open{
  display:flex !important;
}
@keyframes kmlNotifIn{
  from{opacity:0;transform:translateY(-8px) scale(.98)}
  to{opacity:1;transform:none}
}
#kmlNotifPanel .kmlNPHeader{
  padding:16px 18px 12px !important;
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
#kmlNotifPanel .kmlNPTitle{
  font-weight:800 !important;
  font-size:.95rem !important;
  color:#fff !important;
}
#kmlNotifPanel .kmlNPActions{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
}
#kmlNotifPanel .kmlNPMarkAll{
  font-size:.75rem !important;
  color:rgba(196,181,253,.8) !important;
  cursor:pointer !important;
  border:none !important;
  background:none !important;
  padding:4px 8px !important;
  border-radius:6px !important;
  transition: var(--kml-transition) !important;
}
#kmlNotifPanel .kmlNPMarkAll:hover{
  background:rgba(124,58,237,.15) !important;
  color:#c4b5fd !important;
}
#kmlNotifPanel .kmlNPClose{
  width:28px !important;
  height:28px !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.05) !important;
  color:rgba(255,255,255,.65) !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:14px !important;
  transition: var(--kml-transition) !important;
}
#kmlNotifPanel .kmlNPClose:hover{
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
}
#kmlNotifPanel .kmlNPBody{
  max-height:420px !important;
  overflow-y:auto !important;
}
#kmlNotifPanel .kmlNPBody::-webkit-scrollbar{width:4px}
#kmlNotifPanel .kmlNPBody::-webkit-scrollbar-track{background:transparent}
#kmlNotifPanel .kmlNPBody::-webkit-scrollbar-thumb{background:rgba(124,58,237,.3);border-radius:2px}

.kmlNotifItem{
  padding:12px 18px !important;
  border-bottom:1px solid rgba(255,255,255,.05) !important;
  display:flex !important;
  gap:12px !important;
  align-items:flex-start !important;
  cursor:pointer !important;
  transition:background .15s ease !important;
  text-align:left !important;
  width:100% !important;
  border-left:3px solid transparent !important;
}
.kmlNotifItem:hover{
  background:rgba(255,255,255,.04) !important;
}
.kmlNotifItem.unread{
  background:rgba(124,58,237,.07) !important;
  border-left-color:var(--kml-purple) !important;
}
.kmlNotifItem.unread:hover{
  background:rgba(124,58,237,.12) !important;
}
.kmlNotifIco{
  width:36px !important;
  height:36px !important;
  border-radius:10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:16px !important;
  flex-shrink:0 !important;
}
.kmlNotifIco.msg{ background:rgba(34,197,94,.15); }
.kmlNotifIco.proposal{ background:rgba(59,130,246,.15); }
.kmlNotifIco.news{ background:rgba(245,158,11,.15); }
.kmlNotifIco.freela{ background:rgba(124,58,237,.15); }
.kmlNotifIco.market{ background:rgba(236,72,153,.15); }
.kmlNotifIco.alert{ background:rgba(239,68,68,.15); }

.kmlNotifMeta{ flex:1; min-width:0; }
.kmlNotifTitle{
  font-size:.86rem !important;
  font-weight:700 !important;
  color:rgba(255,255,255,.9) !important;
  margin-bottom:3px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.kmlNotifBody{
  font-size:.78rem !important;
  color:rgba(255,255,255,.5) !important;
  line-height:1.4 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
.kmlNotifTime{
  font-size:.7rem !important;
  color:rgba(255,255,255,.3) !important;
  margin-top:4px !important;
}
.kmlNotifUnreadDot{
  width:7px !important;
  height:7px !important;
  border-radius:50% !important;
  background:var(--kml-purple) !important;
  flex-shrink:0 !important;
  margin-top:5px !important;
}
.kmlNotifEmpty{
  padding:40px 20px !important;
  text-align:center !important;
  color:rgba(255,255,255,.3) !important;
  font-size:.88rem !important;
}

/* Bell button no top nav */
#kmlNotifBell{
  position:relative !important;
  width:38px !important;
  height:38px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.05) !important;
  color:rgba(255,255,255,.75) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  transition: var(--kml-transition) !important;
  flex-shrink:0 !important;
}
#kmlNotifBell:hover{
  background:rgba(124,58,237,.18) !important;
  border-color:rgba(124,58,237,.4) !important;
  color:#c4b5fd !important;
}
#kmlNotifBell .kmlNotifBellBadge{
  position:absolute !important;
  top:-4px !important;
  right:-4px !important;
  min-width:17px !important;
  height:17px !important;
  border-radius:9px !important;
  background:linear-gradient(135deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
  font-size:.65rem !important;
  font-weight:800 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 4px !important;
  border:2px solid var(--kml-bg) !important;
}
#kmlNotifBell .kmlNotifBellBadge.show{
  display:flex !important;
}

/* ════════════════════════════════
   ITEM 1 — WORKSPACE PROFILE CARD
   ════════════════════════════════ */
#kmlWsProfileDrawer{
  width:320px !important;
  min-width:320px !important;
}
#kmlWsProfileContent{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
}
.kmlWsProfileCover{
  width:100% !important;
  height:100px !important;
  background:linear-gradient(135deg,rgba(124,58,237,.3),rgba(91,33,182,.2)) !important;
  background-size:cover !important;
  background-position:center !important;
  flex-shrink:0 !important;
}
.kmlWsProfileBody{
  padding:18px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}
.kmlWsProfileAvatar{
  width:72px !important;
  height:72px !important;
  border-radius:50% !important;
  border:3px solid rgba(124,58,237,.4) !important;
  object-fit:cover !important;
  margin-top:-36px !important;
  flex-shrink:0 !important;
}
.kmlWsProfilePkg{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}
.kmlWsProfilePkgItem{
  display:grid !important;
  grid-template-columns:60px 1fr !important;
  gap:10px !important;
  padding:8px !important;
  border-radius:var(--kml-radius-sm) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  background:rgba(255,255,255,.03) !important;
  align-items:center !important;
}
.kmlWsProfilePkgCover{
  width:60px !important;
  height:44px !important;
  border-radius:8px !important;
  background:rgba(124,58,237,.2) !important;
  background-size:cover !important;
  background-position:center !important;
}

/* ════════════════════════════════
   ITEM 9 — FLUXO / TRABALHOS
   ════════════════════════════════ */

/* Jobs posting melhorado */
.jobCard, .kmlJobCard{
  border-radius:var(--kml-radius) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  background:rgba(255,255,255,.03) !important;
  padding:18px !important;
  transition: var(--kml-transition) !important;
}
.jobCard:hover, .kmlJobCard:hover{
  border-color:rgba(124,58,237,.3) !important;
  background:rgba(124,58,237,.06) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.4) !important;
}

/* Proposta aceita / status */
.proposalStatus{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:4px 12px !important;
  border-radius:999px !important;
  font-size:.78rem !important;
  font-weight:700 !important;
}
.proposalStatus.accepted{
  background:rgba(34,197,94,.12) !important;
  border:1px solid rgba(34,197,94,.3) !important;
  color:#4ade80 !important;
}
.proposalStatus.pending{
  background:rgba(245,158,11,.1) !important;
  border:1px solid rgba(245,158,11,.3) !important;
  color:#fbbf24 !important;
}
.proposalStatus.rejected{
  background:rgba(239,68,68,.1) !important;
  border:1px solid rgba(239,68,68,.3) !important;
  color:#f87171 !important;
}

/* ════════════════════════════════
   RESPONSIVIDADE GERAL
   ════════════════════════════════ */
@media(max-width:768px){
  #kmlNotifPanel{
    width:calc(100vw - 24px) !important;
    right:12px !important;
    left:12px !important;
  }
  .ppv2Body{
    grid-template-columns:1fr !important;
  }
  .ppv2Left{
    border-right:none !important;
    border-bottom:1px solid rgba(255,255,255,.07) !important;
  }
  .ppv2Right{
    display:none !important;
  }
  #kmlWsProfileDrawer{
    width:100% !important;
    min-width:0 !important;
  }
}

/* ════════════════════════════════
   HOVER / ESTADO ATIVO GLOBAL
   ════════════════════════════════ */
*:focus-visible{
  outline:2px solid rgba(124,58,237,.7) !important;
  outline-offset:2px !important;
}

/* Inputs globais */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
textarea,
select{
  transition:border-color .18s ease, box-shadow .18s ease !important;
}
input:focus:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
textarea:focus{
  border-color:rgba(124,58,237,.5) !important;
  box-shadow:0 0 0 3px rgba(124,58,237,.12) !important;
}

/* Scrollbars globais */
::-webkit-scrollbar{ width:6px; height:6px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:rgba(124,58,237,.25); border-radius:3px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(124,58,237,.45); }

/* ════════════════════════════════
   ESPAÇAMENTO E POLISH FINAL
   ════════════════════════════════ */
.marketSection{
  padding:24px 20px !important;
}
.secHead{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  margin-bottom:16px !important;
}
.secTitle{
  font-size:1.1rem !important;
  font-weight:800 !important;
  color:rgba(255,255,255,.9) !important;
  letter-spacing:.01em !important;
}

/* ════════════════════════════════
   NOTIFICAÇÕES INLINE DO SITE
   ════════════════════════════════ */
.kmlAlertBanner{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:12px 18px !important;
  border-radius:var(--kml-radius-sm) !important;
  font-size:.85rem !important;
  font-weight:600 !important;
  margin-bottom:12px !important;
  animation:kmlFadeIn .3s ease !important;
}
.kmlAlertBanner.info{
  background:rgba(59,130,246,.1) !important;
  border:1px solid rgba(59,130,246,.3) !important;
  color:#93c5fd !important;
}
.kmlAlertBanner.success{
  background:rgba(34,197,94,.1) !important;
  border:1px solid rgba(34,197,94,.3) !important;
  color:#86efac !important;
}
.kmlAlertBanner.warn{
  background:rgba(245,158,11,.1) !important;
  border:1px solid rgba(245,158,11,.3) !important;
  color:#fcd34d !important;
}
.kmlAlertBanner.error{
  background:rgba(239,68,68,.1) !important;
  border:1px solid rgba(239,68,68,.3) !important;
  color:#fca5a5 !important;
}
@keyframes kmlFadeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* ════════════════════════════════
   CORREÇÕES DE CLASSES — NOTIF BELL
   ════════════════════════════════ */

/* Sino dentro do nav — inline, ao lado do avatar */
#kmlNotifBell{
  position:relative !important;
  top:auto !important;
  right:auto !important;
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(255,255,255,.06) !important;
  color:rgba(255,255,255,.78) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  z-index:auto !important;
  transition:all .2s cubic-bezier(.16,1,.3,1) !important;
  flex-shrink:0 !important;
}
#kmlNotifBell:hover{
  background:rgba(124,58,237,.3) !important;
  border-color:rgba(124,58,237,.5) !important;
  color:#c4b5fd !important;
  transform:scale(1.06) !important;
}
#kmlNotifBell.hasNotif{
  border-color:rgba(239,68,68,.5) !important;
  animation:kmlBellShake 1s ease .5s !important;
}
@keyframes kmlBellShake{
  0%,100%{transform:rotate(0)}
  20%{transform:rotate(-12deg)}
  40%{transform:rotate(10deg)}
  60%{transform:rotate(-7deg)}
  80%{transform:rotate(5deg)}
}

/* Badge counter no bell */
#kmlNotifCount{
  position:absolute !important;
  top:-5px !important;
  right:-5px !important;
  min-width:17px !important;
  height:17px !important;
  border-radius:9px !important;
  background:linear-gradient(135deg,#ef4444,#b91c1c) !important;
  color:#fff !important;
  font-size:.62rem !important;
  font-weight:800 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 4px !important;
  border:2px solid #0b1222 !important;
  box-shadow:0 2px 8px rgba(239,68,68,.6) !important;
}

/* Panel show state */
#kmlNotifPanel.kmlNotifPanelOpen{
  display:flex !important;
  flex-direction:column !important;
}
#kmlNotifPanel{
  position:fixed !important;
  top:58px !important;
  right:12px !important;
  z-index:8901 !important;
  animation:kmlNotifIn .2s cubic-bezier(.16,1,.3,1) !important;
}

/* Panel head classes (HTML uses kmlNotifPanelHead etc.) */
.kmlNotifPanelHead{
  padding:14px 16px 12px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
}
.kmlNotifPanelTitle{
  font-weight:800 !important;
  font-size:.92rem !important;
  color:#fff !important;
  flex:1 !important;
}
.kmlNotifMarkAll{
  font-size:.73rem !important;
  color:rgba(196,181,253,.8) !important;
  border:none !important;
  background:none !important;
  cursor:pointer !important;
  padding:3px 8px !important;
  border-radius:6px !important;
  white-space:nowrap !important;
  transition:all .15s ease !important;
}
.kmlNotifMarkAll:hover{
  background:rgba(124,58,237,.18) !important;
  color:#c4b5fd !important;
}
.kmlNotifClose{
  width:26px !important;
  height:26px !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.05) !important;
  color:rgba(255,255,255,.6) !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:13px !important;
  transition:all .15s ease !important;
}
.kmlNotifClose:hover{
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}

/* Notification list container */
#kmlNotifList{
  max-height:400px !important;
  overflow-y:auto !important;
  display:flex !important;
  flex-direction:column !important;
}
#kmlNotifList::-webkit-scrollbar{width:3px}
#kmlNotifList::-webkit-scrollbar-track{background:transparent}
#kmlNotifList::-webkit-scrollbar-thumb{background:rgba(124,58,237,.3);border-radius:2px}

/* Empty state */
#kmlNotifEmpty{
  padding:36px 20px !important;
  text-align:center !important;
  color:rgba(255,255,255,.3) !important;
  font-size:.86rem !important;
}

/* Notification item classes from JS */
.kmlNotifItemBody{
  flex:1 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
}
.kmlNotifItemText{
  font-size:.84rem !important;
  color:rgba(255,255,255,.82) !important;
  font-weight:600 !important;
  line-height:1.35 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
.kmlNotifItemTime{
  font-size:.7rem !important;
  color:rgba(255,255,255,.3) !important;
}
.kmlNotifDot{
  width:7px !important;
  height:7px !important;
  border-radius:50% !important;
  background:#7c3aed !important;
  flex-shrink:0 !important;
  margin-top:4px !important;
}

/* Icon type colors (JS uses kmlNotifIco--type) */
.kmlNotifIco--message{ background:rgba(34,197,94,.15) !important; color:#4ade80 !important; }
.kmlNotifIco--proposal{ background:rgba(59,130,246,.15) !important; color:#60a5fa !important; }
.kmlNotifIco--order{ background:rgba(124,58,237,.15) !important; color:#a78bfa !important; }
.kmlNotifIco--system{ background:rgba(245,158,11,.12) !important; color:#fbbf24 !important; }

/* Media buttons in chat (waIconBtn is already styled, kmlMediaBtn adds hover color) */
.kmlMediaBtn:hover svg{
  stroke:rgba(124,58,237,.9) !important;
}
.kmlMediaBtn:hover{
  background:rgba(124,58,237,.12) !important;
  border-color:rgba(124,58,237,.3) !important;
}

/* waSend button (renamed to use #chatSendBtn) */
.waSend, #chatSendBtn{
  background:linear-gradient(135deg,#7c3aed,#5b21b6) !important;
  border:none !important;
  border-radius:50% !important;
  width:42px !important;
  height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
  cursor:pointer !important;
  flex-shrink:0 !important;
  box-shadow:0 4px 16px rgba(124,58,237,.4) !important;
  transition:all .2s cubic-bezier(.16,1,.3,1) !important;
}
.waSend:hover, #chatSendBtn:hover{
  transform:scale(1.08) !important;
  box-shadow:0 6px 22px rgba(124,58,237,.55) !important;
}

/* ── Checkbox de Termos no Login ── */
.kmlTermsRow{
  margin:12px 0 8px !important;
}
.kmlTermsLabel{
  display:flex !important;
  align-items:flex-start !important;
  gap:10px !important;
  cursor:pointer !important;
}
.kmlTermsCheck{
  position:absolute !important;
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
}
.kmlTermsCheckbox{
  flex-shrink:0 !important;
  width:18px !important;
  height:18px !important;
  border-radius:5px !important;
  border:1.5px solid rgba(255,255,255,.25) !important;
  background:rgba(255,255,255,.06) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-top:2px !important;
  transition:all .18s ease !important;
}
.kmlTermsCheck:checked + .kmlTermsCheckbox{
  background:#7c3aed !important;
  border-color:#7c3aed !important;
}
.kmlTermsCheck:checked + .kmlTermsCheckbox::after{
  content:'' !important;
  display:block !important;
  width:5px !important;
  height:9px !important;
  border:2px solid #fff !important;
  border-top:none !important;
  border-left:none !important;
  transform:rotate(45deg) translate(-1px,-1px) !important;
}
.kmlTermsText{
  font-size:.78rem !important;
  color:rgba(255,255,255,.55) !important;
  line-height:1.45 !important;
}
.kmlTermsText .linkBtn{
  font-size:.78rem !important;
  color:#a78bfa !important;
  text-decoration:underline !important;
}
#startLoginBtn:disabled{
  opacity:.45 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}

/* ════════════════════════════════
   MEUS PEDIDOS — screenPedidos
   ════════════════════════════════ */
#screenPedidos .cpHeader{margin-bottom:4px}
#screenPedidos .cpHeaderInner{max-width:860px;margin:0 auto;width:100%}
#screenPedidos .cpTabBar,
#screenPedidos .clTabContent{max-width:860px;margin-left:auto;margin-right:auto;width:100%}

.kpo-back-btn{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.7);cursor:pointer;transition:var(--kml-transition);flex-shrink:0;
}
.kpo-back-btn:hover{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.15)}

.kpo-loading{
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:60px 20px;color:rgba(255,255,255,.35);font-size:.88rem;font-weight:600;
}
.kpo-spinner{
  width:18px;height:18px;border:2px solid rgba(255,255,255,.1);
  border-top-color:rgba(212,165,52,.7);border-radius:50%;
  animation:kpoSpin .75s linear infinite;flex-shrink:0;
}
@keyframes kpoSpin{to{transform:rotate(360deg)}}

/* Card de pedido */
.kpo-card{
  background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.07);
  border-radius:16px;padding:16px 18px;margin:8px 0;
  transition:border-color .18s ease,background .18s ease;cursor:pointer;
}
.kpo-card:hover{border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.04)}
.kpo-card:first-child{margin-top:0}

.kpo-card-top{display:flex;align-items:center;gap:12px}
.kpo-editor-avatar{
  width:44px;height:44px;border-radius:12px;flex-shrink:0;
  background:linear-gradient(135deg,rgba(212,165,52,.25),rgba(184,146,42,.15));
  border:1px solid rgba(212,165,52,.18);
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;font-weight:900;color:rgba(255,224,138,.9);
  overflow:hidden;
}
.kpo-editor-avatar img{width:100%;height:100%;object-fit:cover;border-radius:11px}
.kpo-card-info{flex:1;min-width:0}
.kpo-editor-name{font-size:.95rem;font-weight:800;color:rgba(255,255,255,.94);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpo-pkg-name{font-size:.78rem;color:rgba(255,255,255,.42);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpo-card-right{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0}
.kpo-total{font-size:1rem;font-weight:900;color:rgba(255,255,255,.92)}
.kpo-date{font-size:.72rem;color:rgba(255,255,255,.3);font-weight:600}

/* Status pill */
.kpo-status{
  display:inline-flex;align-items:center;gap:5px;
  font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:4px 10px;border-radius:99px;border:1px solid transparent;margin-top:10px;
}
.kpo-status-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.kpo-status--pending{background:rgba(245,180,0,.1);border-color:rgba(245,180,0,.22);color:rgba(255,224,138,.9)}
.kpo-status--pending .kpo-status-dot{background:#f5b400;animation:kpoPulse 2s ease-in-out infinite}
.kpo-status--paid{background:rgba(34,197,94,.1);border-color:rgba(34,197,94,.22);color:#4ade80}
.kpo-status--paid .kpo-status-dot{background:#22c55e}
.kpo-status--done{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.22);color:#93c5fd}
.kpo-status--done .kpo-status-dot{background:#3b82f6}
.kpo-status--cancelled{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.18);color:rgba(252,165,165,.8)}
.kpo-status--cancelled .kpo-status-dot{background:#ef4444}
@keyframes kpoPulse{0%,100%{opacity:1}50%{opacity:.25}}

/* Divider e ações do card */
.kpo-card-divider{height:1px;background:rgba(255,255,255,.05);margin:12px 0}
.kpo-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.kpo-btn{
  flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 12px;border-radius:10px;font-size:.8rem;font-weight:800;cursor:pointer;
  transition:all .15s ease;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);color:rgba(255,255,255,.7);
  font-family:inherit;letter-spacing:.02em;
}
.kpo-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff;transform:translateY(-1px)}
.kpo-btn:active{transform:translateY(0)}
.kpo-btn--primary{
  background:linear-gradient(135deg,rgba(212,165,52,.18),rgba(184,146,42,.12));
  border-color:rgba(212,165,52,.35);color:rgba(255,224,138,.95);
}
.kpo-btn--primary:hover{background:linear-gradient(135deg,rgba(212,165,52,.28),rgba(184,146,42,.20));border-color:rgba(212,165,52,.55);color:#ffe08a}

/* Empty state */
.kpo-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:56px 24px;text-align:center;
}
.kpo-empty-icon{font-size:2.8rem;margin-bottom:14px;opacity:.7}
.kpo-empty-title{font-size:1rem;font-weight:900;color:rgba(255,255,255,.82);margin-bottom:6px}
.kpo-empty-sub{font-size:.85rem;color:rgba(255,255,255,.38);max-width:320px;line-height:1.45;margin-bottom:20px}
.kpo-empty-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:12px;font-size:.9rem;font-weight:800;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  color:#111418;border:none;cursor:pointer;font-family:inherit;transition:all .15s ease;
}
.kpo-empty-btn:hover{transform:translateY(-1px);filter:brightness(1.06)}

/* Refresh girando */
#kpoRefreshBtn.spinning svg{animation:kpoSpin .7s linear infinite}

@media(max-width:520px){
  .kpo-card-actions{flex-direction:column}
  .kpo-btn{flex:none;width:100%}
  .kpo-total{font-size:.92rem}
}


/* ─── Oportunidades de Clientes (Editor) ─── */
.cjGrid{gap:10px}
.cjCard{}
.cjApplyBtn{appearance:none;background:linear-gradient(135deg,#f5b400,#e8a200);border:none;color:#111;padding:10px 20px;border-radius:11px;font-weight:900;font-size:.88rem;cursor:pointer;font-family:inherit;transition:filter .15s,transform .12s;letter-spacing:.02em;width:100%}
.cjApplyBtn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.cjApplyBtn:active{transform:translateY(0) scale(.98)}
