/* 02-profile-link.css */
.profile-badge{
    margin-inline-start:8px;
    background:linear-gradient(135deg,#fff7e6,#e9d2a3)!important;
    color:#5b3a12!important;
    border:1px solid rgba(168,122,45,.35)!important;
    box-shadow:0 6px 18px rgba(92,59,18,.10);
}
@media(max-width:600px){
    .profile-badge{
        display:inline-flex;
        margin-top:8px;
        margin-inline-start:0;
        font-size:.78rem;
        padding:7px 12px;
    }
}


/* === نافذة من هو بابا أحمد — فتح مباشر بدون تحويل === */
.profile-badge{
  border:1px solid rgba(168,122,45,.35)!important;
  cursor:pointer!important;
  font-family:'Tajawal','Segoe UI',Tahoma,sans-serif!important;
}
.profile-modal{
  position:fixed;
  inset:0;
  z-index:9997;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(15,47,44,.48);
  backdrop-filter:blur(7px);
  direction:rtl;
}
.profile-modal.open{display:flex;}
.profile-panel{
  width:min(620px,100%);
  max-height:88vh;
  overflow-y:auto;
  background:#fff;
  border:1px solid #d8ebe8;
  border-radius:26px;
  box-shadow:0 26px 75px rgba(15,47,44,.28);
  animation:profileRise .22s ease forwards;
  transform:translateY(10px);
}
@keyframes profileRise{to{transform:translateY(0)}}
.profile-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-bottom:1px solid #e3efed;
  background:linear-gradient(135deg,#ffffff,#f0fdfa);
}
.profile-panel-title{
  margin:0;
  color:#0f766e;
  font-weight:900;
  font-size:1.15rem;
}
.profile-panel-sub{
  color:#64748b;
  font-size:.78rem;
  font-weight:700;
  margin-top:3px;
  line-height:1.7;
}
.profile-close{
  width:40px;
  height:40px;
  border:1px solid #d8ebe8;
  background:#fff;
  color:#6b7b84;
  border-radius:50%;
  font-size:1.08rem;
  font-weight:900;
  cursor:pointer;
  line-height:1;
}
.profile-close:hover{background:#fff7ed;color:#9a3412;border-color:#fed7aa;}
.profile-panel-body{padding:18px;}
.profile-intro{
  display:flex;
  align-items:center;
  gap:14px;
  background:linear-gradient(135deg,#ffffff,#f8fdfc);
  border:1px solid #d8ebe8;
  border-radius:20px;
  padding:14px;
  margin-bottom:12px;
}
.profile-avatar{
  width:68px;
  height:68px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0f766e;
  font-size:1.8rem;
  background:linear-gradient(135deg,#fff7ed,#f0fdfa);
  border:1px solid #d8ebe8;
  flex:0 0 68px;
}
.profile-name{font-weight:900;color:#17252b;font-size:1.04rem;margin-bottom:4px;}
.profile-desc{color:#60717a;font-weight:700;font-size:.82rem;line-height:1.8;}
.profile-quote{
  background:linear-gradient(135deg,#f0fdfa,#fff7ed);
  border:1px solid #cfe7e3;
  border-right:5px solid #f59e0b;
  border-radius:18px;
  padding:14px;
  color:#42535b;
  font-weight:850;
  line-height:1.9;
  margin-bottom:12px;
}
.profile-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px;}
.profile-mini{
  background:#fff;
  border:1px solid #d8ebe8;
  border-radius:16px;
  padding:12px 8px;
  text-align:center;
  box-shadow:0 6px 14px rgba(15,118,110,.05);
}
.profile-mini i{color:#f59e0b;font-size:1.15rem;margin-bottom:6px;}
.profile-mini b{display:block;color:#0f766e;font-size:.78rem;line-height:1.6;}
.profile-list{
  background:#f8fdfc;
  border:1px solid #d8ebe8;
  border-radius:18px;
  padding:13px 16px;
  margin:0 0 12px;
}
.profile-list li{margin:6px 0;color:#42535b;font-weight:750;line-height:1.75;}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.profile-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#fff!important;
  text-decoration:none!important;
  border-radius:999px;
  padding:9px 15px;
  font-weight:900;
  font-size:.82rem;
  background:linear-gradient(135deg,#0f766e,#115e59);
}
.profile-actions a:nth-child(2){background:linear-gradient(135deg,#f59e0b,#ea580c);}
@media(max-width:560px){
  .profile-modal{align-items:flex-end;padding:10px;}
  .profile-panel{border-radius:24px 24px 18px 18px;max-height:90vh;}
  .profile-intro{flex-direction:column;text-align:center;}
  .profile-mini-grid{grid-template-columns:1fr;}
  .profile-actions a{width:100%;}
}

/* === من هو بابا أحمد: عرض صفحة أحمد كاملة داخل نافذة الحقيبة فقط === */
.profile-panel.profile-panel-full{
  width:min(1080px,calc(100vw - 28px)) !important;
  height:min(88vh,860px) !important;
  max-height:88vh !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#fff !important;
  border-radius:28px !important;
  position:relative !important;
}
.profile-page-frame{
  width:100% !important;
  height:100% !important;
  border:0 !important;
  display:block !important;
  background:#fff !important;
  border-radius:28px !important;
}
.profile-close.profile-close-floating{
  position:absolute !important;
  top:18px !important;
  left:18px !important;
  z-index:3 !important;
  width:46px !important;
  height:46px !important;
  background:rgba(255,255,255,.95) !important;
  box-shadow:0 8px 22px rgba(7,59,53,.13) !important;
}
@media(max-width:560px){
  .profile-modal{align-items:center !important;padding:8px !important;}
  .profile-panel.profile-panel-full{
    width:calc(100vw - 16px) !important;
    height:90vh !important;
    max-height:90vh !important;
    border-radius:22px !important;
  }
  .profile-page-frame{border-radius:22px !important;}
  .profile-close.profile-close-floating{
    top:12px !important;
    left:12px !important;
    width:42px !important;
    height:42px !important;
  }
}
