/* Repris à l'identique de l'ancien pages/mod_requests.php */
.pm-requests{--rq-card:rgba(255,255,255,.035);--rq-border:rgba(255,255,255,.10);--rq-muted:#939aa4;--rq-green:#59db8c;--rq-blue:#68a8ff;--rq-yellow:#ffc85c;max-width:1280px;margin:0 auto;padding:18px 16px 34px;color:inherit}
.pm-requests *{box-sizing:border-box}
.pm-requests-hero{position:relative;display:flex;align-items:center;justify-content:center;min-height:150px;margin-bottom:16px;padding:26px 220px;border:1px solid var(--rq-border);border-radius:20px;background:linear-gradient(120deg,rgba(34,197,94,.12),rgba(59,130,246,.08)),var(--rq-card);text-align:center}
.pm-requests-hero h1{margin:0;font-size:1.55rem}.pm-requests-hero p{max-width:720px;margin:7px auto 0;color:var(--rq-muted);font-size:.82rem;line-height:1.55}
.pm-requests-create-btn{position:absolute;right:20px;top:20px;display:inline-flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid rgba(89,219,140,.30);border-radius:10px;background:rgba(34,197,94,.10);color:#78e2a0!important;font-size:.72rem;font-weight:900;text-decoration:none!important;cursor:pointer}
.pm-requests-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 190px 170px 165px;gap:8px;margin-bottom:10px;padding:9px;border:1px solid var(--rq-border);border-radius:13px;background:var(--rq-card)}
.pm-requests-toolbar input,.pm-requests-toolbar select{min-height:39px;width:100%;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#191c21;color:inherit;font:inherit;font-size:.72rem}
.pm-requests-scopes{display:flex;gap:6px;margin-bottom:13px;overflow:auto;scrollbar-width:none}.pm-requests-scopes::-webkit-scrollbar{display:none}.pm-requests-scope{flex:0 0 auto;padding:7px 10px;border:1px solid var(--rq-border);border-radius:999px;background:var(--rq-card);color:#a0a8b1!important;font-size:.66rem;font-weight:850;text-decoration:none!important}.pm-requests-scope.active{border-color:rgba(89,219,140,.28);background:rgba(34,197,94,.09);color:#77e0a0!important}
.pm-requests-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.pm-request-card{display:flex;flex-direction:column;min-width:0;padding:14px;border:1px solid var(--rq-border);border-radius:14px;background:var(--rq-card);text-decoration:none!important;color:inherit!important;transition:.15s}.pm-request-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.17)}
.pm-request-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.pm-request-game{color:#87b9ff;font-size:.62rem;font-weight:850}.pm-request-status{padding:4px 7px;border-radius:999px;font-size:.56rem;font-weight:900;white-space:nowrap}.pm-request-status.is-open{background:rgba(89,219,140,.10);color:#71df9b}.pm-request-status.is-claimed{background:rgba(255,200,92,.09);color:#ffd37a}.pm-request-status.is-progress{background:rgba(104,168,255,.10);color:#91bcff}.pm-request-status.is-completed{background:rgba(34,197,94,.16);color:#76e0a0}.pm-request-status.is-closed{background:rgba(148,163,184,.09);color:#a3abb5}
.pm-request-card h3{margin:9px 0 6px;font-size:.92rem;line-height:1.35}.pm-request-card p{display:-webkit-box;overflow:hidden;margin:0;color:#9da5af;font-size:.7rem;line-height:1.48;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.pm-request-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}.pm-request-author{color:#828a94;font-size:.61rem}.pm-request-counts{display:flex;gap:8px;color:#8f97a1;font-size:.61rem}.pm-request-counts i{margin-right:3px}
.pm-request-private{margin-bottom:10px;padding:9px 11px;border-radius:9px;background:rgba(255,200,92,.07);color:#c5b88d;font-size:.68rem}
.pm-requests-pagination{display:flex;justify-content:center;gap:6px;margin-top:15px}.pm-requests-pagination a,.pm-requests-pagination span{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border:1px solid var(--rq-border);border-radius:8px;color:#a7aeb7!important;font-size:.67rem;text-decoration:none!important}.pm-requests-pagination .active{background:rgba(34,197,94,.11);color:#75dfa0!important}
.pm-request-detail{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.65fr);gap:14px}.pm-request-main,.pm-request-side-card{padding:17px;border:1px solid var(--rq-border);border-radius:15px;background:var(--rq-card)}
.pm-request-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.pm-request-detail h1{margin:6px 0 0;font-size:1.35rem}.pm-request-description{margin:16px 0;color:#bbc1c8;font-size:.78rem;line-height:1.65;white-space:pre-line}
.pm-request-action-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.pm-request-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:rgba(255,255,255,.035);color:#e6ebf0!important;font:inherit;font-size:.68rem;font-weight:850;text-decoration:none!important;cursor:pointer}.pm-request-action.primary{border-color:rgba(89,219,140,.26);background:rgba(34,197,94,.09);color:#78e2a0!important}.pm-request-action.voted{border-color:rgba(104,168,255,.28);background:rgba(59,130,246,.10);color:#9dc5ff!important}.pm-request-action.danger{color:#ff9696!important}
.pm-request-side{display:flex;flex-direction:column;gap:10px}.pm-request-side-card h3{margin:0 0 10px;font-size:.83rem}.pm-request-info{display:grid;gap:8px}.pm-request-info-row{display:flex;justify-content:space-between;gap:12px;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.06);font-size:.67rem}.pm-request-info-row:last-child{border-bottom:0;padding-bottom:0}.pm-request-info-row span:first-child{color:#858d97}.pm-request-info-row strong{text-align:right}
.pm-request-linked{display:block;margin-top:9px;padding:9px;border:1px solid rgba(89,219,140,.20);border-radius:9px;background:rgba(34,197,94,.06);color:#78e2a0!important;font-size:.7rem;font-weight:850;text-decoration:none!important}
.pm-request-progress-form select{width:100%;min-height:38px;margin:6px 0;padding:7px 9px;border:1px solid rgba(255,255,255,.10);border-radius:8px;background:#191c21;color:inherit;font-size:.7rem}
.pm-request-comments{margin-top:14px;padding:17px;border:1px solid var(--rq-border);border-radius:15px;background:var(--rq-card)}.pm-request-comments h2{margin:0 0 12px;font-size:.95rem}
.pm-request-comment{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}.pm-request-comment:last-of-type{border-bottom:0}.pm-request-comment img,.pm-request-comment-avatar{width:34px;height:34px;flex:0 0 auto;border-radius:50%;object-fit:cover;background:#24282e}.pm-request-comment-avatar{display:grid;place-items:center;color:#7b8490}.pm-request-comment strong{font-size:.69rem}.pm-request-comment small{margin-left:5px;color:#7c858f;font-size:.58rem}.pm-request-comment p{margin:4px 0 0;color:#aeb5be;font-size:.7rem;line-height:1.5;white-space:pre-line}
.pm-request-comment-form textarea,.pm-request-create-modal input,.pm-request-create-modal select,.pm-request-create-modal textarea{width:100%;padding:9px 10px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:#191c21;color:inherit;font:inherit;font-size:.73rem}.pm-request-comment-form textarea{min-height:80px;resize:vertical}.pm-request-comment-form button{margin-top:7px}
.pm-request-overlay{position:fixed;inset:0;z-index:9998;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}.pm-request-overlay.is-open{display:flex}.pm-request-create-modal{width:min(650px,100%);max-height:90vh;overflow:auto;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:#181b20;box-shadow:0 22px 70px rgba(0,0,0,.48)}.pm-request-create-head{display:flex;justify-content:space-between;gap:10px}.pm-request-create-head h2{margin:0;font-size:1rem}.pm-request-close{border:0;background:transparent;color:#bbb;font-size:1.2rem;cursor:pointer}.pm-request-field{margin-top:11px}.pm-request-field label{display:block;margin-bottom:5px;color:#aeb5be;font-size:.67rem;font-weight:800}.pm-request-create-modal textarea{min-height:150px;resize:vertical}.pm-request-create-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.pm-request-feedback{min-height:18px;margin-top:8px;color:#79e1a2;font-size:.67rem}
.pm-requests-empty{padding:40px;border:1px dashed rgba(255,255,255,.12);border-radius:15px;color:#929aa4;text-align:center}
@media(max-width:980px){.pm-requests-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-requests-toolbar{grid-template-columns:1fr 1fr}.pm-request-detail{grid-template-columns:1fr}.pm-requests-hero{padding-left:20px;padding-right:20px;padding-top:70px}.pm-requests-create-btn{right:50%;transform:translateX(50%)}}
@media(max-width:620px){.pm-requests{padding-left:10px;padding-right:10px}.pm-requests-grid{grid-template-columns:1fr}.pm-requests-toolbar{grid-template-columns:1fr}.pm-request-detail-head{display:block}.pm-request-status{display:inline-flex;margin-top:8px}.pm-request-action-row{display:grid;grid-template-columns:1fr}.pm-request-action{width:100%}}

/* Planet Mods — harmonisation visuelle publique */
.pm-requests{
  --pmr-panel:#24272c;
  --pmr-panel2:#202329;
  --pmr-field:#181a1e;
  --pmr-border:rgba(255,255,255,.09);
  --pmr-border2:rgba(255,255,255,.16);
  --pmr-muted:#929aa5;
  --pmr-green:#64df97;
  --pmr-blue:#8ab8ff;
  max-width:1180px!important;
  margin:2rem auto 4rem!important;
  padding:0 1rem!important;
}

/* Bandeau : même esprit Articles / Analytics */
.pm-requests-hero{
  min-height:170px!important;
  margin-bottom:18px!important;
  padding:34px 235px!important;
  border:1px solid var(--pmr-border)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 18% 12%,rgba(100,223,151,.12),transparent 34%),
    radial-gradient(circle at 88% 18%,rgba(104,168,255,.10),transparent 34%),
    var(--pmr-panel)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.18)!important;
}
.pm-requests-hero h1{
  color:#fff!important;
  font-size:clamp(1.55rem,3vw,2rem)!important;
  line-height:1.15!important;
}
.pm-requests-hero h1 i{color:var(--pmr-green)!important}
.pm-requests-hero p{
  max-width:700px!important;
  margin-top:9px!important;
  color:#b0b7c0!important;
  font-size:.88rem!important;
  line-height:1.6!important;
}
.pm-requests-create-btn{
  top:20px!important;
  right:20px!important;
  min-height:40px!important;
  padding:9px 14px!important;
  border:1px solid rgba(100,223,151,.35)!important;
  border-radius:10px!important;
  background:rgba(34,197,94,.11)!important;
  color:#78e3a2!important;
  font-size:.75rem!important;
  transition:.16s ease!important;
}
.pm-requests-create-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(100,223,151,.55)!important;
  background:rgba(34,197,94,.17)!important;
}

/* Barre de recherche / filtres */
.pm-requests-toolbar{
  gap:9px!important;
  padding:11px!important;
  border:1px solid var(--pmr-border)!important;
  border-radius:14px!important;
  background:var(--pmr-panel2)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.08)!important;
}
.pm-requests-toolbar input,
.pm-requests-toolbar select,
.pm-request-progress-form select,
.pm-request-comment-form textarea,
.pm-request-create-modal input,
.pm-request-create-modal select,
.pm-request-create-modal textarea{
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:9px!important;
  outline:none!important;
  background:var(--pmr-field)!important;
  color:#eef1f4!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
.pm-requests-toolbar input:focus,
.pm-requests-toolbar select:focus,
.pm-request-progress-form select:focus,
.pm-request-comment-form textarea:focus,
.pm-request-create-modal input:focus,
.pm-request-create-modal select:focus,
.pm-request-create-modal textarea:focus{
  border-color:rgba(100,223,151,.55)!important;
  box-shadow:0 0 0 3px rgba(100,223,151,.08)!important;
}
.pm-requests-scope{
  min-height:34px!important;
  border:1px solid var(--pmr-border)!important;
  background:var(--pmr-panel2)!important;
  color:#aeb5bf!important;
  transition:.15s ease!important;
}
.pm-requests-scope:hover{border-color:var(--pmr-border2)!important;color:#fff!important}
.pm-requests-scope.active{
  border-color:rgba(100,223,151,.38)!important;
  background:rgba(34,197,94,.11)!important;
  color:#78e3a2!important;
}

/* Cards */
.pm-requests-grid{gap:13px!important}
.pm-request-card{
  position:relative!important;
  overflow:hidden!important;
  min-height:220px!important;
  padding:16px!important;
  border:1px solid var(--pmr-border)!important;
  border-radius:16px!important;
  background:var(--pmr-panel)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.10)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.pm-request-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--pmr-green),rgba(104,168,255,.8));
  opacity:.55;
}
.pm-request-card:hover{
  transform:translateY(-3px)!important;
  border-color:var(--pmr-border2)!important;
  box-shadow:0 17px 36px rgba(0,0,0,.18)!important;
}
.pm-request-card h3{
  margin:12px 0 7px!important;
  color:#fff!important;
  font-size:1rem!important;
}
.pm-request-card p{
  color:#aab1ba!important;
  font-size:.73rem!important;
  line-height:1.55!important;
  -webkit-line-clamp:4!important;
}
.pm-request-meta{
  padding-top:14px!important;
  border-top:1px solid rgba(255,255,255,.055)!important;
}
.pm-request-game{color:var(--pmr-blue)!important;font-size:.65rem!important}
.pm-request-counts .fa-arrow-up{color:var(--pmr-green)!important}
.pm-request-counts .fa-comment{color:var(--pmr-blue)!important}

/* Badges */
.pm-request-status{
  min-height:23px!important;
  padding:4px 8px!important;
  font-size:.58rem!important;
}
.pm-request-status.is-open{background:rgba(34,197,94,.12)!important;color:#75dfa0!important}
.pm-request-status.is-claimed{background:rgba(245,158,11,.13)!important;color:#ffc45b!important}
.pm-request-status.is-progress{background:rgba(59,130,246,.13)!important;color:#91bcff!important}
.pm-request-status.is-completed{background:rgba(34,197,94,.18)!important;color:#80e8a7!important}
.pm-request-status.is-closed{background:rgba(148,163,184,.12)!important;color:#bbc2cb!important}

/* Pagination */
.pm-requests-pagination{gap:7px!important;margin-top:18px!important}
.pm-requests-pagination a,
.pm-requests-pagination span{
  min-width:36px!important;
  height:36px!important;
  border:1px solid var(--pmr-border)!important;
  border-radius:9px!important;
  background:var(--pmr-panel2)!important;
}
.pm-requests-pagination .active{
  border-color:rgba(100,223,151,.36)!important;
  background:rgba(34,197,94,.11)!important;
  color:#7be4a4!important;
}

/* Fiche détaillée */
.pm-request-detail{gap:14px!important}
.pm-request-main,
.pm-request-side-card,
.pm-request-comments{
  border:1px solid var(--pmr-border)!important;
  border-radius:17px!important;
  background:var(--pmr-panel)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.10)!important;
}
.pm-request-main{padding:22px!important}
.pm-request-side-card{padding:16px!important}
.pm-request-detail h1{
  color:#fff!important;
  font-size:clamp(1.35rem,3vw,1.85rem)!important;
}
.pm-request-description{
  margin-top:20px!important;
  padding-top:18px!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  color:#c5cbd2!important;
  font-size:.81rem!important;
  line-height:1.75!important;
}
.pm-request-action{
  min-height:36px!important;
  padding:7px 11px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:9px!important;
  background:#1b1e22!important;
  transition:.15s ease!important;
}
.pm-request-action:hover{border-color:rgba(255,255,255,.2)!important;background:#23272d!important}
.pm-request-action.primary{
  border-color:rgba(100,223,151,.32)!important;
  background:rgba(34,197,94,.11)!important;
  color:#7be3a3!important;
}
.pm-request-action.voted{
  border-color:rgba(104,168,255,.34)!important;
  background:rgba(59,130,246,.10)!important;
  color:#a4c9ff!important;
}
.pm-request-action.danger{
  border-color:rgba(239,68,68,.22)!important;
  background:rgba(239,68,68,.06)!important;
  color:#ff9299!important;
}
.pm-request-info-row{padding:9px 0!important}
.pm-request-info-row strong{color:#e9edf1!important}
.pm-request-linked{
  padding:10px 11px!important;
  border-color:rgba(100,223,151,.22)!important;
  background:rgba(34,197,94,.07)!important;
  color:#79e2a1!important;
}

/* Discussion */
.pm-request-comments{padding:19px!important}
.pm-request-comment{padding:12px 0!important}
.pm-request-comment img,
.pm-request-comment-avatar{width:38px!important;height:38px!important}
.pm-request-comment strong{color:#edf0f3!important}
.pm-request-comment p{color:#b2b9c1!important;font-size:.72rem!important;line-height:1.55!important}
.pm-request-comment-form{
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
}

/* Modale */
.pm-request-overlay{background:rgba(5,7,9,.76)!important;backdrop-filter:blur(6px)!important}
.pm-request-create-modal{
  width:min(680px,100%)!important;
  padding:20px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:18px!important;
  background:var(--pmr-panel2)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.52)!important;
}
.pm-request-create-head{
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
.pm-request-create-head h2{color:#fff!important}
.pm-request-close{
  width:34px!important;
  height:34px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:8px!important;
  background:var(--pmr-field)!important;
}
.pm-request-create-actions{margin-top:15px!important}

/* Etats vides */
.pm-requests-empty{
  padding:50px 20px!important;
  border:1px dashed rgba(255,255,255,.13)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.018)!important;
}
.pm-requests-empty i{color:var(--pmr-green)!important}

/* Thème clair */
html[data-theme="light"] .pm-requests{
  --pmr-panel:#fff;
  --pmr-panel2:#f5f7f9;
  --pmr-field:#fff;
  --pmr-border:#dce1e7;
  --pmr-border2:#c8ced6;
}
html[data-theme="light"] .pm-requests-hero{
  background:
    radial-gradient(circle at 18% 12%,rgba(34,197,94,.10),transparent 34%),
    radial-gradient(circle at 88% 18%,rgba(59,130,246,.08),transparent 34%),
    #fff!important;
  box-shadow:0 14px 38px rgba(29,37,48,.08)!important;
}
html[data-theme="light"] .pm-requests-hero h1,
html[data-theme="light"] .pm-request-card h3,
html[data-theme="light"] .pm-request-detail h1,
html[data-theme="light"] .pm-request-side-card h3,
html[data-theme="light"] .pm-request-comments h2,
html[data-theme="light"] .pm-request-create-head h2{color:#23282e!important}
html[data-theme="light"] .pm-requests-hero p,
html[data-theme="light"] .pm-request-card p,
html[data-theme="light"] .pm-request-description,
html[data-theme="light"] .pm-request-comment p{color:#525b66!important}
html[data-theme="light"] .pm-request-action,
html[data-theme="light"] .pm-request-close{background:#fff!important;color:#293038!important;border-color:#d6dce3!important}
html[data-theme="light"] .pm-request-create-modal{background:#fff!important;border-color:#d6dce3!important}
html[data-theme="light"] .pm-request-info-row strong,
html[data-theme="light"] .pm-request-comment strong{color:#2e343b!important}

/* Responsive */
@media(max-width:980px){
  .pm-requests-hero{padding:76px 24px 30px!important}
  .pm-requests-create-btn{top:18px!important;right:50%!important;transform:translateX(50%)}
  .pm-requests-create-btn:hover{transform:translateX(50%) translateY(-1px)}
}
@media(max-width:640px){
  .pm-requests{margin-top:1.2rem!important;padding:0 10px 28px!important}
  .pm-requests-hero{padding:72px 18px 25px!important;border-radius:17px!important}
  .pm-request-main,.pm-request-comments{padding:15px!important}
  .pm-request-create-modal{padding:16px!important;border-radius:14px!important}
}
