/* VietNam RP City 2D — Admin/Mod. Nền đen + viền trắng đồng bộ UI game. */
.admin-overlay[hidden],#admin-spectate-exit[hidden]{display:none!important}
.admin-overlay{
 position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;
 background:#040608d9;backdrop-filter:blur(5px);padding:clamp(10px,2vw,22px);
 padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));
 color:#f4f5f7;pointer-events:auto;
}
.admin-shell{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;
 width:min(980px,96vw);max-height:min(88dvh,900px);padding:18px 20px;
 background:#101115;border:1px solid #e9e9e9;border-radius:6px;box-shadow:0 22px 70px #000b;
 font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#f4f5f7;}
.admin-shell *{box-sizing:border-box;min-width:0}
.admin-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:10px;border-bottom:1px solid #484a4f}
.admin-head h2{font-size:clamp(14px,2vw,19px);letter-spacing:.5px;line-height:1.4;margin:0;color:#fff}
.admin-eyebrow{font-size:10px;letter-spacing:1.5px;color:#b6bbc5;margin-bottom:4px}
.admin-head-right{display:flex;align-items:center;gap:12px}
#admin-my-role{font-size:11px;font-weight:750;color:#ffe1a1;letter-spacing:1px}
.admin-head button{width:38px;height:38px;flex:none;border:1px solid white;border-radius:3px;background:#20232a;color:white;cursor:pointer;font-size:19px}
.admin-tabs{display:flex;gap:7px;overflow-x:auto;padding:0 0 7px;scrollbar-width:thin;flex:none}
.admin-tabs button{white-space:nowrap;min-width:82px;padding:9px 13px;background:#1b1d23;border:1px solid #72747c;border-radius:3px;color:#e9eaed;cursor:pointer;font-size:12px}
.admin-tabs button.is-active{background:#3c4049;border-color:#fff;color:#fff;font-weight:750}
.admin-status{font-size:12px;line-height:1.5;color:#b9edd7;margin:0;min-height:0;overflow-wrap:anywhere}
.admin-status:empty{display:none}.admin-status.admin-error{color:#ffb2b2}
.admin-head,.admin-status{flex-shrink:0}
.admin-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;padding-right:4px;scrollbar-width:thin}
.admin-card{background:#191b20;border:1px solid #555961;border-radius:4px;padding:12px 14px;display:flex;flex-direction:column;gap:11px;overflow-wrap:anywhere}
.admin-card-heading{font-size:14px;color:#fff;margin:0;font-weight:750}
.admin-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.admin-stats .admin-card{padding:13px 6px;align-items:center;text-align:center;justify-content:center;gap:7px}
.admin-stats small,.admin-player-row small,.admin-log-item small,.admin-report-item small{color:#acb0ba;font-size:11px;line-height:1.4}
.admin-stats strong{font-variant-numeric:tabular-nums;font-size:22px;color:white}
.admin-note{font-size:12px;line-height:1.5;color:#b8bcc7;margin:0;overflow-wrap:anywhere}
.admin-button{font:inherit;font-size:12px;font-weight:700;background:#26282f;color:#fff;border:1px solid #a4a6ae;border-radius:3px;min-height:37px;padding:8px 13px;cursor:pointer;white-space:normal}
.admin-button:hover,.admin-head button:hover{background:#3d4048}
.admin-button:focus-visible,.admin-tabs button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.admin-button:disabled{opacity:.5;cursor:not-allowed}
.admin-primary{background:#333740;border-color:#fff}
.admin-field{font-size:12px;font-weight:650;color:#e7e8eb;display:flex;flex-direction:column;gap:5px}
.admin-field input,.admin-field textarea,.admin-field select,.admin-report-shell input,.admin-report-shell textarea,.admin-report-shell select{
 display:block;width:100%;border:1px solid #858893;border-radius:3px;min-height:38px;padding:8px 10px;
 background:#0d0e13;color:#fff;font:inherit;font-size:14px;outline-offset:2px;
}
.admin-field input:focus,.admin-field select:focus,.admin-report-shell input:focus,.admin-report-shell textarea:focus,.admin-report-shell select:focus{outline:2px solid #fff}
.admin-players{display:flex;flex-direction:column;gap:5px}
.admin-player-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1c1e24;border:1px solid #454850;border-radius:3px;padding:9px 11px}
.admin-player-info{display:flex;flex-direction:column;gap:3px;flex:1}.admin-player-info b{font-size:13px;color:#fff}
.admin-action-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.admin-action-form .admin-button{align-self:end}.admin-action-form .admin-field[hidden]{display:none}
.admin-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-end}
.admin-report-item,.admin-log-item{border-top:1px solid #3a3d44;padding:12px 0 4px;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}
.admin-report-item b,.admin-log-item b{font-size:12px;color:#fff}.admin-report-item p{font-size:12px;margin:0}
.admin-report-shell{width:min(480px,96vw);max-height:90dvh;overflow:auto}.admin-report-shell>label{font-size:12px;font-weight:650;display:flex;flex-direction:column;gap:6px}
.admin-report-shell>p{font-size:12px;line-height:1.5;color:#c6cad3;margin:0}.admin-report-shell textarea{resize:vertical;min-height:75px}
#admin-spectate-exit{position:fixed;top:110px;left:50%;transform:translateX(-50%);z-index:125;
 background:#111218ec;color:#fff;border:1px solid #fff;padding:8px 12px;border-radius:3px;font-size:12px;cursor:pointer}
body.admin-open .canvas-wrap .mobile-controls,body.admin-open .canvas-wrap .move-joystick{pointer-events:none!important}
@media(max-width:800px),(pointer:coarse){
 .admin-shell{width:min(720px,96vw);max-height:90dvh;padding:12px;gap:10px}
 .admin-content{gap:8px}.admin-card{padding:10px}
 .admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .admin-head-right{gap:6px}
 .admin-tabs button{min-height:40px;min-width:85px}
 .admin-button{min-height:40px;padding:9px 10px;font-size:12px}
 .admin-player-row{flex-wrap:wrap}
 .admin-action-form{grid-template-columns:1fr}
 #admin-spectate-exit{top:90px}
}
@media(max-width:460px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-head h2{font-size:13px}.admin-head-right>span{font-size:9px!important}}
@media(max-height:550px) and (orientation:landscape){.admin-shell{max-height:94dvh;padding:9px 12px}.admin-head{padding-bottom:5px}.admin-content{gap:7px}.admin-card{padding:8px}}

/* OWNER ROLE: rank đỏ do Owner chính cấp. */
#admin-my-role[data-role="owner_role"],.admin-player-row[data-role="owner_role"] small,.admin-player-row[data-role="owner_role"]>span{color:#ff4d57}
.admin-password-reset{margin-top:18px;border-top:1px solid #ffffff50;padding-top:14px}
.admin-password-reset .admin-field[hidden]{display:none!important}
.admin-assets-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-variant-numeric:tabular-nums}
.admin-assets-cash{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.admin-asset-group{display:flex;flex-direction:column;gap:6px}.admin-asset-group h4{font-size:13px;margin:5px 0;color:#fff}
.admin-asset-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #41434a}
.admin-asset-info{display:flex;flex-direction:column;gap:4px;flex:1;font-size:13px;overflow-wrap:anywhere}
.admin-asset-row .admin-button{flex:none;min-width:64px}.admin-danger{border-color:#b47c7c;color:#ffd0d0;background:#312427}
@media(max-width:460px){.admin-assets-cash{grid-template-columns:1fr}.admin-assets-summary{align-items:flex-start;flex-direction:column}.admin-asset-row{gap:7px}}
