/* Arquivo otimizado a partir de Código colado (3).css.
   Ajustes seguros: normalização de espaçamento, remoção de excesso de linhas em branco e preservação de IDs/classes/ordem da cascata. */

/* =========================================================
   SNDesk Blog CSS
   Parte 3 de 3: admin, editor (Quill), temas, perfil, usuários e modal
   Refatorado em 2026-03-20
   Objetivo: consolidar duplicações e preservar o comportamento visual
   ========================================================= */

/* =========================================================
   1) BASE ADMIN
   ========================================================= */

.btn-logout{
  background:none;
  border:none;
  color:#64748B;
  font-weight:500;
  cursor:pointer;
  padding:0;
  font-size:15px;
  transition:color .2s ease;
}

.btn-logout:hover{
  color:#EF4444;
}

.admin-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:20px;
}

.admin-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:40px 0 25px;
}

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

.admin-buttons{
  display:flex;
  gap:8px;
}

.search-bar-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin:20px 0 30px;
}

.search-input{
  flex:1;
  padding:14px 18px;
  border-radius:12px;
  border:1.5px solid var(--sndesk-border);
  font-size:15px;
  transition:.2s;
}

.search-input:focus{
  outline:none;
  border-color:var(--sndesk-primary);
  box-shadow:0 0 0 4px rgba(34,116,201,.10);
}

.admin-search{
  position:relative;
}

.admin-search input{
  width:320px;
  padding:10px 14px 10px 38px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:14px;
  transition:.25s;
}

.admin-search input:focus{
  outline:none;
  border-color:#3b82f6;
  background:#fff;
  box-shadow:0 0 0 3px rgba(59,130,246,.15);
}

.search-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:14px;
  opacity:.6;
}

.admin-btn{
  background:var(--sndesk-primary-soft);
  color:var(--sndesk-primary);
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  font-size:14px;
  border:1px solid var(--sndesk-primary-soft);
  transition:.2s;
}

.admin-btn:hover{
  background:#fff;
  border-color:var(--sndesk-primary);
}

.admin-btn:active{
  transform:translateY(0);
  box-shadow:none;
}

/* Busca reutilizável */
.admin-search-wrap{
  position:relative;
  width:340px;
  max-width:46vw;
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid var(--sndesk-border);
  border-radius:14px;
  padding:10px 12px 10px 38px;
  box-shadow:0 10px 24px rgba(17,24,39,.04);
  transition:.2s;
}

.admin-search-wrap:focus-within{
  border-color:rgba(34,116,201,.35);
  box-shadow:0 16px 34px rgba(34,116,201,.10);
}

.admin-search-wrap .search-icon{
  left:14px;
  opacity:.55;
  font-size:14px;
}

.admin-search-wrap input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:var(--sndesk-text);
}

.search-clear{
  border:none;
  background:rgba(17,24,39,.06);
  color:rgba(17,24,39,.65);
  width:28px;
  height:28px;
  border-radius:999px;
  display:none;
  cursor:pointer;
  transition:.2s;
}

.search-clear:hover{
  background:rgba(17,24,39,.10);
}

.admin-search-hint{
  display:block;
  margin-top:10px;
}

/* Paginação admin reutilizável */
.admin-pagination{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.admin-pagination-links{
  display:flex;
  align-items:center;
}

.admin-pagination-meta{
  color:var(--sndesk-text-soft);
  font-size:13px;
  font-weight:700;
}

.admin-pagination .pagination{
  margin:0;
  gap:8px;
}

.admin-pagination .page-item .page-link{
  border:1px solid var(--sndesk-border);
  background:#fff;
  color:var(--sndesk-text);
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  font-size:13px;
  min-width:42px;
  text-align:center;
  box-shadow:0 10px 22px rgba(17,24,39,.04);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.admin-pagination .page-item .page-link:hover{
  transform:translateY(-1px);
  border-color:rgba(15,122,222,.28);
  box-shadow:0 16px 34px rgba(34,116,201,.10);
}

.admin-pagination .page-item.active .page-link{
  background:var(--sndesk-primary);
  border-color:var(--sndesk-primary);
  color:#fff;
  box-shadow:0 16px 34px rgba(34,116,201,.18);
}

.admin-pagination .page-item.disabled .page-link{
  opacity:.55;
  pointer-events:none;
  background:rgba(17,24,39,.03);
}

.custom-pagination .pagination{
  gap:8px;
  border:none;
}

.custom-pagination .page-item .page-link{
  border-radius:50% !important;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--sndesk-text-soft);
  border:1px solid var(--sndesk-border);
  background:#fff;
  font-weight:600;
  transition:all .3s ease;
  box-shadow:var(--shadow-soft);
}

.custom-pagination .page-item.active .page-link{
  background:linear-gradient(360deg, var(--sndesk-primary), #50CDF9) !important;
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(15,122,222,.3);
}

.custom-pagination .page-item .page-link:hover{
  background-color:var(--sndesk-primary-soft);
  color:var(--sndesk-primary);
  border-color:var(--sndesk-primary);
  transform:translateY(-2px);
}

.custom-pagination .page-item:first-child .page-link,
.custom-pagination .page-item:last-child .page-link{
  border-radius:12px !important;
  width:auto;
  padding:0 15px;
}

/* Link voltar reutilizável */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  width:fit-content;
  font-family:var(--font-body);
  font-weight:800;
  font-size:14px;
  color:var(--sndesk-text-soft) !important;
  text-decoration:none !important;
  padding:6px 12px;
  border-radius:10px;
  transition:.2s;
  cursor:pointer;
}

.back-link:hover{
  background:var(--sndesk-primary-soft);
  color:var(--sndesk-primary) !important;
  transform:translateX(-3px);
}

.back-link i{
  font-size:12px;
}

/* =========================================================
   2) POSTS ADMIN
   ========================================================= */

.page-posts-admin{
  --pa-bg-1:#f7fbff;
  --pa-bg-2:#ffffff;
  --pa-card:rgba(255,255,255,.88);
  --pa-border:rgba(15,122,222,.12);
  --pa-border-strong:rgba(15,122,222,.20);
  --pa-text:var(--sndesk-text, #0f172a);
  --pa-text-soft:var(--sndesk-text-soft, #64748b);
  --pa-primary:var(--sndesk-primary, #0F7ADE);
  --pa-primary-2:#50CDF9;
  --pa-danger:#ef4444;
  --pa-success:#16a34a;
  --pa-shadow-sm:0 8px 24px rgba(15,23,42,.05);
  --pa-shadow-md:0 18px 45px rgba(15,23,42,.08);
  --pa-shadow-lg:0 28px 70px rgba(15,23,42,.12);
  --pa-radius-xl:24px;
  --pa-radius-lg:18px;
  --pa-radius-md:14px;
  padding-bottom:28px;
}

.page-posts-admin::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at top left, rgba(80,205,249,.14), transparent 30%),
    radial-gradient(circle at top right, rgba(15,122,222,.08), transparent 28%),
    linear-gradient(180deg, var(--pa-bg-1) 0%, var(--pa-bg-2) 60%);
}

.page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child{
  align-items:center !important;
  gap:20px;
  padding:24px 28px;
  margin-bottom:28px !important;
  border:1px solid var(--pa-border);
  border-radius:28px;
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,251,255,.96));
  box-shadow:var(--pa-shadow-md);
  backdrop-filter:blur(12px);
}

.page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > div:first-child h1{
  margin-bottom:6px !important;
  font-family:var(--font-title, inherit);
  font-size:clamp(30px, 3vw, 46px) !important;
  line-height:1.05;
  letter-spacing:-0.03em;
  color:var(--pa-text);
}

.page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > div:first-child p{
  margin-bottom:0;
  color:var(--pa-text-soft) !important;
  font-size:14px;
  font-weight:600;
}

.page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > .d-flex.gap-2{
  gap:10px !important;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > .d-flex.gap-2 a{
  height:44px;
  padding:0 18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  font-size:14px;
  font-weight:800;
  transition:.22s ease;
  border:1px solid transparent;
}

.page-posts-admin .btn.btn-primary{
  color:#fff !important;
  border:0 !important;
  background:linear-gradient(135deg, var(--pa-primary), var(--pa-primary-2)) !important;
  box-shadow:0 16px 36px rgba(15,122,222,.26);
}

.page-posts-admin .btn.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 46px rgba(15,122,222,.30);
  filter:brightness(1.02);
}

.page-posts-admin .btn-sndesk{
  color:var(--pa-primary) !important;
  background:rgba(15,122,222,.07) !important;
  border:1px solid rgba(15,122,222,.14) !important;
  box-shadow:none;
}

.page-posts-admin .btn-sndesk:hover{
  transform:translateY(-2px);
  background:rgba(15,122,222,.11) !important;
  border-color:rgba(15,122,222,.20) !important;
}

.page-posts-admin .admin-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:10px 0 22px;
  padding:0 6px;
}

.page-posts-admin .back-link{
  margin-top:0;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(15,122,222,.08);
  box-shadow:var(--pa-shadow-sm);
}

.page-posts-admin .back-link:hover{
  background:rgba(15,122,222,.07);
  transform:translateX(-2px);
}

.page-posts-admin .admin-search-block{
  min-width:min(100%, 380px);
}

.page-posts-admin .admin-search-wrap{
  width:100%;
  max-width:100%;
  min-height:52px;
  border-radius:18px;
  border:1px solid var(--pa-border);
  background:rgba(255,255,255,.92);
  box-shadow:var(--pa-shadow-sm);
  padding:0 14px 0 44px;
  transition:.2s ease;
}

.page-posts-admin .admin-search-wrap:focus-within{
  border-color:rgba(15,122,222,.26);
  box-shadow:0 0 0 4px rgba(15,122,222,.08), 0 18px 36px rgba(15,122,222,.10);
  transform:translateY(-1px);
}

.page-posts-admin .admin-search-wrap .search-icon{
  left:16px;
  opacity:.55;
}

.page-posts-admin .admin-search-wrap input{
  min-height:50px;
  font-size:14px;
  font-weight:600;
  color:var(--pa-text);
}

.page-posts-admin .admin-search-wrap input::placeholder{
  color:#94a3b8;
}

.page-posts-admin .search-clear{
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:#475569;
}

.page-posts-admin .search-clear:hover{
  background:rgba(15,122,222,.10);
  color:var(--pa-primary);
}

.page-posts-admin .admin-search-hint{
  margin-top:8px;
  font-size:12px;
  font-weight:700;
  color:var(--pa-text-soft) !important;
}

.page-posts-admin .admin-bulkbar{
  position:sticky;
  top:92px;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:14px 0 18px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid var(--pa-border);
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(14px);
  box-shadow:var(--pa-shadow-md);
}

.page-posts-admin .admin-bulk-left,
.page-posts-admin .admin-bulk-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.page-posts-admin .admin-bulk-count{
  font-size:13px;
  color:var(--pa-text-soft);
  font-weight:800;
}

.page-posts-admin .admin-bulk-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,122,222,.06);
  border:1px solid rgba(15,122,222,.10);
  user-select:none;
}

.page-posts-admin .admin-bulk-check input{
  width:18px;
  height:18px;
  border-radius:6px;
  accent-color:var(--pa-primary);
}

.page-posts-admin .btn-bulk-danger,
.page-posts-admin .btn-bulk-ghost{
  height:42px;
  padding:0 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  transition:.2s ease;
}

.page-posts-admin .btn-bulk-danger{
  background:linear-gradient(180deg, #ff5b5b, #ef4444);
  border:1px solid rgba(239,68,68,.28);
  box-shadow:0 14px 28px rgba(239,68,68,.20);
}

.page-posts-admin .btn-bulk-danger:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 20px 34px rgba(239,68,68,.24);
}

.page-posts-admin .btn-bulk-ghost{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
}

.page-posts-admin .btn-bulk-ghost:hover{
  transform:translateY(-2px);
  background:#fff;
}

.page-posts-admin .admin-posts{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:16px;
}

.page-posts-admin .admin-post-card{
  position:relative;
  overflow:hidden;
  padding:20px 22px;
  border-radius:24px;
  border:1px solid var(--pa-border);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,252,255,.92));
  box-shadow:var(--pa-shadow-sm);
  transition:.24s ease;
}

.page-posts-admin .admin-post-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  border-radius:24px 0 0 24px;
  background:linear-gradient(180deg, var(--pa-primary-2), var(--pa-primary));
  opacity:0;
  transition:opacity .2s ease;
}

.page-posts-admin .admin-post-card:hover{
  transform:translateY(-3px);
  border-color:var(--pa-border-strong);
  box-shadow:var(--pa-shadow-lg);
}

.page-posts-admin .admin-post-card:hover::before{
  opacity:1;
}

.page-posts-admin .admin-row-left{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}

.page-posts-admin .row-main{
  min-width:0;
}

.page-posts-admin .post-title{
  display:block;
  max-width:100%;
  font-size:20px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--pa-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.page-posts-admin .post-title:hover{
  color:var(--pa-primary);
}

.page-posts-admin .admin-post-card .badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.03);
}

.page-posts-admin .admin-post-card .badge.bg-light{
  background:#f8fafc !important;
  color:#334155 !important;
  border:1px solid #e2e8f0 !important;
}

.page-posts-admin .admin-post-card .badge.bg-success{
  background:rgba(22,163,74,.10) !important;
  color:var(--pa-success) !important;
  border:1px solid rgba(22,163,74,.16) !important;
}

.page-posts-admin .row-check{
  position:relative;
  width:24px;
  height:24px;
  flex:0 0 24px;
  margin:0;
  cursor:pointer;
}

.page-posts-admin .row-check input{
  position:absolute;
  inset:0;
  opacity:0;
  margin:0;
  cursor:pointer;
}

.page-posts-admin .row-check-ui{
  position:absolute;
  inset:0;
  border-radius:8px;
  border:1px solid rgba(15,122,222,.22);
  background:linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  transition:.18s ease;
}

.page-posts-admin .row-check-ui::after{
  content:"";
  position:absolute;
  left:7px;
  top:4px;
  width:6px;
  height:11px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(45deg) scale(0);
  transition:.15s ease;
}

.page-posts-admin .row-check input:checked + .row-check-ui{
  background:linear-gradient(180deg, var(--pa-primary-2), var(--pa-primary));
  border-color:rgba(15,122,222,.30);
  box-shadow:0 14px 24px rgba(15,122,222,.18);
}

.page-posts-admin .row-check input:checked + .row-check-ui::after{
  transform:rotate(45deg) scale(1);
}

.page-posts-admin .row-check input:focus-visible + .row-check-ui{
  box-shadow:0 0 0 4px rgba(15,122,222,.10), 0 12px 24px rgba(15,122,222,.12);
}

.page-posts-admin .admin-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-posts-admin .admin-actions form{
  margin:0;
}

.page-posts-admin .admin-actions .action-edit,
.page-posts-admin .admin-actions .action-delete{
  height:40px;
  padding:0 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  border:1px solid transparent;
  transition:.2s ease;
}

.page-posts-admin .admin-actions .action-edit{
  color:#0f172a;
  background:linear-gradient(180deg, #f8fafc, #eef2f7);
  border-color:#e2e8f0;
}

.page-posts-admin .admin-actions .action-edit:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg, #ffffff, #e9eef5);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}

.page-posts-admin .admin-actions .action-delete{
  color:#dc2626;
  background:linear-gradient(180deg, rgba(239,68,68,.06), rgba(239,68,68,.10));
  border-color:rgba(239,68,68,.16);
}

.page-posts-admin .admin-actions .action-delete:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg, rgba(239,68,68,.10), rgba(239,68,68,.14));
  box-shadow:0 12px 28px rgba(239,68,68,.14);
}

.page-posts-admin .admin-pagination{
  margin-top:24px;
  padding:16px 6px 4px;
  gap:16px;
}

.page-posts-admin .admin-pagination-meta{
  font-size:13px;
  font-weight:800;
  color:var(--pa-text-soft);
}

.page-posts-admin .admin-pagination .pagination{
  gap:8px;
}

.page-posts-admin .admin-pagination .page-link{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.95);
  color:var(--pa-text);
  font-size:13px;
  font-weight:900;
  box-shadow:var(--pa-shadow-sm);
  transition:.2s ease;
}

.page-posts-admin .admin-pagination .page-link:hover{
  transform:translateY(-2px);
  border-color:rgba(15,122,222,.18);
  color:var(--pa-primary);
}

.page-posts-admin .admin-pagination .page-item.active .page-link{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--pa-primary), var(--pa-primary-2));
  box-shadow:0 18px 30px rgba(15,122,222,.22);
}

.page-posts-admin .text-center.py-5.text-muted{
  padding:56px 20px !important;
  border:1px dashed rgba(15,122,222,.16);
  border-radius:22px;
  background:rgba(255,255,255,.70);
  color:var(--pa-text-soft) !important;
  font-weight:700;
}

/* =========================================================
   3) CARDS ADMIN GENÉRICOS
   ========================================================= */

.admin-posts{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:22px;
}

.admin-post-card{
  background:var(--sndesk-surface);
  border:1px solid var(--sndesk-border);
  border-radius:var(--radius-xl);
  padding:18px 18px 18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow:0 1px 0 rgba(17,24,39,.02);
  transition:.22s;
}

.admin-post-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(17,24,39,.06);
  border-color:rgba(34,116,201,.20);
}

.admin-post-card .post-title{
  font-size:16px;
  font-weight:800;
  color:var(--sndesk-text);
  letter-spacing:-0.01em;
  text-decoration:none;
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.admin-post-card .post-title:hover{
  color:var(--sndesk-primary);
  text-decoration:none;
}

.admin-post-card .badge{
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
  font-size:12px;
}

.admin-row-left{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

/* Row-check genérico somente quando não existir .row-check-ui interno */
.row-check:not(:has(.row-check-ui)){
  position:relative;
  width:22px;
  height:22px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  border:1px solid rgba(15,122,222,.22);
  background:rgba(255,255,255,.9);
  box-shadow:0 6px 18px rgba(2,14,28,.05);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.admin-post-card:hover .row-check:not(:has(.row-check-ui)){
  border-color:rgba(15,122,222,.35);
  box-shadow:0 10px 26px rgba(2,14,28,.07);
  transform:translateY(-1px);
}

.row-check:not(:has(.row-check-ui)) input[type="checkbox"]{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

.row-check:not(:has(.row-check-ui))::after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:10px;
  height:6px;
  border-left:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(-45deg) scale(0);
  transform-origin:center;
  transition:transform .12s ease;
}

.row-check:not(:has(.row-check-ui)):has(input:checked){
  background:linear-gradient(180deg, var(--sndesk-primary, #0F7ADE), rgba(80,205,249,.92));
  border-color:rgba(15,122,222,.45);
}

.row-check:not(:has(.row-check-ui)):has(input:checked)::after{
  transform:rotate(-45deg) scale(1);
}

.row-check:not(:has(.row-check-ui)):has(input:focus-visible){
  outline:none;
  box-shadow:0 0 0 4px rgba(15,122,222,.14), 0 10px 26px rgba(2,14,28,.07);
}

.admin-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.admin-actions a,
.admin-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  transition:.2s;
}

.admin-actions a:hover,
.admin-actions button:hover{
  transform:translateY(-1px);
  text-decoration:none;
}

.admin-actions .action-edit{
  color:#111827;
  background:#f3f4f6;
  border-color:#eef2f7;
}

.admin-actions .action-edit:hover{
  background:#e9eef6;
}

.admin-actions .action-delete{
  color:#dc2626;
  background:rgba(220,38,38,.08);
  border-color:rgba(220,38,38,.12);
}

.admin-actions .action-delete:hover{
  background:rgba(220,38,38,.14);
}

.admin-bulkbar{
  position:sticky;
  top:86px;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:14px 0 18px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(15,122,222,.14);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
  box-shadow:0 22px 60px rgba(2,14,28,.08);
}

.admin-bulk-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.admin-bulk-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--sndesk-text);
  user-select:none;
}

.admin-bulk-check input{
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid rgba(15,122,222,.22);
  accent-color:var(--sndesk-primary);
}

.admin-bulk-count{
  color:var(--sndesk-text-soft);
  font-weight:800;
  font-size:13px;
}

.admin-bulk-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn-bulk-danger{
  border:1px solid rgba(239,68,68,.35);
  background:#ef4444;
  color:#fff;
  border-radius:999px;
  height:40px;
  padding:0 16px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(239,68,68,.18);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-bulk-danger:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(239,68,68,.22);
}

.btn-bulk-danger:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn-bulk-ghost{
  border:1px solid rgba(17,24,39,.12);
  background:rgba(255,255,255,.9);
  color:var(--sndesk-text);
  border-radius:999px;
  height:40px;
  padding:0 14px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease;
}

.btn-bulk-ghost:hover{
  transform:translateY(-1px);
  background:rgba(17,24,39,.03);
}

/* =========================================================
   4) TEMAS
   ========================================================= */

.era-filter-wrapper{
  display:flex;
  justify-content:center;
  margin:48px 0 56px;
}

.era-filter{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border:1px solid #dadce0;
  border-radius:999px;
  background:#fff;
}

.era-pill{
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  color:#3c4043;
  background:transparent;
  transition:background-color .25s ease, color .25s ease;
}

.era-pill,
.era-pill:hover,
.era-pill:focus,
.era-pill:active,
.era-pill:visited{
  text-decoration:none !important;
  outline:none;
  box-shadow:none;
}

.era-pill:hover{
  background:#dddddd;
  color:#202124;
}

.era-pill.active{
  background:#202124;
  color:#fff;
}

.era-pill.active:hover{
  background:#8d8d8d;
}

.page-themes-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.page-themes-header > div{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.page-themes-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:6px 10px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  color:var(--sndesk-text-soft) !important;
  background:transparent;
  text-decoration:none !important;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}

.page-themes-back:hover{
  background:var(--sndesk-primary-soft);
  color:var(--sndesk-primary) !important;
  transform:translateX(-1px);
}

.page-themes-cta{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:var(--sndesk-primary) !important;
  color:#fff !important;
  font-weight:800;
  font-size:14px;
  text-decoration:none !important;
  box-shadow:0 12px 24px rgba(15,122,222,.18);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}

.page-themes-cta:hover{
  background:var(--sndesk-primary-600) !important;
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(15,122,222,.22);
}

.page-themes .themes-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px;
}

.page-themes .theme-row{
  background:#fff;
  border:1px solid var(--sndesk-border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 14px 30px rgba(44,62,80,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.page-themes .theme-row:hover{
  transform:translateY(-1px);
  border-color:rgba(15,122,222,.25);
  box-shadow:0 18px 40px rgba(44,62,80,.09);
}

.page-themes .theme-name{
  font-family:var(--font-title);
  font-weight:700;
  font-size:18px;
  color:var(--sndesk-text);
  letter-spacing:-0.01em;
}

.page-themes .theme-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.page-themes .theme-actions a,
.page-themes .theme-actions button{
  border:1px solid transparent;
  border-radius:999px;
  padding:9px 12px;
  font-weight:800;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.page-themes .theme-actions a:hover,
.page-themes .theme-actions button:hover{
  transform:translateY(-1px);
}

.page-themes .action-posts{
  background:#eaf3ff;
  color:var(--sndesk-primary);
  border-color:rgba(15,122,222,.18);
}

.page-themes .action-posts:hover{
  background:#ddebff;
}

.page-themes .action-edit{
  background:#f3f5f9;
  color:#2c3e50;
  border-color:rgba(44,62,80,.10);
}

.page-themes .action-edit:hover{
  background:#eceff5;
}

.page-themes .action-delete{
  background:#fff1f1;
  color:#d12a2a;
  border-color:rgba(209,42,42,.18);
}

.page-themes .action-delete:hover{
  background:#ffe7e7;
}

.theme-form-card{
  background:var(--sndesk-surface);
  border:1px solid var(--sndesk-border);
  border-radius:18px;
  padding:26px;
  box-shadow:0 16px 40px rgba(17,24,39,.06);
  max-width:760px;
}

.theme-field{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.theme-label{
  font-weight:700;
  font-size:13px;
  color:var(--sndesk-text);
  letter-spacing:.2px;
}

.theme-input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1.5px solid var(--sndesk-border);
  background:#fff;
  font-size:15px;
  transition:.2s;
}

.theme-input:focus{
  outline:none;
  border-color:rgba(34,116,201,.45);
  box-shadow:0 0 0 4px rgba(34,116,201,.12);
}

.theme-input.is-invalid{
  border-color:rgba(220,38,38,.45);
  box-shadow:0 0 0 4px rgba(220,38,38,.10);
}

.theme-error{
  color:#dc2626;
  font-weight:600;
  font-size:13px;
}

.theme-form-actions{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.theme-cancel{
  color:var(--sndesk-text-soft);
  font-weight:700;
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  transition:.2s;
}

.theme-cancel:hover{
  background:rgba(17,24,39,.06);
  color:var(--sndesk-text);
}

.admin-surface-card{
  background:#ffffff;
  border:1px solid #eef2f6;
  border-radius:24px;
  padding:32px;
  box-shadow:0 10px 25px -5px rgba(0,0,0,.02), 0 8px 10px -6px rgba(0,0,0,.02);
}

.theme-post-list{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:16px;
  margin-top:24px;
}

.theme-post-item{
  position:relative;
  display:flex;
  align-items:center;
  padding:18px 22px;
  background:#ffffff;
  border:1.5px solid #f1f5f9;
  border-radius:16px;
  cursor:pointer;
  transition:all .2s cubic-bezier(.4, 0, .2, 1);
}

.theme-post-item:hover{
  border-color:#cbd5e1;
  background:#fafafa;
  transform:translateY(-1px);
}

.theme-post-item:has(input:checked){
  background:#f0f7ff;
  border-color:#3b82f6;
}

.theme-post-item input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:22px;
  height:22px;
  border:2px solid #cbd5e1;
  border-radius:8px;
  margin-right:14px;
  background:#fff;
  cursor:pointer;
  transition:all .2s ease;
  flex-shrink:0;
  display:grid;
  place-content:center;
}

.theme-post-item input[type="checkbox"]::before{
  content:"";
  width:12px;
  height:12px;
  transform:scale(0);
  transition:120ms transform ease-in-out;
  box-shadow:inset 1em 1em #ffffff;
  background-color:CanvasText;
  clip-path:polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.theme-post-item input[type="checkbox"]:checked{
  background-color:#3b82f6;
  border-color:#3b82f6;
}

.theme-post-item input[type="checkbox"]:checked::before{
  transform:scale(1);
}

.theme-post-item .post-title{
  font-weight:600;
  color:#1e293b;
  font-size:.95rem;
  line-height:1.4;
  letter-spacing:-0.01em;
}

.post-badge{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:4px 10px;
  background:#f1f5f9;
  color:#64748b;
  border-radius:8px;
  margin-left:auto;
}

.theme-post-item:has(input:checked) .post-badge{
  background:#dbeafe;
  color:#1d4ed8;
}

/* =========================================================
   5) EDITOR DE POSTS / QUILL
   ========================================================= */

.post-editor-page{
  --sndesk-primary:var(--sndesk-primary, #0F7ADE);
  --sndesk-primary-dark:var(--sndesk-primary-dark, #50CDF9);
  --sndesk-primary-soft:var(--sndesk-primary-soft, #E7F3FE);
  --surface:#ffffff;
  --text:#0b1220;
  --muted:#64748b;
  --radius-lg:18px;
  --radius-md:14px;
  --border:rgba(15,122,222,.14);
  --border-strong:rgba(15,122,222,.22);
  --shadow:0 18px 55px rgba(2,14,28,.06);
  --shadow-hover:0 26px 75px rgba(2,14,28,.10);
}

.post-editor-page h1{
  color:var(--text);
  font-weight:900;
  letter-spacing:-.4px;
}

.post-editor-page .text-muted,
.post-editor-page small.text-muted{
  color:var(--muted) !important;
}

.post-editor-page .form-control{
  border-radius:var(--radius-md);
  border:1px solid var(--border-strong);
  background:var(--surface);
  transition:box-shadow .15s ease, border-color .15s ease;
}

.post-editor-page .form-control:focus{
  border-color:rgba(15,122,222,.55);
  box-shadow:0 0 0 .22rem rgba(15,122,222,.16);
}

.post-editor-page .col-lg-4 .card{
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  background:var(--surface);
}

.post-editor-page .upload-box{
  border-radius:16px;
  border:1px dashed rgba(15,122,222,.35);
  background:
    radial-gradient(80% 90% at 30% 20%, rgba(80,205,249,.18) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--sndesk-primary-soft) 120%);
  min-height:200px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.post-editor-page .upload-box:hover{
  transform:translateY(-1px);
  border-color:rgba(15,122,222,.55);
  box-shadow:var(--shadow-hover);
}

.post-editor-page #previewImagem{
  border-radius:14px;
  border:1px solid rgba(15,122,222,.14);
  box-shadow:0 16px 42px rgba(2,14,28,.10);
}

.post-editor-page .editor-wrapper{
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  padding:18px;
}

.post-editor-page .ql-toolbar.ql-snow{
  border-radius:14px 14px 0 0;
  border:1px solid var(--border-strong);
  background:linear-gradient(180deg, #fff 0%, rgba(231,243,254,.75) 100%);
  top:90px;
  z-index:100;
}

.post-editor-page .ql-container.ql-snow{
  border:1px solid var(--sndesk-border);
  border-top:0;
  border-radius:0 0 14px 14px;
  background:#fff;
  min-height:320px;
}

.post-editor-page .ql-container.ql-snow:focus-within{
  border-color:rgba(15,122,222,.55);
  box-shadow:0 0 0 .22rem rgba(15,122,222,.16);
}

.post-editor-page .ql-editor{
  min-height:380px;
  max-height:65vh;
  overflow-y:auto;
  padding:24px;
  font-size:16px;
  line-height:1.85;
  color:#0b1220;
}

.post-editor-page .ql-editor.ql-blank::before{
  color:#9ca3af;
  font-style:normal;
}

.post-editor-page .ql-editor::-webkit-scrollbar{
  width:6px;
}

.post-editor-page .ql-editor::-webkit-scrollbar-track{
  background:transparent;
}

.post-editor-page .ql-editor::-webkit-scrollbar-thumb{
  background-color:rgba(15,122,222,.3);
  border-radius:10px;
}

.post-editor-page .ql-toolbar button,
.post-editor-page .ql-toolbar .ql-picker-label{
  width:36px;
  height:36px;
  padding:0;
  margin:0 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  line-height:1;
}

.post-editor-page .ql-toolbar button:hover,
.post-editor-page .ql-toolbar .ql-picker-label:hover{
  background:rgba(15,122,222,.08);
}

.post-editor-page .ql-toolbar button svg,
.post-editor-page .ql-toolbar .ql-picker-label svg{
  width:18px;
  height:18px;
  display:block;
}

.post-editor-page .ql-color-picker .ql-picker-label svg,
.post-editor-page .ql-background .ql-picker-label svg,
.post-editor-page .ql-align.ql-picker .ql-picker-label svg{
  width:22px;
  height:22px;
}

.post-editor-page .ql-picker-options{
  margin-top:15px !important;
  border-radius:10px;
  border:1px solid var(--sndesk-border);
  box-shadow:0 10px 24px rgba(17,24,39,.12);
}

.post-editor-page .ql-toolbar.ql-snow .ql-picker.ql-header{
  width:132px;
}

.post-editor-page .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label{
  width:100% !important;
  height:32px;
  padding:0 28px 0 12px !important;
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
}

.post-editor-page .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label::before{
  color:var(--sndesk-text) !important;
  opacity:1 !important;
  font-weight:700;
  font-size:13px;
  line-height:1;
}

.post-editor-page .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options{
  min-width:180px;
}

.post-editor-page #conteudoCounter{
  font-weight:800;
  color:var(--sndesk-primary);
}

.post-editor-page .btn.btn-primary{
  border:0;
  border-radius:999px;
  font-weight:900;
  padding:10px 18px;
  background:linear-gradient(180deg, var(--sndesk-primary-dark) 0%, var(--sndesk-primary) 100%);
  box-shadow:0 16px 40px rgba(15,122,222,.26);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.post-editor-page .btn.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 22px 60px rgba(15,122,222,.32);
  filter:brightness(1.02);
}

.post-editor-page .btn.btn-primary:active{
  transform:translateY(0);
  box-shadow:0 14px 34px rgba(15,122,222,.22);
}

.post-editor-page a.text-muted{
  color:var(--muted) !important;
  font-weight:700;
}

.post-editor-page a.text-muted:hover{
  color:var(--sndesk-primary) !important;
}

.ql-editor img{
  cursor:pointer;
}

.ql-image-resize-handler{
  background-color:#0F7ADE !important;
}

.post-content .ql-align-center{
  text-align:center;
}

.post-content .ql-align-right{
  text-align:right;
}

.post-content .ql-align-justify{
  text-align:justify;
}

.post-content img.ql-align-center{
  display:block;
  margin:0 auto;
}

/* =========================================================
   6) PERFIL
   ========================================================= */

.page-profile{
  background:var(--sndesk-bg);
  padding:34px 0 70px;
}

.page-profile .container{
  max-width:920px;
}

.profile-card{
  background:var(--sndesk-surface);
  border:1px solid var(--sndesk-border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-soft);
  padding:28px;
}

.profile-title{
  margin:0;
  font-size:42px;
  line-height:1.15;
  letter-spacing:-0.03em;
  font-family:var(--font-title);
  color:var(--sndesk-text);
}

.profile-subtitle{
  color:var(--sndesk-text-soft);
  margin-top:6px;
  font-size:14px;
}

.profile-section{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--sndesk-border);
}

.profile-section:first-of-type{
  border-top:none;
  padding-top:0;
}

.profile-section-title{
  margin:0 0 12px;
  font-size:16px;
  font-weight:800;
  color:#111827;
  letter-spacing:-0.01em;
}

.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.profile-grid.one{
  grid-template-columns:1fr;
}

.profile-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.profile-label{
  font-weight:500;
  font-size:13px;
  color:#111827;
}

.profile-help{
  font-size:12px;
  color:var(--sndesk-text-soft);
  margin-top:-2px;
}

.profile-input,
.profile-textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1.5px solid var(--sndesk-border);
  background:#fff;
  font-size:14px;
  transition:.2s;
}

.profile-input:focus,
.profile-textarea:focus{
  outline:none;
  border-color:rgba(34,116,201,.45);
  box-shadow:0 0 0 4px rgba(34,116,201,.12);
}

.profile-textarea{
  min-height:120px;
  resize:vertical;
}

.profile-error{
  color:#dc2626;
  font-weight:600;
  font-size:13px;
}

.profile-counter{
  margin-top:6px;
  font-size:12px;
  color:var(--sndesk-text-soft);
}

.profile-actions{
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.profile-btn-primary{
  background:var(--sndesk-primary);
  color:#fff;
  border:none;
  border-radius:999px;
  padding:11px 18px;
  font-weight:800;
  font-size:14px;
  box-shadow:0 12px 26px rgba(34,116,201,.18);
  transition:.2s;
}

.profile-btn-primary:hover{
  background:var(--sndesk-primary-dark);
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(34,116,201,.24);
}

.profile-btn-ghost{
  background:transparent;
  border:1px solid rgba(17,24,39,.12);
  color:#111827;
  border-radius:999px;
  padding:11px 16px;
  font-weight:800;
  font-size:14px;
  transition:.2s;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.profile-btn-ghost:hover{
  background:rgba(17,24,39,.05);
  transform:translateY(-1px);
}

.page-profile .user-profile-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.page-profile .user-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(34,116,201,.10);
  color:var(--sndesk-primary);
  border:1px solid rgba(34,116,201,.14);
}

.page-profile .user-email{
  color:var(--sndesk-text-soft);
  font-size:13px;
  margin-top:2px;
}

.user-divider{
  height:1px;
  background:var(--sndesk-border);
  margin:14px 0;
}

.user-kv{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.user-kv .kv-item{
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:12px 14px;
}

.kv-label{
  font-size:12px;
  font-weight:800;
  color:#111827;
  margin-bottom:4px;
}

.kv-value{
  font-size:14px;
  color:#111827;
  font-weight:650;
}

.user-about{
  margin-top:14px;
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:14px;
  color:#111827;
  line-height:1.7;
}

.mini-profile-hero{
  height:86px;
  background:linear-gradient(90deg, var(--sndesk-primary), #4f8fe0);
  border-radius:18px 18px 0 0;
}

.mini-profile-card{
  background:#fff;
  border:1px solid var(--sndesk-border);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.mini-profile-body{
  padding:18px 18px 16px;
  text-align:center;
}

.mini-avatar{
  width:72px;
  height:72px;
  border-radius:50% !important;
  background:#fff;
  border:4px solid #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden !important;
  margin:-46px auto 8px;
  box-shadow:0 14px 30px rgba(17,24,39,.12);
  flex-shrink:0;
}

.mini-avatar img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.mini-name{
  font-family:var(--font-title);
  font-size:20px;
  font-weight:900;
  margin:0;
}

.mini-bio{
  margin:10px auto 12px;
  max-width:340px;
  color:var(--sndesk-text-soft);
  line-height:1.6;
  font-size:13px;
}

.mini-meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.mini-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#f3f4f6;
  border:1px solid #eef2f7;
  color:#111827;
}

/* Header + avatar do perfil */
.page-profile .profile-card > .mb-3{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:24px !important;
  flex-wrap:wrap !important;
}

.page-profile .profile-card .back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  width:fit-content;
  font-weight:800;
  font-size:14px;
  color:var(--sndesk-text-soft);
  text-decoration:none;
  padding:6px 10px;
  border-radius:10px;
  transition:.2s;
}

.page-profile .profile-card .back-link:hover{
  background:var(--sndesk-primary-soft);
  color:var(--sndesk-primary);
}

.page-profile .profile-card .profile-avatar-wrap{
  flex:0 0 auto;
}

.page-profile .profile-card .profile-avatar-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:#fff;
  border:1px solid rgba(15,122,222,.18);
  border-radius:16px;
  box-shadow:0 14px 30px rgba(17,24,39,.06);
}

.page-profile .profile-card .profile-avatar-preview{
  width:56px;
  height:56px;
  border-radius:999px;
  overflow:hidden;
  background:#f3f6ff;
  border:1px solid rgba(15,122,222,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.page-profile .profile-card .profile-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-profile .profile-card .profile-avatar-initial{
  font-weight:900;
  font-size:18px;
  color:#111827;
}

.page-profile .profile-card .profile-avatar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-profile .profile-card .profile-avatar-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:999px;
  border:0;
  background:var(--sndesk-primary);
  color:#fff;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(34,116,201,.18);
  transition:.2s;
}

.page-profile .profile-card .profile-avatar-btn:hover{
  background:var(--sndesk-primary-dark);
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(34,116,201,.22);
}

.page-profile .profile-card .profile-avatar-remove{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(220,38,38,.18);
  background:rgba(220,38,38,.06);
  color:#b4232a;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  transition:.2s;
}

.page-profile .profile-card .profile-avatar-remove:hover{
  background:rgba(220,38,38,.10);
  transform:translateY(-1px);
}

.page-profile .profile-card .profile-avatar-remove input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#ef4444;
}

.page-profile .profile-card .profile-avatar-hint{
  font-size:12px;
  color:var(--sndesk-text-soft);
  white-space:nowrap;
  margin-left:4px;
}

/* Avatar genérico editável */
.profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:10px;
}

.profile-head-left{
  min-width:0;
}

.profile-avatar-wrap{
  flex:0 0 auto;
}

.profile-avatar-box{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--sndesk-border);
  background:#fff;
  box-shadow:0 14px 30px rgba(17,24,39,.06);
}

.profile-avatar-preview{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.08);
  background:rgba(17,24,39,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}

.profile-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-avatar-initial{
  font-weight:900;
  color:#111827;
}

.profile-avatar-actions{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:260px;
}

.profile-avatar-actions .profile-avatar-btn,
.profile-avatar-actions .profile-avatar-remove-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  border:1px solid transparent;
  transition:.2s;
  user-select:none;
  text-decoration:none;
}

.profile-avatar-actions .profile-avatar-btn{
  background:var(--sndesk-primary);
  color:#fff;
  box-shadow:0 10px 22px rgba(34,116,201,.16);
}

.profile-avatar-actions .profile-avatar-btn:hover{
  background:var(--sndesk-primary-dark);
  transform:translateY(-1px);
}

.profile-avatar-actions .profile-avatar-remove-btn{
  background:rgba(220,38,38,.08);
  color:#dc2626;
  border-color:rgba(220,38,38,.14);
}

.profile-avatar-actions .profile-avatar-remove-btn:hover{
  background:rgba(220,38,38,.14);
  transform:translateY(-1px);
}

.profile-avatar-hint,
.profile-avatar-actions .profile-error{
  flex:1 0 100%;
}

.profile-avatar-hint{
  font-size:12px;
  color:var(--sndesk-text-soft);
  margin-top:2px;
}

/* =========================================================
   7) USUÁRIOS
   ========================================================= */

.page-users{
  background:var(--sndesk-bg);
  padding:22px 0 70px;
}

.users-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px 0 22px;
}

.users-search{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:460px;
  max-width:55vw;
  background:#fff;
  border:1px solid var(--sndesk-border);
  border-radius:14px;
  padding:10px 12px 10px 38px;
  box-shadow:0 10px 24px rgba(17,24,39,.04);
  transition:.2s;
}

.users-search:focus-within{
  border-color:rgba(34,116,201,.35);
  box-shadow:0 16px 34px rgba(34,116,201,.10);
}

.users-search .search-icon{
  left:14px;
  opacity:.55;
  font-size:14px;
}

.users-search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:var(--sndesk-text);
}

.users-search-btn{
  border:none;
  cursor:pointer;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  color:#fff;
  background:var(--sndesk-primary);
  transition:.2s;
  box-shadow:0 10px 22px rgba(34,116,201,.18);
}

.users-search-btn:hover{
  background:var(--sndesk-primary-dark);
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(34,116,201,.22);
}

.page-users .alert{
  border-radius:14px;
  border:1px solid var(--sndesk-border);
  box-shadow:0 10px 24px rgba(17,24,39,.04);
}

.user-row{
  border-radius:18px;
  border-color:var(--sndesk-border);
}

.user-info{
  min-width:0;
}

.user-name{
  font-weight:800;
  color:var(--sndesk-text);
  text-decoration:none;
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.user-name:hover{
  color:var(--sndesk-primary);
  text-decoration:none;
}

.page-users .user-email{
  color:var(--sndesk-text-soft);
  font-size:13px;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:520px;
}

.user-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.page-users .user-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(34,116,201,.10);
  color:var(--sndesk-primary);
  border:1px solid rgba(34,116,201,.14);
}

.user-pill--default{
  background:rgba(17,24,39,.06);
  border-color:rgba(17,24,39,.08);
  color:rgba(17,24,39,.75);
}

.user-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  transition:.2s;
  text-decoration:none;
}

.user-chip:hover{
  transform:translateY(-1px);
  text-decoration:none;
}

.user-chip--edit{
  color:#111827;
  background:#f3f4f6;
  border-color:#eef2f7;
}

.user-chip--edit:hover{
  background:#e9eef6;
}

.user-chip--warn{
  color:#b45309;
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.18);
}

.user-chip--warn:hover{
  background:rgba(245,158,11,.18);
}

.user-chip--danger{
  color:#dc2626;
  background:rgba(220,38,38,.08);
  border-color:rgba(220,38,38,.12);
}

.user-chip--danger:hover{
  background:rgba(220,38,38,.14);
}

.page-users .pagination{
  gap:6px;
}

.page-users .page-link{
  border-radius:12px !important;
  border:1px solid var(--sndesk-border);
  color:var(--sndesk-text);
}

.page-users .page-item.active .page-link{
  background:var(--sndesk-primary);
  border-color:var(--sndesk-primary);
}

/* =========================================================
   8) MODAL SNDesk
   ========================================================= */

.sndesk-modal-backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(17,24,39,.55);
  z-index:2000;
}

.sndesk-modal-backdrop.show{
  display:flex;
}

body.sndesk-modal-open{
  overflow:hidden;
}

.sndesk-modal{
  width:min(560px, 100%);
  background:var(--sndesk-surface);
  border:1px solid var(--sndesk-border);
  border-radius:var(--radius-xl);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  overflow:hidden;
}

.sndesk-modal-head{
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px 18px;
  border-bottom:1px solid var(--sndesk-border);
}

.sndesk-modal-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(15,122,222,.08);
  font-size:22px;
}

.sndesk-modal-title{
  font-weight:900;
  color:var(--sndesk-text);
}

.sndesk-modal-subtitle{
  font-size:13px;
  color:var(--sndesk-text-soft);
}

.sndesk-modal-titles{
  flex:1;
  min-width:0;
}

.sndesk-modal-x{
  border:0;
  background:transparent;
  font-size:18px;
  color:var(--sndesk-text-soft);
  width:38px;
  height:38px;
  border-radius:12px;
}

.sndesk-modal-x:hover{
  background:rgba(17,24,39,.06);
  color:var(--sndesk-text);
}

.sndesk-modal-body{
  padding:16px 18px 6px;
}

.sndesk-modal-warning{
  font-size:13px;
  color:#b45309;
  background:rgba(250,204,21,.14);
  border:1px solid rgba(250,204,21,.25);
  padding:10px 12px;
  border-radius:14px;
}

.sndesk-modal-postname{
  margin-top:10px;
  font-weight:800;
  color:var(--sndesk-text);
}

.sndesk-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 18px 18px;
}

.btn-sndesk-ghost{
  border:1px solid var(--sndesk-border);
  background:#fff;
  color:var(--sndesk-text);
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
}

.btn-sndesk-ghost:hover{
  background:rgba(17,24,39,.05);
}

.btn-sndesk-danger{
  border:1px solid rgba(239,68,68,.35);
  background:#ef4444;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
}

.btn-sndesk-danger:hover{
  filter:brightness(.95);
}

/* =========================================================
   9) ADMIN HEART
   ========================================================= */

.admin-heart-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(31,111,235,.35);
  background:rgba(31,111,235,.08);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.admin-heart-btn:hover{
  transform:translateY(-1px);
  background:rgba(15,122,222,.14);
  border-color:rgba(15,122,222,.30);
}

.admin-heart-btn:active{
  transform:translateY(0);
}

.admin-heart-btn.loading{
  opacity:.7;
  pointer-events:none;
}

.admin-heart-btn .heart-icon{
  font-size:15px;
  line-height:1;
  color:var(--sndesk-primary);
  display:inline-block;
  will-change:transform;
}

.admin-heart-btn.liked{
  background:rgba(15,122,222,.16);
  border-color:rgba(15,122,222,.35);
}

.admin-heart-btn.liked .heart-icon{
  color:var(--sndesk-primary);
}

.admin-heart-btn.is-pulsing{
  animation:sndesk-heart-pulse .18s ease-out;
}

.admin-heart-btn.is-pulsing .heart-icon{
  animation:sndesk-heart-pop .22s ease-out;
}

.admin-heart-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(15,122,222,.22);
  background:rgba(15,122,222,.10);
  color:rgba(15,122,222,.98);
  font-weight:800;
  font-size:13px;
  opacity:0;
  transform:translateY(6px) scale(.98);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.admin-heart-label.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.admin-heart-label.hiding{
  opacity:0;
  transform:translateY(6px) scale(.98);
}

@keyframes sndesk-heart-pop{
  0%{ transform:scale(1); }
  55%{ transform:scale(1.35); }
  100%{ transform:scale(1); }
}

@keyframes sndesk-heart-pulse{
  0%{ transform:scale(1); }
  60%{ transform:scale(1.18); }
  100%{ transform:scale(1); }
}

/* =========================================================
   10) RESPONSIVO
   ========================================================= */

@media (max-width: 1100px){
  .page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child{
    flex-direction:column;
    align-items:flex-start !important;
  }

  .page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > .d-flex.gap-2{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 768px){
  .admin-pagination,
  .users-toolbar,
  .admin-post-card.user-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .admin-search-wrap,
  .users-search{
    width:100%;
    max-width:100%;
  }

  .admin-post-card,
  .page-themes .theme-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-actions,
  .page-themes .theme-actions,
  .user-actions{
    width:100%;
    justify-content:flex-start;
  }

  .page-themes .theme-actions{
    flex-wrap:wrap;
  }

  .page-themes .container{
    padding:0 18px;
  }

  .page-themes-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .page-themes-title{
    font-size:36px;
  }

  .theme-post-item{
    align-items:flex-start;
  }

  .theme-post-left{
    width:100%;
  }

  .theme-post-item .post-badge{
    margin-left:0;
    margin-top:10px;
  }

  .theme-form-card,
  .profile-card{
    padding:18px;
  }

  .theme-form-actions,
  .profile-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .theme-form-actions .btn-sndesk,
  .profile-btn-primary,
  .profile-btn-ghost{
    width:100%;
    justify-content:center;
  }

  .theme-cancel{
    text-align:center;
  }

  .profile-title{
    font-size:34px;
  }

  .profile-grid,
  .user-kv{
    grid-template-columns:1fr;
  }

  .page-users .user-email{
    max-width:100%;
  }

  .admin-bulkbar{
    top:74px;
    flex-direction:column;
    align-items:flex-start;
  }

  .admin-bulk-actions{
    width:100%;
  }

  .btn-bulk-danger,
  .btn-bulk-ghost{
    width:100%;
    justify-content:center;
  }

  .profile-head{
    flex-direction:column;
    align-items:stretch;
  }

  .profile-avatar-box{
    width:100%;
  }

  .profile-avatar-actions{
    min-width:0;
    width:100%;
  }

  .page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child{
    padding:20px 18px;
    border-radius:22px;
  }

  .page-posts-admin > .d-flex.align-items-center.justify-content-between.mb-4:first-child > div:first-child h1{
    font-size:34px !important;
  }

  .page-posts-admin .admin-toolbar{
    flex-direction:column;
    align-items:stretch;
    padding:0;
  }

  .page-posts-admin .admin-search-block{
    min-width:100%;
  }

  .page-posts-admin .admin-post-card{
    padding:18px;
    border-radius:20px;
    align-items:flex-start;
    flex-direction:column;
  }

  .page-posts-admin .post-title{
    font-size:18px;
    white-space:normal;
    overflow:visible;
    text-overflow:initial;
  }

  .page-posts-admin .admin-actions{
    width:100%;
    justify-content:flex-start;
  }

  .page-posts-admin .admin-bulkbar{
    top:76px;
    flex-direction:column;
    align-items:stretch;
  }

  .page-posts-admin .admin-bulk-left,
  .page-posts-admin .admin-bulk-actions{
    width:100%;
    flex-wrap:wrap;
  }

  .page-posts-admin .btn-bulk-danger,
  .page-posts-admin .btn-bulk-ghost{
    width:100%;
    justify-content:center;
  }

  .page-posts-admin .admin-pagination{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 760px){
  .page-profile .profile-card > .mb-3{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .page-profile .profile-card .profile-avatar-box{
    width:100%;
  }

  .page-profile .profile-card .profile-avatar-hint{
    white-space:normal;
  }
}

@media (max-width: 700px){
  .page-themes .theme-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .page-themes .theme-actions{
    width:100%;
    justify-content:flex-start;
  }
}

/* =========================================================
   11) CONTAINER DA ÁREA PRINCIPAL
   ========================================================= */

main.main-content-area{
  padding-left:24px !important;
  padding-right:24px !important;
  max-width:1400px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

@media (min-width: 992px){
  main.main-content-area{
    padding-left:48px !important;
    padding-right:48px !important;
  }
}
