:root{
  --pa-bg:#050806;
  --pa-panel:#09130e;
  --pa-panel-2:#0d1a14;
  --pa-line:rgba(92,240,170,.15);
  --pa-green:#5cf0aa;
  --pa-cyan:#69e8dd;
  --pa-gold:#e4bd76;
  --pa-red:#ff748b;
  --pa-text:#edf9f2;
  --pa-muted:#81988c;
  --pa-shadow:0 26px 75px rgba(0,0,0,.42);
}
*{
  box-sizing:border-box;
}
html,
body{
  min-height:100%;
  margin:0;
}
body{
  color:var(--pa-text);
  background:
    radial-gradient(
      circle at 12% 5%,
      rgba(92,240,170,.08),
      transparent 25%
    ),
    var(--pa-bg);
  font-family:Inter,Segoe UI,Arial,sans-serif;
}
button,
input,
select,
textarea{
  font:inherit;
}
.post-admin-topbar{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 clamp(16px,4vw,55px);
  border-bottom:1px solid var(--pa-line);
  background:rgba(4,9,7,.9);
  backdrop-filter:blur(18px);
}
.post-admin-brand{
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:inherit;
}
.post-admin-brand img{
  width:43px;
  height:43px;
}
.post-admin-brand strong{
  display:block;
  font-size:13px;
}
.post-admin-brand small{
  display:block;
  margin-top:4px;
  color:var(--pa-green);
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}
.post-admin-topbar nav{
  display:flex;
  gap:7px;
}
.post-admin-topbar nav a{
  min-height:37px;
  display:inline-flex;
  align-items:center;
  border:1px solid var(--pa-line);
  border-radius:10px;
  padding:0 11px;
  color:#98aca1;
  background:rgba(255,255,255,.015);
  font-size:8px;
  font-weight:900;
  text-decoration:none;
  text-transform:uppercase;
}
.post-admin-topbar nav a:hover{
  color:#04100a;
  border-color:transparent;
  background:linear-gradient(
    100deg,
    var(--pa-green),
    var(--pa-cyan)
  );
}
.post-admin-shell{
  min-height:calc(100vh - 74px);
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
}
.post-admin-list-panel{
  min-height:calc(100vh - 74px);
  position:sticky;
  top:74px;
  align-self:start;
  border-right:1px solid var(--pa-line);
  padding:22px;
  background:#060c09;
}
.post-admin-list-panel>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.post-admin-list-panel h1{
  margin:4px 0 0;
  font-size:32px;
}
.post-admin-list-panel small,
.post-editor-heading small{
  color:var(--pa-green);
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}
.post-admin-list-panel button,
.post-editor-actions button,
.post-editor-actions a,
.post-cover-editor button,
.post-comment-admin button{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--pa-line);
  border-radius:10px;
  padding:0 11px;
  color:#9fb2a8;
  background:rgba(255,255,255,.018);
  cursor:pointer;
  font-size:8px;
  font-weight:900;
  text-decoration:none;
  text-transform:uppercase;
}
.post-admin-list-panel>header button,
.post-editor-actions .primary{
  color:#04100a;
  border-color:transparent;
  background:linear-gradient(
    100deg,
    var(--pa-green),
    var(--pa-cyan)
  );
}
.post-admin-filters{
  display:grid;
  grid-template-columns:1fr 130px;
  gap:7px;
  margin:17px 0 10px;
}
.post-admin-filters input,
.post-admin-filters select,
.post-form-grid input,
.post-form-grid textarea,
.post-content-field textarea{
  width:100%;
  border:1px solid var(--pa-line);
  border-radius:10px;
  outline:0;
  padding:11px;
  color:var(--pa-text);
  background:#07100c;
  font-size:10px;
}
.post-admin-list{
  display:grid;
  gap:7px;
  max-height:calc(100vh - 225px);
  overflow:auto;
  padding-right:3px;
}
.post-admin-item{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  border:1px solid transparent;
  border-radius:12px;
  padding:8px;
  color:#a8bbb1;
  background:rgba(255,255,255,.012);
  cursor:pointer;
  text-align:left;
}
.post-admin-item:hover,
.post-admin-item.active{
  border-color:var(--pa-line);
  background:rgba(92,240,170,.055);
}
.post-admin-item-cover{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:11px;
  background:#0e2017;
  font-size:18px;
}
.post-admin-item-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-admin-item strong{
  display:block;
  font-size:10px;
}
.post-admin-item small{
  display:block;
  margin-top:4px;
  color:#71877b;
  font-size:7px;
}
.post-admin-item b{
  border-radius:999px;
  padding:5px 7px;
  color:var(--pa-green);
  background:rgba(92,240,170,.06);
  font-size:6px;
  text-transform:uppercase;
}
.post-admin-editor{
  min-width:0;
  padding:28px clamp(18px,4vw,50px) 80px;
}
.post-editor-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:15px;
  margin-bottom:17px;
}
.post-editor-heading h2{
  margin:6px 0 0;
  font-size:34px;
  letter-spacing:-.045em;
}
.post-editor-status{
  border:1px solid var(--pa-line);
  border-radius:999px;
  padding:7px 10px;
  color:var(--pa-green);
  background:rgba(92,240,170,.05);
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
}
.post-admin-editor form{
  display:grid;
  gap:12px;
}
.post-form-card{
  border:1px solid var(--pa-line);
  border-radius:18px;
  padding:18px;
  background:var(--pa-panel);
}
.post-form-card>header{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:16px;
}
.post-form-card>header>b{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--pa-line);
  border-radius:10px;
  color:var(--pa-green);
  background:rgba(92,240,170,.04);
  font-size:8px;
}
.post-form-card>header strong{
  display:block;
  font-size:12px;
}
.post-form-card>header small{
  display:block;
  margin-top:5px;
  color:#71877b;
  font-size:8px;
}
.post-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.post-form-grid label,
.post-content-field{
  display:grid;
  gap:6px;
}
.post-form-grid label.wide{
  grid-column:1/-1;
}
.post-form-grid label>span,
.post-content-field>span{
  color:#83988d;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}
.post-form-grid label>small{
  color:#71877b;
  font-size:8px;
}
.post-form-grid textarea{
  min-height:105px;
  resize:vertical;
}
.post-cover-editor{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:13px;
  margin-top:14px;
}
.post-cover-editor>div{
  height:145px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--pa-line);
  border-radius:13px;
  background:#07100c;
  color:var(--pa-green);
  font-size:35px;
}
.post-cover-editor>div img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-cover-editor>span{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.post-cover-editor input{
  max-width:100%;
  color:#8ca196;
  font-size:9px;
}
.post-cover-editor small{
  color:#71877b;
  font-size:8px;
}
.post-editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}
.post-editor-toolbar button{
  min-height:34px;
  border:1px solid var(--pa-line);
  border-radius:8px;
  padding:0 9px;
  color:#a8bbb1;
  background:rgba(255,255,255,.018);
  cursor:pointer;
  font-size:8px;
  font-weight:900;
}
.post-editor-toolbar button:hover{
  color:var(--pa-green);
  border-color:rgba(92,240,170,.35);
}
.post-content-field textarea{
  min-height:460px;
  resize:vertical;
  line-height:1.7;
}
.post-format-help{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}
.post-format-help span{
  border:1px solid rgba(255,255,255,.05);
  border-radius:999px;
  padding:6px 8px;
  color:#71877b;
  font-size:7px;
}
.post-format-help b{
  color:var(--pa-green);
}
.post-switches{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.post-switches label{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  border:1px solid var(--pa-line);
  border-radius:12px;
  padding:11px;
  background:rgba(255,255,255,.012);
}
.post-switches strong{
  display:block;
  font-size:9px;
}
.post-switches small{
  display:block;
  margin-top:4px;
  color:#71877b;
  font-size:7px;
}
.post-switches input{
  width:18px;
  height:18px;
  accent-color:var(--pa-green);
}
.post-regenerate-slug{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  color:#8fa49a;
  font-size:8px;
}
.post-regenerate-slug input{
  accent-color:var(--pa-green);
}
.post-editor-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  position:sticky;
  bottom:10px;
  z-index:5;
  border:1px solid var(--pa-line);
  border-radius:14px;
  padding:10px;
  background:rgba(6,13,9,.94);
  box-shadow:0 15px 45px rgba(0,0,0,.36);
  backdrop-filter:blur(15px);
}
.post-editor-actions .danger:hover,
.post-cover-editor button:hover{
  color:#fff;
  border-color:rgba(255,116,139,.38);
  background:rgba(255,116,139,.12);
}
.post-comments-admin{
  margin-top:13px;
}
.post-comments-admin[hidden]{
  display:none;
}
.post-comment-admin{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  border-top:1px solid rgba(255,255,255,.045);
  padding:12px 0;
}
.post-comment-admin:first-child{
  border-top:0;
}
.post-comment-admin strong{
  display:block;
  font-size:10px;
}
.post-comment-admin small{
  display:block;
  margin-top:4px;
  color:#71877b;
  font-size:8px;
}
.post-comment-admin p{
  margin:7px 0 0;
  color:#9caf9f;
  font-size:9px;
  line-height:1.55;
  white-space:pre-wrap;
}
.post-comment-admin.hidden{
  opacity:.58;
}
.post-comment-admin.deleted{
  opacity:.4;
}
.post-comment-admin-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.post-admin-loading{
  min-height:160px;
  display:grid;
  place-items:center;
  color:#71877b;
  font-size:9px;
  text-align:center;
}
.post-admin-toast{
  max-width:min(430px,calc(100vw - 24px));
  position:fixed;
  z-index:100;
  right:18px;
  bottom:18px;
  border:1px solid var(--pa-line);
  border-radius:12px;
  padding:12px 15px;
  color:#dcebe3;
  background:#0b1711;
  box-shadow:var(--pa-shadow);
  opacity:0;
  transform:translateY(14px);
  pointer-events:none;
  transition:.25s ease;
  font-size:10px;
}
.post-admin-toast.show{
  opacity:1;
  transform:none;
}
.post-admin-toast.error{
  color:#ffd4dc;
  border-color:rgba(255,116,139,.38);
}
@media(max-width:1000px){
  .post-admin-shell{
    grid-template-columns:1fr;
  }
  .post-admin-list-panel{
    min-height:0;
    position:static;
    border-right:0;
    border-bottom:1px solid var(--pa-line);
  }
  .post-admin-list{
    max-height:360px;
  }
}
@media(max-width:650px){
  .post-admin-topbar nav a:not(:last-child){
    display:none;
  }
  .post-admin-filters,
  .post-form-grid,
  .post-switches,
  .post-cover-editor{
    grid-template-columns:1fr;
  }
  .post-form-grid label.wide{
    grid-column:auto;
  }
  .post-editor-heading{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ATUALIZAÇÃO 12 — categorias e posts exclusivos */
.post-admin-filters{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.post-admin-filters input{
  grid-column:1/-1;
}
.post-form-grid select{
  width:100%;
  min-height:42px;
  border:1px solid var(--pa-line);
  border-radius:10px;
  outline:0;
  padding:0 11px;
  color:var(--pa-text);
  background:#07100c;
  font-size:10px;
}
.post-form-grid select:focus,
.post-admin-filters select:focus{
  border-color:rgba(92,240,170,.44);
  box-shadow:0 0 0 3px rgba(92,240,170,.06);
}
.post-destination-grid{
  margin-bottom:12px;
}
.post-access-preview{
  min-height:74px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  border:1px solid rgba(92,240,170,.2);
  border-radius:13px;
  padding:12px;
  background:
    linear-gradient(110deg,rgba(92,240,170,.055),rgba(105,232,221,.025));
}
.post-access-preview>span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(92,240,170,.24);
  border-radius:12px;
  color:var(--pa-green);
  background:rgba(92,240,170,.06);
  font-size:17px;
}
.post-access-preview strong{
  display:block;
  font-size:10px;
}
.post-access-preview small{
  display:block;
  margin-top:5px;
  color:#789084;
  font-size:8px;
  line-height:1.5;
}
.post-access-preview.members-only{
  border-color:rgba(228,189,118,.28);
  background:
    linear-gradient(110deg,rgba(228,189,118,.07),rgba(92,240,170,.025));
}
.post-access-preview.members-only>span{
  color:var(--pa-gold);
  border-color:rgba(228,189,118,.3);
  background:rgba(228,189,118,.07);
}
.post-admin-item-badges{
  display:grid;
  justify-items:end;
  gap:5px;
}
.post-admin-item-badges i{
  font-size:10px;
  font-style:normal;
}
@media(max-width:760px){
  .post-admin-filters{
    grid-template-columns:1fr;
  }
}
