/* Ejaaba Plus profile mobile declutter — 2026-10-25.
   Scoped to the regal Plus hero. Keeps original links, forms, AJAX hooks,
   reputation, badges, permissions and profile tabs unchanged. */
@media (max-width:720px){
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-main > .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(39px,auto)!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  justify-content:stretch!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  margin:5px 0 0!important;
  padding:10px 0 0!important;
  border-top:1px solid #d9ad63a8!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) > :is(a,form,span){
  display:flex!important;
  grid-column:auto!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) > form.inline{
  display:block!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) :is(a.ejabat-classic-profile-action,button.ejabat-classic-profile-action){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:row!important;
  gap:6px!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:100%!important;
  min-height:39px!important;
  margin:0!important;
  padding:7px 7px!important;
  font-size:11px!important;
  line-height:1.4!important;
  white-space:normal!important;
  text-align:center!important;
  border-radius:9px!important;
  box-shadow:inset 0 1px 0 #ffffff35,0 2px 5px #00152a50!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) :is(a.ejabat-classic-profile-action,button.ejabat-classic-profile-action) :is(svg,.arch-icon,.ejg-icon){
  height:17px!important;
  width:17px!important;
  min-width:17px!important;
  flex:0 0 17px!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) > [hidden],
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) > form[hidden],
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) a[hidden]{
  display:none!important;
 }
 /* The actual message link appears before block controls visually. */
 body .classic-member-profile.ejp-profile-regal .ejabat-classic-contact-actions > [data-contact-message-link]{
  order:3!important;
 }
 body .classic-member-profile.ejp-profile-regal .ejabat-classic-contact-actions > form[data-ejaaba-inline="block-member"]{
  order:4!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions button.is-blocked,
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions form[data-ejaaba-inline="block-member"] button{
  color:#e9f3ff!important;
  background:linear-gradient(130deg,#26445f,#183655)!important;
  border-color:#6685a1!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-member-directed-ask-action{
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:6px 0 0!important;
  padding:0!important;
  min-height:0!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-member-directed-ask-action > a.ejabat-old-directed-ask-link{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:38px!important;
  height:auto!important;
  padding:6px 12px!important;
  margin:0!important;
  border:1px solid #cbab70!important;
  border-radius:9px!important;
  background:linear-gradient(120deg,#fffaf0,#f5e8cd)!important;
  color:#694a22!important;
  box-shadow:inset 0 1px #fff,0 2px 4px #071c3050!important;
  font:700 11px/1.6 Tajawal,Cairo,Tahoma,Arial,sans-serif!important;
  text-align:center!important;
  text-decoration:none!important;
 }
 body .classic-member-profile.ejp-profile-regal .ejabat-member-directed-ask-action > a.ejabat-old-directed-ask-link :is(svg,.arch-icon,.ejg-icon){
  width:16px!important;height:16px!important;flex:0 0 16px!important;
 }
 /* The long display name has its own visual priority over Plus/level badges. */
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-heading h1{
  gap:3px 7px!important;
  line-height:1.45!important;
  padding:0 3px!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
 }
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-heading .ejabat-canonical-name{
  font-size:clamp(17px,5.2vw,23px)!important;
  line-height:1.45!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
 }
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-username{
  max-width:100%!important;
  font-size:12px!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.5!important;
 }
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-earned-badges{
  margin:3px 0 0!important;
  padding:3px 2px!important;
  gap:4px!important;
  min-height:35px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
 }
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-earned-badges :is(.ejabat-earned-badge,.ejabat-badges-more){
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
 }
 body .classic-member-profile.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-earned-badges :is(.ejabat-earned-level,.ejabat-earned-staff,.ejabat-earned-verified){
  min-height:25px!important;
  font-size:9px!important;
  padding:4px 6px!important;
 }
 /* The floating presence dock must not hide the final profile controls. */
 body:has(.classic-member-profile) .classic-member-profile{
  padding-bottom:65px!important;
 }
}
@media(max-width:360px){
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions){
  gap:6px!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-actions.ejabat-classic-contact-actions:not(.ejp-owner-actions) :is(a.ejabat-classic-profile-action,button.ejabat-classic-profile-action){
  font-size:10px!important;
  padding:6px 4px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .classic-member-profile.ejp-profile-regal .ejabat-profile-actions .ejabat-classic-profile-action{
  transition:none!important;
 }
}

/* Name + authenticity seal form the first row; paid tier + level are secondary. */
@media(max-width:720px){
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-heading h1 > .ejabat-main-identity{
  display:flex!important;
  flex-direction:row!important;
  justify-content:center!important;
  align-items:center!important;
  align-content:center!important;
  flex-wrap:wrap!important;
  gap:3px 8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-name-seal{
  display:flex!important;
  flex:1 1 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin:0!important;
  padding:0 2px!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-name-seal .ejabat-canonical-name{
  font-size:clamp(17px,5.3vw,22px)!important;
  line-height:1.45!important;
  max-width:calc(100% - 20px)!important;
  flex:0 1 auto!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-hero .ejabat-profile-name-seal .ejverified-badge{
  flex:none!important;
  margin:0!important;
  width:13px!important;height:13px!important;
  min-width:13px!important;min-height:13px!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-heading .ejv25-plus-badge{
  margin:0!important;
  min-height:20px!important;
  padding:2px 8px!important;
  font-size:9px!important;
 }
 body .classic-member-profile.ejg-profile-controls.ejg-profile-shell.ejp-profile-regal[data-profile-panel]
 .ejabat-profile-heading .arch-profile-level-badge{
  width:21px!important;height:21px!important;
  min-width:21px!important;min-height:21px!important;
  font-size:11px!important;
  margin:0!important;
 }
}
