/* Arquivo da Fé: cabeçalho, menu lateral e popups (antes embutido inline em todas as páginas) */
/* ============ TOKENS ============ */
:root{
  --adf-bg:#fffefb; --adf-ink:#1c1815; --adf-muted:#6f6458; --adf-line:#ece6db;
  --adf-brand:#c7a24a; --adf-hover:#fff9ed; --adf-danger:#c9372c; --adf-shadow:0 12px 28px rgba(0,0,0,.10);
}

/* ============ HEADER (único) ============ */
.adf-header .logo img{ height:48px; width:auto; display:block; }
.adf-header{
  background-image:linear-gradient(to right,#2c0d08,#8b4e1d);
  padding:8px 32px; display:flex; justify-content:space-between; align-items:center;
  width:100%; box-sizing:border-box; font-family:'Poppins',sans-serif;
  position:fixed; top:0; left:0; z-index:9999;
  transition:background-color .3s ease, box-shadow .3s ease, background-image .3s ease;
}
body.admin-bar .adf-header{ top:32px; }
body.adf-scrolled .adf-header{
  background-image:linear-gradient(to right,rgba(44,13,8,.85),rgba(139,78,29,.85));
  box-shadow:0 2px 10px rgba(0,0,0,.1); backdrop-filter:blur(4px);
}
body{
  padding-top:80px;
}

.adf-sidebar{
  top:80px;
}


.adf-header .header-buttons{ display:flex; gap:12px; align-items:center; position:relative; }
.adf-header .header-buttons a{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.adf-header .header-buttons .dashicons{ font-size:26px!important; color:#fff!important; line-height:1!important; display:inline-block!important; transform:translateY(-2px); }

.adf-header .login-btn{
  background:transparent; border:2px solid #fff; color:#fff;
  padding:6px 20px; font-size:14px; font-weight:700; border-radius:32px; transition:.3s; cursor:pointer;
}
.adf-header .login-btn:hover{ background:rgba(255,255,255,.25); }
.adf-header .cta-btn{
  background:#cc9843; color:#fff; padding:6px 20px; font-size:14px; font-weight:700;
  border-radius:32px; border:0; transition:.3s; cursor:pointer;
}
.adf-header .cta-btn:hover{ background:#b47f2c; }

#adf-cart-count{
  position:absolute; top:-4px; right:-12px; background:#ff4d4f; color:#fff; font-size:10px; font-weight:700;
  border-radius:50%; width:12px; height:12px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 2px #fff; pointer-events:none;
}

@media (max-width:768px){
  .adf-header{ padding:8px 16px!important; }
  .adf-header .logo img{ height:40px; }
  .adf-header .header-buttons{ gap:8px; }
  .adf-header .login-btn, .adf-header .cta-btn{ padding:4px 14px; font-size:13px; }
}

/* ============ PROFILE DROPDOWN (único) ============ */
.hidden{ display:none!important; }  /* utilitária */

#adf-profile-btn{ position:relative; cursor:pointer; }
#adf-profile-menu{
  position:absolute; top:100%; margin-top:8px; right:0;
  background:var(--adf-bg); color:var(--adf-ink);
  border:1px solid var(--adf-line); border-radius:14px; min-width:260px; max-width:96vw;
  box-shadow:var(--adf-shadow); overflow:hidden; z-index:10000;
  opacity:0; pointer-events:none; transform:translateY(-6px);
  transition:opacity .2s ease, transform .2s ease;
}
#adf-profile-menu:not(.hidden){ opacity:1; pointer-events:auto; transform:translateY(0); }

#adf-profile-menu .adf-profile-greeting{
  padding:14px 16px; background:linear-gradient(90deg,#fff9f1,#f6f2ea); justify-content:center; text-align:center;
  color:#3b2f25; font-weight:700; font-size:14px; border-bottom:1px solid var(--adf-line);
}
#adf-profile-menu .adf-item{
  width:100%; display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px;
  padding:12px 16px; background:none; border:0; text-align:left; color:var(--adf-ink);
  border-bottom:1px solid var(--adf-line); cursor:pointer; transition:background-color .18s ease, transform .18s ease;
}
#adf-profile-menu .adf-item:last-child{ border-bottom:none; }
#adf-profile-menu .adf-ico{ width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; color:var(--adf-brand); }
#adf-profile-menu .adf-label{ font-weight:600; font-size:14px; letter-spacing:.2px; }
#adf-profile-menu .adf-item:hover{ background:var(--adf-hover); transform:translateX(1px); }
#adf-profile-menu .adf-item.adf-exit{ color:var(--adf-danger); font-weight:700; }
#adf-profile-menu .adf-item.adf-exit:hover{ background:#fff2ef; }
.adf-badge{ display:inline-flex; min-width:18px; height:18px; padding:0 6px; border-radius:999px; background:#ef4444; color:#fff; font-size:11px; font-weight:700; align-items:center; justify-content:center; margin-left:6px; }
.adf-caret{ margin-left:8px; font-weight:700; }

/* ============ INBOX — CONSOLIDADO (sem duplicatas) ============ */
/* Container mais estreito e elegante */
.adf-inbox-page{
  width:520px; max-width:94vw;
  background:#fff;
  border:1px solid var(--adf-line);
  border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
  overflow:hidden;
  font-family:"Poppins", sans-serif;
}

/* Cabeçalho fixo */
.adf-msg-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--adf-line);
  background:linear-gradient(180deg,#fffdf7,#faf6ed);
  font-weight:600; color:#2a261f; position:sticky; top:0; z-index:2;
}

/* Botão Voltar delicado */
#adf-inbox-back{
  border:1px solid #e5e7eb; background:#fff;
  border-radius:8px; padding:6px 14px; font-size:13px; font-weight:700; color:#5b4630; cursor:pointer;
  transition:all .2s ease;
}
#adf-inbox-back:hover{ background:#f8f5ef; box-shadow:0 0 0 2px rgba(199,162,74,.25); }
#adf-inbox-back:active{ transform:translateY(1px); }
#adf-inbox-back:focus-visible{ outline:0; box-shadow:0 0 0 3px rgba(199,162,74,.40); }

/* Título centralizado */
.adf-msg-head strong{
  flex:1; text-align:center; font-weight:800; font-size:15px; color:#3b2f25;
}

/* Lista / corpo com scroll */
.adf-msg-body{
  display:block; padding:8px 0; background:#fff;
  max-height:60vh; overflow-y:auto;
}

/* Item (com estados) */
.adf-row{
  padding:14px 18px; border-bottom:1px solid #f2f2f2; cursor:pointer;
  transition:background .18s cubic-bezier(.2,.6,.2,1), transform .1s cubic-bezier(.2,.6,.2,1);
  border-left:4px solid transparent; background:#fff;
}
.adf-row:hover{ background:#f9fafb; transform:translateX(1px); }
.adf-row.unread{ background:#fff8f8; border-left-color:#dc2626; } /* vermelho não lido */
.adf-row:not(.unread){ border-left-color:#22c55e; }               /* verde lido */

/* Cabeçalho do item: título + data SEM cortes */
.adf-row .row-top{
  display:flex; align-items:flex-start; gap:12px; justify-content:space-between;
  margin-bottom:4px;
}
.adf-row .t{
  font-weight:900; color:#111827; line-height:1.25; margin:0;
  flex:1 1 auto; min-width:0; /* permite truncar corretamente */
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.adf-row .d{
  flex:0 0 auto; color:#9ca3af; font-size:12px; white-space:nowrap;
}

/* Status textual (lida/não lida) */
.adf-row .status{
  font-size:11px; font-weight:700; border-radius:8px; padding:2px 6px; margin-right:6px;
}
.adf-row.unread .status{ background:#fee2e2; color:#b91c1c; }
.adf-row:not(.unread) .status{ background:#dcfce7; color:#166534; }

/* Prévia */
.adf-row .x{
  color:#6b7280; font-size:13px; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* Botão Carregar mais */
#adf-msg-load{
  display:block; width:100%; text-align:center; background:#f5f3ed; color:#5b4630;
  font-weight:700; border:0; border-radius:0 0 16px 16px; padding:10px 0; cursor:pointer; transition:background .2s ease;
}
#adf-msg-load:hover{ background:#ebe6da; }

/* Scrollbar sutil */
.adf-msg-body::-webkit-scrollbar{ width:8px; }
.adf-msg-body::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,#e5dcc2,#d4c4a4); border-radius:999px; }

/* ============ ALIASES p/ compatibilidade (seu HTML antigo) ============ */
/* Se ainda existirem elementos com classes antigas, mapeamos pro novo layout */
.adf-inbox-head{ composes: adf-msg-head; } /* ignorado pelos browsers, serve de guia */
.adf-list{ max-height:60vh; overflow:auto; background:#fff; padding:8px 0; }
.adf-msg-item{ padding:14px 18px; border-bottom:1px solid #f2f2f2; cursor:pointer; background:#fff; }
.adf-item-title{ font-weight:900; margin:0; color:#111827; line-height:1.25; }
.adf-item-snippet{ color:#6b7280; font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Data antiga sem float */
.adf-item-date{ color:#9ca3af; font-size:12px; white-space:nowrap; }

/* ============ DETALHE DE LEITURA (opcional, único) ============ */
.adf-detail{
  max-height:60vh; overflow:auto; padding:16px 18px; background:#fff;
}
.adf-detail .adf-detail-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.adf-detail-title{ font-weight:900; font-size:18px; margin:0; color:#111827; line-height:1.3; }
.adf-detail-meta{ color:#6b7280; font-size:12px; margin:10px 0 14px; }
.adf-detail-body{ color:#374151; line-height:1.65; font-size:15px; }
.adf-detail .btn{
  background:#64372b; color:#fff; border:0; border-radius:10px; padding:10px 14px; font-weight:800;
  text-decoration:none; display:inline-block; margin-top:14px;
  transition:transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s cubic-bezier(.2,.6,.2,1), background-color .18s cubic-bezier(.2,.6,.2,1);
  box-shadow:0 8px 22px rgba(100,55,43,.22);
}
.adf-detail .btn:hover{ background:#5a3026; box-shadow:0 12px 28px rgba(100,55,43,.32); }
.adf-detail .btn:active{ transform:translateY(1px); }
.adf-detail.hidden, .adf-list.hidden{ display:none!important; }

/* ===== INBOX CONTAINER ===== */
.adf-inbox-page{
  width:520px; max-width:94vw;
  background:#fff;
  border:1px solid var(--adf-line);
  border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
  overflow:hidden;
  font-family:"Poppins",sans-serif;
}

/* Cabeçalho */
.adf-inbox-head{
  display:flex; align-items:center; gap:10px;
  padding:12px 16px;
  border-bottom:1px solid var(--adf-line);
  background:linear-gradient(180deg,#fffdf7,#faf6ed);
  position:sticky; top:0; z-index:2;
}
.adf-back{
  border:1px solid #e5e7eb; background:#fff; color:#5b4630;
  border-radius:8px; padding:6px 12px; font-size:13px; font-weight:700; cursor:pointer;
  transition:background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.adf-back:hover{ background:#f8f5ef; box-shadow:0 0 0 2px rgba(199,162,74,.25); }
.adf-back:active{ transform:translateY(1px); }
.adf-inbox-title{ font-weight:800; font-size:15px; color:#3b2f25; }

/* Lista com scrollbar */
.adf-list{ max-height:60vh; overflow:auto; background:#fff; }

/* ===== ITENS ===== */
.adf-msg-item{
  padding:14px 16px;
  border-bottom:1px solid #f2f2f2;
  cursor:pointer; background:#fff;
  display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto;
  gap:6px 12px;
  transition:background .15s ease, transform .1s ease, border-left-color .15s ease;
  border-left:4px solid transparent;
}
.adf-msg-item:hover{ background:#f9fafb; transform:translateX(1px); }

/* Estado de leitura por classe no ITEM */
.adf-msg-item.is-unread{ border-left-color:#dc2626; background:#fff8f8; } /* vermelho */
.adf-msg-item.is-read  { border-left-color:#22c55e; }                     /* verde */

/* Linha de status + data (topo) */
.adf-item-top{ grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:12px; }

.adf-status{
  font-size:11px; font-weight:800; letter-spacing:.02em;
  border-radius:999px; padding:3px 8px;
}
.adf-msg-item.is-unread .adf-status{ background:#fee2e2; color:#b91c1c; } /* Não lida */
.adf-msg-item.is-read   .adf-status{ background:#dcfce7; color:#166534; } /* Lida */

.adf-item-date{ color:#9ca3af; font-size:12px; white-space:nowrap; }

/* Título menor e elegante */
.adf-item-title{
  grid-column:1 / -1;
  font-weight:900; font-size:16px; line-height:1.25; margin:0; color:#111827;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}

/* Snippet discreto */
.adf-item-snippet{
  grid-column:1 / -1;
  color:#6b7280; font-size:13px; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* Botão carregar mais (se usar) */
#adf-msg-load{
  display:block; width:100%; text-align:center;
  background:#f5f3ed; color:#5b4630; font-weight:700;
  border:0; border-radius:0 0 16px 16px; padding:10px 0; cursor:pointer;
  transition:background .2s ease;
}
#adf-msg-load:hover{ background:#ebe6da; }

/* Scrollbar sutil */
.adf-list::-webkit-scrollbar{ width:8px; }
.adf-list::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#e5dcc2,#d4c4a4);
  border-radius:999px;
}

/* ===== DETALHE ===== */
.adf-detail{
  max-height:60vh; overflow:auto; padding:16px 18px; background:#fff;
}
.adf-detail .adf-detail-title{ font-weight:900; font-size:18px; margin:0 0 6px; color:#111827; }
.adf-detail .adf-detail-meta{ color:#6b7280; font-size:12px; margin-bottom:12px; }
.adf-detail .adf-detail-body{ color:#374151; line-height:1.65; font-size:15px; }
/* ===== Reset do hover dourado do tema dentro do menu de perfil ===== */
#adf-profile-menu a.adf-item{
  text-decoration: none !important;
  box-shadow: none !important;           /* mata underline com box-shadow inset */
  border-bottom: 1px solid var(--adf-line) !important; /* mantém só a divisória */
}
#adf-profile-menu a.adf-item:hover,
#adf-profile-menu a.adf-item:focus,
#adf-profile-menu a.adf-item:active{
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom-color: var(--adf-line) !important; /* evita mudar p/ dourado */
}

/* Alguns temas usam pseudo-elementos para a linha animada */
#adf-profile-menu a.adf-item::after,
#adf-profile-menu a.adf-item::before{
  content: none !important;
  display: none !important;
}

/* Botões dentro do dropdown também não devem herdar efeitos */
#adf-profile-menu .adf-item{
  text-decoration: none !important;
  box-shadow: none !important;
}
#adf-profile-menu .adf-item:hover{
  box-shadow: none !important;
  text-decoration: none !important;
}
.adf-detail .adf-detail-body{
  font-size:15px;
  line-height:1.45;
  color:#374151;
  margin-top:8px; /* <-- cria respiro do cabeçalho */
}
.adf-detail .adf-detail-body p{
  margin:0 0 8px;
}
.adf-badge:empty,
.adf-badge.adf-hidden,
#adf-msg-count:empty {
  display: none !important;
}
#adf-msg-count::before,
#adf-msg-count::after {
  content: none !important;
}
/* ============ MODAL “COMECE AGORA” (ESCOPO EXCLUSIVO) ============ */
#adf-startnow-modal.hidden{ display:none!important; }
#adf-startnow-modal{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45); z-index:100000;
}
#adf-startnow-modal .adf-startnow__inner{
  position:relative; background:#fffdee; border-radius:16px; width:100%; max-width:420px;
  padding:22px; box-shadow:0 10px 30px rgba(0,0,0,.2); text-align:center;
}
#adf-startnow-modal h3{
  margin:16px 0 14px; font-size:15px; font-weight:700;
  font-family:"Cinzel", Georgia, "Times New Roman", serif;
  text-transform:uppercase; letter-spacing:.08em; color:#64372b;
}
/* Inputs */
#adf-startnow-modal form input[type="text"],
#adf-startnow-modal form input[type="email"],
#adf-startnow-modal form input[type="tel"]{
  width:100%; padding:10px 12px; margin:0 0 10px; border:0; border-radius:10px; font-size:14px; background:#ffffff;
  box-shadow: inset 0 0 0 1px #a8938d; outline:0;
}
#adf-startnow-modal form input:focus{
  box-shadow: inset 0 0 0 2px #a8938d, 0 0 0 3px rgba(100,55,43,.18);
}
/* Linha DDI + WhatsApp */
#adf-startnow-modal .adf-startnow__whats-row{
  display:flex; gap:10px; align-items:stretch; width:100%; justify-content:center;
}
#adf-startnow-modal .adf-startnow__whats-row select,
#adf-startnow-modal .adf-startnow__whats-row input{
  height:44px; padding:10px 12px; border:0; background:#ffffff; border-radius:10px; font-size:14px; box-sizing:border-box; outline:0;
  box-shadow: inset 0 0 0 1px #a8938d;
}
#adf-startnow-modal .adf-startnow__whats-row select:focus,
#adf-startnow-modal .adf-startnow__whats-row input:focus{
  box-shadow: inset 0 0 0 1px #a8938d, 0 0 0 3px rgba(100,55,43,.18);
}
#adf-startnow-modal .adf-startnow__whats-row select{ width:35%; -webkit-appearance:none; appearance:none; }
#adf-startnow-modal .adf-startnow__whats-row input{  width:65%; }
/* Botão fechar */
#adf-startnow-modal .adf-startnow__close{
  position:absolute; top:10px; right:10px; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #eee; border-radius:12px; background:#fff; color:#333; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.10); z-index:2;
}
#adf-startnow-modal .adf-startnow__close::before,
#adf-startnow-modal .adf-startnow__close::after{
  content:""; position:absolute; width:16px; height:2px; background:currentColor; border-radius:2px;
}
#adf-startnow-modal .adf-startnow__close::before{ transform:rotate(45deg); }
#adf-startnow-modal .adf-startnow__close::after { transform:rotate(-45deg); }
#adf-startnow-modal .adf-startnow__close:hover{ background:#f5f5f5; }
/* Feedback */
#adf-startnow-modal .adf-startnow__feedback{
  margin-top:8px; font-size:13px; color:#b71c1c; background:#fde7e7; padding:8px 10px; border-radius:8px;
}
/* Submit */
#adf-startnow-modal button[type="submit"]{
  background:#64372b; color:#fff; border:0; border-radius:10px; padding:12px 16px; cursor:pointer; width:100%;
  font-weight:700; text-transform:uppercase; font-family:"Cinzel", Georgia, "Times New Roman", serif; letter-spacing:.06em;
}
#adf-startnow-modal button[type="submit"]:hover{ background:#532f25; }
/* Consentimento */
#adf-startnow-modal .adf-startnow__consent{
  font-size:14px; color:#7f7a6a; text-align:center; line-height:1.45; margin:8px 0 14px;
  font-family:"DejaVu Serif", Georgia, "Times New Roman", serif;
}
#adf-startnow-modal .adf-startnow__consent a{ color:#64372b; text-decoration:underline; }
/* Cabeçalho do modal */
#adf-startnow-modal .adf-startnow__heading{
  display:flex; align-items:center; justify-content:center; gap:12px; margin:16px 0 14px; text-align:center;
}
#adf-startnow-modal .adf-startnow__logo{ width:60px; height:auto; object-fit:contain; flex:0 0 auto; }
#adf-startnow-modal .adf-startnow__heading h3{ margin:0; }
/* Responsivo */
@media (max-width:380px){
  #adf-startnow-modal .adf-startnow__heading{ flex-direction:column; gap:8px; }
}
body.adf-modal-open { overflow: hidden; }

/* Ícone de mensagens no header (alerta) */
#adf-msg-icon{
  position: relative;
}

#adf-msg-count-header{
  position:absolute;
  top:-4px;
  right:-10px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  font-size:10px;
  font-weight:700;
  background:#ef4444;
  color:#fff;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 2px #fff;
  pointer-events:none;
}
/* =========================
   DETALHE (LEITURA) — FIX ESPAÇAMENTOS
========================= */

/* dá um respiro entre cabeçalho/meta e o texto */
#adf-msg-detail .adf-detail-body{
  margin-top:10px !important;
  font-size:15px;
  line-height:1.5;
  color:#374151;
  white-space: normal !important; /* mata qualquer pre-line herdado */
}

/* controla o espaçamento REAL entre blocos */
#adf-msg-detail .adf-detail-body p{
  margin:0 0 10px !important;
}

/* se vier linha vazia, não cria “buracão” */
#adf-msg-detail .adf-detail-body p:empty{
  display:none !important;
}

/* =========================
   BOTÃO CTA — PREMIUM + CENTRALIZADO
========================= */
#adf-msg-detail .adf-detail-cta{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

#adf-msg-detail .btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:12px 22px !important;
  border-radius:14px !important;

  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,sans-serif !important;
  font-weight:800 !important;
  font-size:16px !important;
  letter-spacing:.02em !important;
  text-transform:uppercase;

  color:#1c1815 !important;
  background:linear-gradient(180deg,#f4dc9b 0%, #c7a24a 55%, #a8772a 100%) !important;

  border:1px solid rgba(0,0,0,.10) !important;
  box-shadow:0 14px 28px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.35) !important;

  text-decoration:none !important;
  min-width:220px;
  max-width:100%;
}

#adf-msg-detail .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35) !important;
}

#adf-msg-detail .btn:active{
  transform:translateY(0);
}

/* =========================
   CTA — PREMIUM DISCRETO
========================= */
#adf-msg-detail .adf-detail-cta{
  display:flex;
  justify-content:center;
  margin-top:14px;
}

#adf-msg-detail .btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;

  padding:8px 18px !important;      /* ⬅ menor */
  min-width:180px !important;       /* ⬅ menos largo */
  max-width:100%;

  border-radius:999px !important;   /* ⬅ mais elegante */
  
  font-family:"Poppins", system-ui, sans-serif !important;
  font-weight:600 !important;       /* ⬅ menos agressivo */
  font-size:13px !important;        /* ⬅ mais refinado */
  letter-spacing:.04em !important;
  text-transform:uppercase;

  color:#3b2f25 !important;
  background:linear-gradient(
    180deg,
    #f3e2b2 0%,
    #d4b469 100%
  ) !important;

  border:1px solid rgba(0,0,0,.08) !important;
  box-shadow:
    0 6px 14px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.45) !important;

  text-decoration:none !important;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .2s ease;
}

#adf-msg-detail .btn:hover{
  transform:translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.45) !important;
}

#adf-msg-detail .btn:active{
  transform:translateY(0);
  box-shadow:
    0 4px 10px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* =========================================================
   SIDEBAR ADF — VERSÃO FINAL / HARMONIZADA
   Substitui TODO o CSS anterior da sidebar
========================================================= */

/* ---------- VARIÁVEIS GLOBAIS ---------- */
:root{
  --adf-sidebar-bg: #f6f3ec;        /* bege quente */
  --adf-sidebar-bg-2: #efe9de;      /* leve contraste */
  --adf-sidebar-border: rgba(0,0,0,.08);

  --adf-sidebar-text: #2f2a25;
  --adf-sidebar-muted: #6f6458;

  --adf-gold: #c7a24a;
  --adf-gold-soft: rgba(199,162,74,.18);

  --adf-danger: #c9372c;

  --adf-header-h: 64px;
  --adf-header-h-mobile: 56px;
}


/* ---------- CONTAINER PRINCIPAL ---------- */
#adf-sidebar{
  position: fixed;
  top: var(--adf-header-h);
  right: 0;

  width: 240px; /* menu normal */
  height: calc(100vh - var(--adf-header-h));

  background: linear-gradient(
    180deg,
    var(--adf-sidebar-bg) 0%,
    var(--adf-sidebar-bg-2) 100%
  );

  border-left: 3px solid var(--adf-gold);
  box-shadow: -6px 0 20px rgba(0,0,0,.08);

  z-index: 9998;
  display: flex;
  flex-direction: column;

  font-family: "Poppins", system-ui, sans-serif;

  transform: translateX(calc(100% - 72px));
  transition:
    transform .28s cubic-bezier(.4,0,.2,1),
    width .28s cubic-bezier(.4,0,.2,1);
}
#adf-sidebar:not(.is-open){
  overflow: visible;
}

/* ✅ ABERTO */
#adf-sidebar.is-open{
  transform: translateX(0);
}


/* ---------- ABERTO ---------- */
#adf-sidebar.is-open{
  transform: translateX(0);
}

/* ---------- ADMIN BAR ---------- */
body.admin-bar #adf-sidebar{
  top: calc(var(--adf-header-h) + 32px);
  height: calc(100vh - var(--adf-header-h) - 32px);
}

/* ---------- MOBILE ---------- */
@media (max-width:768px){
  #adf-sidebar{
    top: var(--adf-header-h-mobile);
    height: calc(100vh - var(--adf-header-h-mobile));
  }

  body.admin-bar #adf-sidebar{
    top: calc(var(--adf-header-h-mobile) + 32px);
    height: calc(100vh - var(--adf-header-h-mobile) - 32px);
  }
}

/* =========================================================
   CABEÇALHO DA SIDEBAR — OLÁ / NOME (FINAL)
========================================================= */
.adf-sidebar-header{
  display: none; /* ❌ some totalmente quando fechado */
}

/* ===== SIDEBAR ABERTA ===== */
#adf-sidebar.is-open .adf-sidebar-header{
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--adf-sidebar-border);

  text-align: center;
  gap: 6px;
}

/* Texto */
#adf-sidebar.is-open .adf-sidebar-header .greet{
  font-size: 16px;
  font-weight: 500;
  color: var(--adf-sidebar-muted);
}

#adf-sidebar.is-open .adf-sidebar-header .comma{
  display: inline;
  font-size: 16px;
  color: var(--adf-sidebar-muted);
}

#adf-sidebar.is-open .adf-sidebar-header .name{
  display: inline;
  font-size: 17px;
  font-weight: 700;
  color: var(--adf-sidebar-text); /* marrom elegante */
}


/* ===== SIDEBAR ABERTA ===== */
#adf-sidebar.is-open .adf-sidebar-header .comma{
  display: inline;
}

#adf-sidebar.is-open .adf-sidebar-header .name{
  display: inline;
}


/* =========================================================
   NAVEGAÇÃO
========================================================= */
.adf-sidebar-nav{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 6px 0;
  gap: 2px;
}

/* ---------- ITEM ---------- */
.adf-side-item{
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 20px;

  color: var(--adf-sidebar-text);
  text-decoration: none;

  border-right: 4px solid transparent;

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease;
}

/* ---------- ÍCONE ---------- */
.adf-side-item .dashicons,
.adf-side-item .adf-icon-svg{
  font-size: 20px;
  min-width: 22px;
  color: var(--adf-sidebar-muted);
  transition: color .18s ease, transform .18s ease;
}

/* ---------- ÍCONE SVG (ex.: Orações) — herda a cor como os dashicons ---------- */
.adf-side-item .adf-icon-svg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  line-height: 1;
}
.adf-side-item .adf-icon-svg svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* ---------- TEXTO ---------- */
/* ---------- TEXTO + BADGE (BASE) ---------- */
.adf-side-item .label{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;

  transition:
    opacity .15s ease,
    color .18s ease,
    transform .18s ease;
}

/* ---------- SIDEBAR FECHADA ---------- */
/* =========================
   TEXTO ESCONDIDO (modo fechado)
========================= */
#adf-sidebar:not(.is-open) .adf-side-item .label{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* mantém o badge visível */
#adf-sidebar:not(.is-open) .adf-side-item .adf-badge{
  font-size: 10px;            /* 👈 restaura badge */
}



/* texto aparece apenas aberto */
#adf-sidebar.is-open .label{
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   HOVER (sempre funciona)
========================= */
.adf-side-item:hover{
  background: linear-gradient(
    90deg,
    rgba(199,162,74,.45) 0%,
    rgba(199,162,74,.30) 60%,
    rgba(199,162,74,.18) 100%
  );
}

.adf-side-item:hover .dashicons,
.adf-side-item:hover .adf-icon-svg,
.adf-side-item:hover .label{
  color: var(--adf-gold);
  transform: translateX(2px);
}

/* =========================
   ATIVO (persistente)
========================= */
.adf-side-item.active{
  background: linear-gradient(
    90deg,
    rgba(199,162,74,.55) 0%,
    rgba(199,162,74,.38) 60%,
    rgba(199,162,74,.22) 100%
  );

  border-right-color: var(--adf-gold);

  box-shadow:
    inset 3px 0 0 var(--adf-gold),
    inset 0 1px 0 rgba(255,255,255,.35);
}


/* TEXTO */
.adf-side-item.active .label{
  color: #3b2a14;     /* marrom escuro quente */
  font-weight: 700;
}

/* ÍCONE */
.adf-side-item.active .dashicons,
.adf-side-item.active .adf-icon-svg{
  color: #8a5c12;     /* dourado escuro */
}


/* =========================================================
   BADGE (Mensagens)
========================================================= */
.adf-side-item .adf-badge{
  margin-left: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
}

/* =========================================================
   BADGE NO ÍCONE — SIDEBAR FECHADA (FINAL)
========================================================= */

#adf-sidebar:not(.is-open) .adf-side-item{
  position: relative;
}

#adf-sidebar:not(.is-open) .adf-side-item .adf-badge{
  position: absolute;
  top: 10px;
  left: 26px;

  transform: translate(50%, -50%);
  z-index: 3;

  font-size: 10px;
  padding: 2px 6px;

  box-shadow: 0 0 0 2px var(--adf-sidebar-bg);
}


/* =========================================================
   SAIR
========================================================= */
.adf-side-item.adf-exit{
  margin-top: auto;
  color: #8f2d2d;
  font-weight: 600;
}

.adf-side-item.adf-exit .dashicons{
  color: var(--adf-danger);
}

.adf-side-item.adf-exit:hover{
  background: rgba(224,90,79,.12);
}

/* =========================================================
   PREVENÇÕES IMPORTANTES
========================================================= */

/* sidebar nunca empurra conteúdo */
body{
  overflow-x: hidden;
}

/* remove qualquer efeito herdado do tema */
#adf-sidebar a,
#adf-sidebar button{
  box-shadow: none !important;
  text-decoration: none !important;
  background: none;
  border: 0;
}

/* focus acessível */
.adf-side-item:focus-visible{
  outline: 2px solid var(--adf-gold);
  outline-offset: -2px;
}
/* =========================================================
   INBOX DENTRO DA SIDEBAR
========================================================= */

.adf-sidebar-inbox{
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

#adf-sidebar.is-open .adf-sidebar-inbox{
  display: flex;
}

.adf-sidebar-inbox.hidden{
  display: none !important;
}

/* esconde menu normal quando inbox aberta */
#adf-sidebar.inbox-open .adf-sidebar-nav,
#adf-sidebar.inbox-open .adf-sidebar-header{
  display: none !important;
}
/* =========================================================
   SIDEBAR MAIS LARGA EM MODO INBOX
========================================================= */
#adf-sidebar.inbox-open{
  width: 420px; /* 👈 ajuste ideal para leitura */
}

/* =========================
   ESTADO ATIVO / FOCUS — DOURADO (SEM AZUL)
========================= */

/* remove qualquer azul herdado */
#adf-sidebar .adf-side-item:focus,
#adf-sidebar .adf-side-item:active,
#adf-sidebar .adf-side-item:focus-visible,
#adf-sidebar .adf-side-item:visited{
  outline: none !important;
  box-shadow: none !important;
  color: var(--adf-sidebar-text) !important;
}

/* estado ATIVO real (clicado / página atual) */
#adf-sidebar .adf-side-item.active,
#adf-sidebar .adf-side-item:active{
  background: linear-gradient(
    90deg,
    rgba(199,162,74,.45) 0%,
    rgba(199,162,74,.30) 60%,
    rgba(199,162,74,.18) 100%
  ) !important;

  border-right-color: var(--adf-gold) !important;
}

/* remove highlight azul do mobile */
#adf-sidebar .adf-side-item{
  -webkit-tap-highlight-color: transparent;
}
/* =========================
   ESTADO VAZIO — INBOX
========================= */
.adf-msg-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  text-align:center;
  color:#6f6458;
}

.adf-msg-empty-icon{
  font-size:42px;
  color:#c7a24a;
  margin-bottom:14px;
}

.adf-msg-empty-title{
  font-size:16px;
  font-weight:700;
  color:#3b2f25;
  margin:0 0 6px;
}

.adf-msg-empty-text{
  font-size:13px;
  line-height:1.5;
  max-width:260px;
  margin:0;
}
/* =========================
   MOBILE — SIDEBAR FECHADA POR PADRÃO
========================= */
@media (max-width: 768px){
  #adf-sidebar{
    transform: translateX(100%) !important;
  }

  #adf-sidebar.is-open{
    transform: translateX(0) !important;
  }
}
/* Ícone de mensagens no header — apenas mobile */
#adf-msg-icon{
  display:none; /* JS controla quando aparece */
}

@media (max-width:768px){
  #adf-msg-icon{
    display:inline-flex;
  }
}

/* Corpo da mensagem — respeita parágrafos */
.adf-detail-body{
  white-space: normal !important;
}

.adf-detail-body p{
  margin: 0 0 10px !important;
}

.adf-detail-body br{
  display: block;
  content: "";
  margin-bottom: 8px;
}

/* =========================================
   TOOLTIP NA SIDEBAR FECHADA — FIX
========================================= */

#adf-sidebar:not(.is-open) .adf-side-item{
  position: relative;
}

/* tooltip */
#adf-sidebar:not(.is-open) .adf-side-item::after{
  content: attr(data-tooltip);

  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(.95);

  background: #2f2a25;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;

  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition: all .18s ease;
  z-index: 9999;
}

/* setinha */
#adf-sidebar:not(.is-open) .adf-side-item::before{
  content: "";
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  width: 8px;
  height: 8px;
  background: #2f2a25;

  opacity: 0;
  transition: opacity .18s ease;
}

/* hover mostra */
#adf-sidebar:not(.is-open) .adf-side-item:hover::after,
#adf-sidebar:not(.is-open) .adf-side-item:hover::before{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
