.inpput-postpro input[type=text]{
	padding: 3px;
    border-radius: 50px;
    width: 85%;
    border: 0px solid #f0f2f5;
    height: 40px;
	background:#f0f2f5;
	outline: none;
	padding-left: 20px;
	margin-top:10px;
	margin-left:10px;
}
.adphoto:hover{

    color: #2d6ee7 !important;
    background: #f2ecec !important;
    padding: 5px !important;
    border-radius: 7px;
    font-size: medium !important;

}
.adphoto{

    text-decoration: none !important;
    padding: 5px !important;
    font-size: medium !important;
}

.radius_30{
    border-radius: 30px;
}
/* .vjs-tech {
    position: relative !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
*/
.video-js{
    width: 100%;
    height: 100%;
} 

#videoContainer{
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    overflow: hidden;
}

#remoteVideo{
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

#localVideo{
    position: absolute;
    width: 180px;
    height: 120px;
    bottom: 10px;
    right: 10px;
    border-radius: 10px;
    border: 2px solid #fff;
    object-fit: cover;
    background: #000;
    z-index: 10;
}
 /* =========================
   Facebook Incoming Call UI
========================= */

#incomingCall{
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(17, 24, 39, .92);
    backdrop-filter: blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    animation: fadeIn .2s ease;
}

.fb-call-box{
    width: 340px;
    border-radius: 28px;
    background: linear-gradient(180deg,#1f2937,#111827);
    padding: 35px 25px;
    text-align:center;
    color:#fff;
    box-shadow: 0 10px 40px rgba(0,0,0,.45);
    position:relative;
    overflow:hidden;
}

.fb-call-box::before{
    content:'';
    position:absolute;
    width:250px;
    height:250px;
    background: rgba(59,130,246,.15);
    border-radius:50%;
    top:-120px;
    left:-80px;
}

.fb-call-avatar{
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid rgba(255,255,255,.15);
    margin:auto;
    position:relative;
    z-index:2;
}

.fb-call-name{
    font-size:24px;
    font-weight:700;
    margin-top:18px;
    position:relative;
    z-index:2;
}

.fb-call-status{
    color:#cbd5e1;
    font-size:15px;
    margin-top:8px;
    position:relative;
    z-index:2;
}

.fb-call-actions{
    display:flex;
    justify-content:center;
    gap:25px;
    margin-top:35px;
    position:relative;
    z-index:2;
}

.fb-call-btn{
    width:68px;
    height:68px;
    border-radius:50%;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:#fff;
    transition:.2s;
}

.fb-call-btn:hover{
    transform:scale(1.08);
}

.fb-call-accept{
    background:#16a34a;
}

.fb-call-reject{
    background:#dc2626;
}

.fb-ringing{
    animation:ringing 1s infinite;
}

@keyframes ringing{
    0%{transform:scale(1)}
    50%{transform:scale(1.05)}
    100%{transform:scale(1)}
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

#callScreen{
    position:fixed;
    inset:0;
    background:#0f172a;
    z-index:99999999;
    overflow:hidden;
}

#remoteVideo{
    width:100%;
    height:100%;
    object-fit:cover;
    background:black;
}

#localVideo{
    position:absolute;
    width:240px;
    height:170px;
    right:20px;
    top:20px;
    border-radius:20px;
    object-fit:cover;
    border:2px solid rgba(255,255,255,.2);
    background:#111;
    z-index:10;
}

.call-top-bar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:20;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    background:linear-gradient(to bottom,rgba(0,0,0,.5),transparent);
}

.call-user{
    display:flex;
    align-items:center;
    gap:15px;
    color:white;
}

.call-user img{
    width:50px;
    height:50px;
    border-radius:50%;
}

.call-name{
    font-size:18px;
    font-weight:bold;
}

.call-status{
    font-size:13px;
    opacity:.8;
}

#closeCallScreen{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:white;
}

.call-controls{
    position:absolute;
    left:20px;
    bottom:120px;
    width:250px;
    z-index:50;
}

.call-controls select{
    margin-bottom:10px;
    background:rgba(255,255,255,.1);
    border:none;
    color:white;
}

.call-buttons{
    position:absolute;
    bottom:30px;
    width:100%;
    display:flex;
    justify-content:center;
    gap:20px;
    z-index:50;
}

.call-btn{
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:white;
    font-size:24px;
}

.call-btn.end{
    background:#dc2626;
}
#devicePanel{
    position: fixed !important;
    bottom: 20% !important;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #111;
}
#devicePanel{
    z-index: 200000 !important;
}
/*نجعل المودال و خلفيته فوق أي عنصر آخر دائماً */
#callModal{
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999999999 !important;
    display: none;
    position: absolute;
    background: rgba(0,0,0,.95);
    top: 10%;
    right: 10%;
    left: 10%;

}


#callModal.show{
    display:block !important;
}

#callModal .modal-dialog{
    margin:0 !important;
    max-width:100% !important;
    width:100% !important;
    height:75vh !important;
}

#callModal .modal-content{
    height:75vh !important;
    border-radius:0 !important;
    border:none !important;
    background:#000 !important;
}

#callModal .modal-body{
    flex:1;
    overflow:hidden;
}

#remoteVideo{
    width:100%;
    height:100%;
    object-fit:cover;
    background:#000;
}

#localVideo{
    z-index:5;
}

/* Messenger voice and video calls */
#callModal{
    position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;
    z-index:2147483000!important;background:#090a0c!important;display:none;top:0!important;right:0!important;left:0!important;
}
#callModal .call-shell{height:100%;display:flex;flex-direction:column;background:#090a0c;color:#fff}
#callModal .call-stage{position:relative;flex:1;min-height:0;overflow:hidden;display:grid;place-items:center}
#remoteVideo{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;background:#090a0c}
#remoteAudio{display:none}
.audio-call-backdrop{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 50% 35%,#334057 0,#171b23 38%,#090a0c 76%);z-index:2}
.audio-call-backdrop.video-active{background:#111}.audio-call-backdrop.video-active>*{opacity:0;pointer-events:none}
.call-avatar-rings{position:relative;width:154px;height:154px;border-radius:50%;display:grid;place-items:center;margin-bottom:22px}
.call-avatar-rings:before,.call-avatar-rings:after{content:"";position:absolute;inset:-12px;border:2px solid #ffffff2b;border-radius:50%;animation:callPulse 2s infinite}
.call-avatar-rings:after{inset:-28px;animation-delay:.6s}.call-avatar-rings img{width:142px;height:142px;border-radius:50%;object-fit:cover;border:4px solid #ffffff2b;box-shadow:0 12px 35px #0008}
.audio-call-backdrop h2{font-size:28px;font-weight:800;margin:0 0 7px}.audio-call-backdrop p{color:#c6c9cf;font-size:16px;margin:0}.audio-call-backdrop strong{margin-top:8px;font-size:17px;letter-spacing:1px}
#localVideo{position:absolute!important;z-index:6!important;width:190px!important;height:140px!important;top:24px!important;right:24px!important;left:auto!important;border-radius:16px!important;object-fit:cover!important;border:2px solid #ffffff8c!important;background:#242526;box-shadow:0 8px 30px #0008;display:none}
.call-topbar{position:absolute;z-index:8;top:22px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;direction:ltr}.call-topbar button{width:44px;height:44px;border:0;border-radius:50%;background:#0008;color:#fff}.call-topbar span{background:#0008;padding:8px 12px;border-radius:18px;font-size:12px;color:#e4e6eb}
.call-actions{z-index:10;min-height:105px;background:#111318;display:flex;justify-content:center;align-items:center;gap:17px;padding:14px 20px calc(14px + env(safe-area-inset-bottom))}
.call-action{border:0;background:transparent;color:#e4e6eb;min-width:66px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px}.call-action i{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#33363d;font-size:18px}.call-action.active i{background:#fff;color:#17191d}.call-hangup i{background:#e41e3f!important;color:#fff!important;transform:rotate(135deg)}
.call-device-panel{display:none;position:absolute!important;z-index:12!important;right:20px!important;left:auto!important;bottom:20px!important;width:min(390px,calc(100% - 40px))!important;background:#242526!important;border:1px solid #ffffff17;border-radius:16px;padding:18px;box-shadow:0 12px 40px #000a;color:#fff}.call-device-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.call-device-title button{border:0;background:#3a3b3c;color:#fff;width:32px;height:32px;border-radius:50%}.call-device-panel label{display:block;font-size:12px;color:#b0b3b8;margin:10px 0 5px}.call-device-panel select{background-color:#3a3b3c;color:#fff;border-color:#555}
#incomingCall{position:fixed;inset:0;z-index:2147483001;background:#000b;display:grid;place-items:center;backdrop-filter:blur(12px);padding:18px}.incoming-call-card{width:min(390px,100%);background:linear-gradient(160deg,#303747,#17191f);border-radius:28px;padding:34px 24px;text-align:center;color:#fff;box-shadow:0 24px 70px #000b}.incoming-call-card img{width:116px;height:116px;border-radius:50%;object-fit:cover;border:4px solid #ffffff30}.incoming-call-card h3{font-weight:800;margin:18px 0 4px}.incoming-call-card p{color:#c8cbd1}.incoming-call-actions{display:flex;justify-content:center;gap:42px;margin-top:30px}.incoming-call-actions button{border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:8px}.incoming-call-actions i{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;font-size:23px}.incoming-call-actions .reject i{background:#e41e3f;transform:rotate(135deg)}.incoming-call-actions .accept i{background:#31a24c}
@keyframes callPulse{0%{transform:scale(.92);opacity:.8}70%{transform:scale(1.08);opacity:0}100%{opacity:0}}
@media(max-width:700px){#localVideo{width:112px!important;height:150px!important;top:72px!important;right:14px!important}.call-actions{gap:5px;justify-content:space-around}.call-action{min-width:52px}.call-action i{width:45px;height:45px}.call-action span{font-size:10px}.audio-call-backdrop h2{font-size:23px}.call-avatar-rings{transform:scale(.84)}}






#showphoto{
    z-index:9999 !important;
}



 /* إزالة كل الفراغات */
  .navbar, .navbar .container-fluid, .navbar .row, .navbar [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
  }
  .navbar .col-4.d-flex {
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }
  .navbar .col-3:last-child {
    justify-content: flex-end !important;
    padding-right: 0 !important;
    z-index: 99999 !important;
  }



  .navbar {
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-height: 56px;
    background: white !important;
  }

  /* تحسين الشكل الأساسي */
  .navlink .nav-link {
    border-radius: 12px;
    transition: background-color 0.2s;
    margin: 0 2px;
    padding: 8px 16px !important;
  }
  .navlink .nav-link:hover {
    background-color: #f0f2f5;
  }

  
  /* .navlink .nav-link.active {
    color: #1b74e4 !important;
    position: relative;
  } */
  /* .navlink .nav-link.active svg {
    fill: #1b74e4 !important;
  } */
  /* .navlink .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #1b74e4;
    border-radius: 3px;
  } */


  .icon-wrapper {
    position: relative;
    cursor: pointer;
  }
  .widget-icon {
    background-color: #e4e6e9;
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .widget-icon:hover {
    background-color: #d8dadf;
  }
  /* popup styles */
  .fb-popup {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    width: 360px;
    max-width: 90vw;
    z-index: 1050;
    display: none;
    overflow: hidden;
  }
  .fb-popup.show {
    display: block;
  }
  .popup-header {
    padding: 16px;
    border-bottom: 1px solid #e4e6e9;
    font-weight: 600;
    font-size: 1.25rem;
  }
  .popup-list {
    padding: 8px 0;
  }
  .popup-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
    min-height: 48px;
    color: var(--fb-text);
    font-weight: 600;
    text-align: start;
  }
  .popup-item:hover {
    background-color: #f0f2f5;
  }
  .popup-item-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4e6eb;
    color: #1c1e21;
    font-size: 17px;
  }
  .profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    left: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    width: min(300px, calc(100vw - 24px));
    z-index: 1050;
    display: none;
    overflow: hidden;
  }
  .profile-menu.show {
    display: block;
  }
  
  /* ========== الشريط السفلي الثابت للموبايل ========== */
  .mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    padding: 6px 0;
    border-top: 1px solid #e4e6e9;
  }
  .mobile-bottom-nav .nav-tabs-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
  }
  .mobile-bottom-nav .nav-link {
    display: inline-block;
    padding: 6px 0;
    border-radius: 12px;
    transition: background 0.2s;
  }
  .mobile-bottom-nav .nav-link.active svg {
    fill: #1b74e4 !important;
  }
  
  @media (max-width: 768px) {

    #desktop-tabs{
      display: none !important;
    }
    .navbar .col-3:last-child {
    justify-content: flex-end !important;
    padding-right: 0 !important;
    z-index: 99999 !important;
    display:block;
    position: absolute;
    right: 10px;
  }
    /* إخفاء التبويبات من النافبار العلوي */
    .desktop-tabs-col {
      display: none !important;
    }
    /* إظهار الشريط السفلي */
    .mobile-bottom-nav {
      display: block;
    }
    /* إضافة مسافة أسفل الصفحة لئلا يحجب الشريط المحتوى */
    body {
      padding-bottom: 70px;
    }
    /* تحسين popup في الموبايل */
    .fb-popup {
      width: 300px;
      right: -80px;
    }
    .widget-icon {
      width: 36px;
      height: 36px;
    }
    .widget-icon svg {
      width: 18px;
      height: 18px;
    }
  }
  
  @media (min-width: 769px) {
    body {
      padding-top: 56px;
    }
  }

          /* =========================
           إخفاء السايد بار في الموبايل
        ========================= */
#lol {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* مهم بدل center */
    overflow-y: auto; /* يسمح بالتمرير */
    padding: 20px 10px;
    z-index: 9999 !important; /* أعلى من أي عنصر آخر */
}

/* Facebook-style visual system */
:root {
  --fb-blue: #1877f2;
  --fb-bg: #f0f2f5;
  --fb-text: #050505;
  --fb-muted: #65676b;
  --fb-border: #e4e6eb;
}

html, body { background: var(--fb-bg); color: var(--fb-text); }
body { font-family: Arial, Helvetica, sans-serif; }
img.rounded-circle, img.rounded-pill, .ms-sidebar-avatar img { object-fit: cover; }
.navbar { height: 56px; border-bottom: 1px solid var(--fb-border); z-index: 1060; }
.navbar { padding:0 16px !important; box-shadow:0 1px 2px rgba(0,0,0,.12) !important; }
.navbar > .container-fluid, .navbar > .container-fluid > .row { height:56px !important; padding:0 !important; margin:0 !important; }
.navbar-brand-area { gap:8px; }
.facebook-mark { width:40px; height:40px; flex:0 0 40px; display:block; }
.navbar-search-form { position:relative; width:min(240px,calc(100% - 48px)); margin:0; }
.navbar-search-form > i { position:absolute; left:14px; top:50%; transform:translateY(-50%); z-index:2; color:#65676b; font-size:14px; }
.navbar-search-form .form-control { width:100%; padding-left:38px !important; font-size:15px; box-shadow:none !important; }
.desktop-tabs-col > div { max-width:680px; }
.fb-nav-tab { flex:1 1 0; max-width:112px; padding:0 4px; }
.navbar .fb-nav-tab .nav-link { position:relative; width:100%; padding:0 !important; margin:4px 0 0; border-radius:8px 8px 0 0; font-size:23px; }
.navbar .fb-nav-tab .nav-link > svg { display:none; }
.navbar .fb-nav-tab .fb-tab-fa { width:28px; font-size:22px; line-height:1; }
.navbar .fb-nav-tab .nav-link:not(.active):hover { height:48px; margin-top:4px; margin-bottom:4px; border-radius:8px; background:#f0f2f5; }
.navbar .fb-nav-tab .nav-link.active { border-bottom:3px solid var(--fb-blue); }
.navbar-right-layer > div { gap:8px !important; margin-right:0 !important; }
.navbar-right-layer .widget-icon { width:40px; height:40px; background:#e4e6eb !important; color:#050505; }
.navbar-right-layer .widget-icon svg { fill:currentColor; }
.navbar-right-layer .icon-wrapper { overflow:visible !important; isolation:isolate; }
.navbar-right-layer .widget-icon { overflow:visible !important; }
.nav-alert-badge { position:absolute !important; top:-7px !important; right:-8px !important; left:auto !important; z-index:50 !important; min-width:22px; height:22px; padding:0 5px !important; display:inline-flex; align-items:center; justify-content:center; border:2px solid #fff; border-radius:999px; background:#e41e3f !important; color:#fff !important; font-family:Arial,sans-serif; font-size:11px !important; line-height:18px !important; font-weight:800 !important; text-align:center; box-sizing:border-box; box-shadow:0 1px 4px rgba(0,0,0,.34); pointer-events:none; }
.nav-alert-badge[style*="display:none"], .nav-alert-badge[style*="display: none"] { display:none !important; }
#notifications-icon.has-unread .widget-icon, #chat-icon.has-unread .widget-icon { color:#0866ff; background:#e7f3ff !important; }
#chat-popup { width:390px; max-width:calc(100vw - 20px); }
.chat-see-all { color:#0866ff; font-size:14px; font-weight:600; text-decoration:none; }
.chat-recent-list { max-height:430px; overflow-y:auto; padding:6px; }
.chat-popup-loading,.chat-popup-empty { display:flex; align-items:center; justify-content:center; gap:8px; min-height:90px; color:#65676b; font-size:14px; }
.chat-recent-item { display:flex; align-items:center; gap:11px; min-height:70px; padding:8px; border-radius:10px; color:#050505; text-decoration:none; }
.chat-recent-item:hover { background:#f0f2f5; }
.chat-recent-avatar { width:52px; height:52px; flex:0 0 52px; border-radius:50%; object-fit:cover; background:#e4e6eb; }
.chat-recent-body { min-width:0; flex:1; }
.chat-recent-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.chat-recent-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:600; }
.chat-recent-time { flex:none; color:#65676b; font-size:12px; }
.chat-recent-preview { display:flex; align-items:center; gap:7px; margin-top:3px; color:#65676b; font-size:13px; }
.chat-recent-preview span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-recent-item.unread .chat-recent-name,.chat-recent-item.unread .chat-recent-preview { color:#050505; font-weight:700; }
.chat-unread-dot { flex:none; min-width:20px; height:20px; padding:0 5px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:#0866ff; color:#fff; font-size:11px; font-weight:800; }
@media (max-width:768px) {
  .nav-alert-badge { top:-8px !important; right:-8px !important; min-width:21px; height:21px; font-size:10px !important; }
  #chat-popup, #notifications-popup { position:fixed; top:58px; right:8px; left:auto; width:min(390px, calc(100vw - 16px)); max-width:none; max-height:calc(100vh - 76px); }
  .chat-recent-list, #notifications-list { max-height:calc(100vh - 145px) !important; }
}
#menu-icon { order:1; } #chat-icon { order:2; } #notifications-icon { order:3; } #profile-icon { order:4; }
.navbar-right-layer .icon-wrapper:active .widget-icon { transform:scale(.96); }
.navbar .form-control { background: #f0f2f5 !important; color: var(--fb-text); height: 40px; }
.navbar .navlink .nav-link { height: 56px; display: flex; align-items: center; justify-content: center; color: #65676b !important; }
.navbar .navlink .nav-link.active { color: var(--fb-blue) !important; border-bottom: 3px solid var(--fb-blue); }
.widget-icon { transition: background .15s ease; }
.widget-icon:hover { background: #e4e6eb !important; }
#content { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }
#content .card, .postes .card { border: 1px solid var(--fb-border); border-radius: 8px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }
.inpotbox { background: #f0f2f5 !important; border: 0 !important; height: 40px; }
.postes { margin-top: 12px !important; }
.postes .card-header, .postes .card-body { background: #fff !important; }
.postes .card-header { border-bottom: 0; }
.postes .post-author { font-size: 15px; line-height: 20px; font-weight: 600; }
.postes .post-time { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 400; }
.postes .like { position:relative; }
.reaction-picker { position:absolute; left:50%; bottom:36px; display:flex; gap:3px; padding:6px 8px; border:1px solid var(--fb-border); border-radius:24px; background:#fff; box-shadow:0 3px 12px rgba(0,0,0,.2); opacity:0; visibility:hidden; transform:translate(-50%,8px); transition:.16s ease; z-index:30; }
.post-engagement-summary { min-height:28px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--fb-muted); direction:ltr; }
.post-engagement-totals { display:flex; align-items:center; gap:18px; }
.post-engagement-totals:empty { display:none; }
.post-comment-count { white-space:nowrap; }
.post-reaction-icons { display:flex; flex-direction:row-reverse; align-items:center; padding:0 2px; border:0; background:transparent; cursor:pointer; }
.post-reaction-icon { width:23px; height:23px; display:inline-flex; align-items:center; justify-content:center; margin-left:-4px; border:2px solid #fff; border-radius:50%; background:#fff; font-size:16px; line-height:1; box-sizing:border-box; }
.post-reaction-icon:first-child { margin-left:0; }
.post-reaction-icons:hover .post-reaction-icon { transform:translateY(-1px); }
[dir="rtl"] .post-engagement-totals { direction:rtl; }
.postes .like:hover .reaction-picker, .postes .like:focus-within .reaction-picker { opacity:1; visibility:visible; transform:translate(-50%,0); }
.reaction-option { width:34px; height:34px; padding:0; border:0; border-radius:50%; background:transparent; font-size:24px; transition:transform .12s; }
.reaction-option:hover { transform:scale(1.28) translateY(-3px); }
.reaction-modal { position:fixed; inset:0; z-index:3000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.5); }
.reaction-modal-card { width:min(500px,100%); max-height:75vh; overflow:hidden; border-radius:12px; background:#fff; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.reaction-modal-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--fb-border); font-size:18px; }
.reaction-modal-header button { width:34px; height:34px; border:0; border-radius:50%; background:#e4e6eb; font-size:24px; line-height:1; }
.reaction-modal-tabs { display:flex; gap:4px; padding:8px 12px; overflow-x:auto; border-bottom:1px solid var(--fb-border); }
.reaction-modal-tabs button { padding:8px 11px; border:0; border-radius:8px; background:transparent; color:var(--fb-muted); font-weight:600; }
.reaction-modal-tabs button.active { color:var(--fb-blue); background:#e7f3ff; }
.reaction-modal-list { max-height:55vh; overflow-y:auto; padding:8px; }
.reaction-person { display:flex; align-items:center; gap:11px; padding:8px; border-radius:8px; color:var(--fb-text); text-decoration:none; }
.reaction-person:hover { background:#f0f2f5; }
.reaction-person img { width:42px; height:42px; border-radius:50%; object-fit:cover; }
.reaction-person span { display:flex; flex-direction:column; }
.reaction-person small, .reaction-empty { color:var(--fb-muted); }
.reaction-empty { padding:28px; text-align:center; }
.p_co { position:relative; height:350px; overflow:hidden; background:linear-gradient(135deg,#d8dadf,#bcc0c4); }
.profile-header-content .p_co { width:100%; margin:0 !important; }
.profile-cover-image { width:100%; height:100%; object-fit:cover; display:block; }
.profile-cover-fallback { background:linear-gradient(135deg,#d8dadf,#bcc0c4); }
.profile-header-img { position:relative; width:168px; height:168px; }
.profile-avatar-image { width:168px; height:168px; object-fit:cover; }
.profile-photo-edit { position:absolute; display:flex; align-items:center; justify-content:center; gap:7px; background:#e4e6eb; color:#050505; cursor:pointer; border-radius:8px; font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.15); z-index:2; }
.profile-cover-edit { right:16px; left:auto !important; bottom:16px; width:auto !important; padding:9px 13px; }
.profile-avatar-edit { right:4px; bottom:8px; width:38px; height:38px; border-radius:50%; }
.profile-photo-edit.is-loading { pointer-events:none; opacity:.65; }
.postes hr { border-color: var(--fb-border); opacity: 1; }
.btn-link { color: var(--fb-muted); font-weight: 600; }
.text-blue, .text-primary { color: var(--fb-blue) !important; }
.fb-popup, .profile-menu { border: 1px solid var(--fb-border); box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 8px; }
.mini-chat { position: fixed; right: 340px; bottom: 16px; width: 330px; height: 390px; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 2px 14px rgba(0,0,0,.25); z-index: 2000; overflow: hidden; }
.mini-chat-image { display:block; max-width:190px; max-height:150px; margin-top:6px; border-radius:10px; object-fit:cover; }
.feed-quality-ready .vjs-quality-selector { display:none !important; }
.feed-quality-select { position:absolute; right:46px; bottom:38px; z-index:12; min-width:76px; height:30px; padding:3px 24px 3px 8px; border:1px solid rgba(255,255,255,.45); border-radius:6px; background:#18191c; color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.feed-quality-select:focus { outline:2px solid #1877f2; outline-offset:1px; }
.mini-chat-header { height: 48px; padding: 12px 14px; color: #fff; background: var(--fb-blue); display:flex; justify-content:space-between; align-items:center; }
.mini-chat-messages { height: 294px; padding: 12px; overflow-y: auto; background: #f0f2f5; }
.mini-chat-message { background: #e4e6eb; border-radius: 18px; padding: 7px 11px; margin: 6px 0; max-width: 85%; width: fit-content; }
.mini-chat-message.mine { background: var(--fb-blue); color: #fff; margin-left: auto; }
.mini-chat-form { display:flex; gap:6px; padding:8px; background:#fff; }
.mini-chat-form input { border-radius: 18px; }
.messenger-emoji-picker { position:absolute; bottom:62px; left:12px; display:flex; flex-wrap:wrap; gap:4px; width:230px; padding:10px; background:#fff; border:1px solid var(--fb-border); border-radius:12px; box-shadow:0 4px 18px rgba(0,0,0,.16); z-index:20; }
.messenger-emoji-picker[hidden] { display:none; }
.messenger-emoji { width:36px; height:36px; padding:0; border:0; border-radius:8px; background:transparent; font-size:22px; }
.messenger-emoji:hover { background:#f0f2f5; }
.widget-chat-input { position:relative; }
.messenger .widget-chat-input { display:grid; grid-template-columns:42px minmax(0, 1fr) 42px; align-items:center; gap:8px; padding:8px 12px; background:#fff; border-top:1px solid var(--fb-border); }
.messenger .widget-chat-toolbar { display:flex; align-items:center; }
.messenger .widget-chat-toolbar-link { display:flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:0 !important; border-radius:50%; color:var(--fb-blue); background:transparent; }
.messenger .widget-chat-toolbar-link:hover { background:#f0f2f5; }
.messenger #messageInput { min-height:40px !important; height:40px !important; max-height:96px; padding:10px 14px; resize:none; border:0 !important; border-radius:20px !important; background:#f0f2f5 !important; box-shadow:none !important; }
.messenger #sendButton { width:38px; height:38px; padding:0; display:flex; align-items:center; justify-content:center; }
.feed-loading { width: min(680px, calc(100% - 24px)); margin: 14px auto; }
.skeleton-post { background:#fff; border:1px solid #e4e6eb; border-radius:8px; padding:16px; min-height:250px; margin-bottom:14px; overflow:hidden; }
.skeleton { background:linear-gradient(90deg,#eef0f3 25%,#f8f9fa 37%,#eef0f3 63%); background-size:400% 100%; animation:skeleton-shimmer 1.3s ease infinite; border-radius:6px; }
.skeleton-avatar { width:42px; height:42px; border-radius:50%; float:left; margin-right:12px; }
.skeleton-lines { padding-top:4px; }.skeleton-line { height:10px; width:180px; margin:7px 0; }.skeleton-line.short { width:120px; }.skeleton-line.tiny { width:72px; }
.skeleton-text { clear:both; height:10px; width:92%; margin-top:24px; }.skeleton-text.medium { clear:none; width:64%; margin-top:9px; }
.skeleton-media { height:110px; margin:18px -16px 0; border-radius:0; }
.skeleton-actions { height:34px; margin-top:12px; display:flex; align-items:center; justify-content:space-around; background:none; }
.skeleton-action { width:24%; height:10px; display:block; }
.skeleton-media-grid { width:min(1180px,calc(100% - 32px)); margin:16px auto; display:grid; gap:16px; }
.skeleton-video-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.skeleton-video-card { min-width:0; padding:10px; background:#fff; border:1px solid #e4e6eb; border-radius:12px; }
.skeleton-video-frame { position:relative; width:100%; aspect-ratio:16/9; border-radius:10px; }
.skeleton-video-play { position:absolute; inset:50% auto auto 50%; translate:-50% -50%; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.75); color:#c6cbd2; }
.skeleton-video-duration { position:absolute; right:8px; bottom:8px; width:42px; height:15px; background:#dfe2e7; }
.skeleton-media-title { width:76%; height:11px; margin-top:12px; }
.skeleton-media-meta { width:42%; height:9px; margin-top:8px; }
.skeleton-photo-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.skeleton-photo-tile { position:relative; aspect-ratio:1; border-radius:10px; }
.skeleton-photo-icon { position:absolute; inset:50% auto auto 50%; translate:-50% -50%; color:#d5d9df; font-size:32px; }
@keyframes skeleton-shimmer { 0% { background-position:100% 0; } 100% { background-position:-100% 0; } }
[dir="rtl"] body { text-align:right; }
[dir="rtl"] .skeleton-avatar { float:right; margin-right:0; margin-left:12px; }
[dir="rtl"] .ms-sidebar-list { padding-right:0; }
[dir="rtl"] .mini-chat { right:auto; left:340px; }
[dir="rtl"] .mini-chat-message.mine { margin-left:0; margin-right:auto; }
[dir="rtl"] .navbar .row { direction:ltr; }
[dir="rtl"] .navbar input, [dir="rtl"] .fb-popup, [dir="rtl"] .profile-menu { direction:rtl; text-align:right; }
.call-panel { position: fixed; right: 340px; bottom: 420px; width: 330px; height: 230px; background: #111; border-radius: 10px; z-index: 2001; overflow:hidden; box-shadow:0 4px 18px rgba(0,0,0,.3); }
.fb-explore { max-width: 1050px; min-height: calc(100vh - 56px); }
.fb-explore .card { border-radius: 10px; }
.explore-avatar { height: 190px; object-fit: cover; background: #e4e6eb; }
.call-panel video { width:100%; height:100%; object-fit:cover; }
.call-label { position:absolute; top:10px; left:12px; color:#fff; font-weight:600; }
.call-panel #end-call { position:absolute; bottom:12px; left:calc(50% - 20px); transform:rotate(135deg); }
@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  #content { width: 100%; max-width: none; }
  .navbar { height: 56px; }
  .profile .container, .profile + .container { width:100% !important; }
  .p_co { height:210px; }
  .profile-header-img, .profile-avatar-image { width:132px; height:132px; }
  .profile-header-img { margin-top:-44px !important; }
  .profile-header-info { margin-top:-24px; }
  .profile-header-info h4 { font-size:24px; }
  .profile-cover-edit span { display:none; }
  .navbar { padding:0 10px !important; }
  .navbar-brand-area { width:auto !important; }
  .navbar-search-form { width:40px; }
  .navbar-search-form > i { left:13px; }
  .navbar-search-form .form-control { width:40px !important; padding:0 !important; color:transparent; cursor:pointer; }
  .navbar-search-form .form-control::placeholder { color:transparent; }
  .navbar-right-layer { width:auto !important; }
  #notifications-icon { display:block !important; }
  .navbar-right-layer > div { gap:5px !important; }
  .navbar-right-layer .widget-icon { width:36px; height:36px; }
  #profile-icon .widget-icon, #profile-icon .widget-icon img { width:36px !important; height:36px !important; }
  .postes .card { border-radius: 0 !important; border-left: 0; border-right: 0; }
  .mini-chat { right: 10px; bottom: 72px; width: calc(100% - 20px); }
  .call-panel { right: 10px; bottom: 480px; width: calc(100% - 20px); }
  .skeleton-video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .skeleton-photo-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .skeleton-video-grid { grid-template-columns:1fr; }
  .skeleton-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.user-hover-card { position:fixed; z-index:2100; padding:18px; background:#fff; border:1px solid #dfe1e5; border-radius:14px; box-shadow:0 10px 32px rgba(0,0,0,.22); color:#1c1e21; }
.user-hover-main { display:flex; gap:15px; align-items:flex-start; }
.user-hover-main > a img { width:104px; height:104px; border-radius:50%; object-fit:cover; border:4px solid #fff; outline:3px solid #1877f2; }
.user-hover-info { flex:1; min-width:0; padding-top:2px; }
.user-hover-name { display:block; color:#050505; font-size:22px; line-height:1.2; font-weight:700; text-decoration:none; margin-bottom:10px; }
.user-hover-name:hover { text-decoration:underline; }
.user-hover-detail { display:flex; align-items:flex-start; gap:9px; margin:8px 0; color:#4b4f56; font-size:14px; line-height:1.35; }
.user-hover-detail > i { width:19px; flex:0 0 19px; margin-top:2px; color:#8a8d91; font-size:17px; text-align:center; }
.user-hover-status { display:inline-flex; align-items:center; gap:5px; margin-top:4px; color:#1877f2; font-size:13px; font-weight:600; }
.user-hover-actions { display:grid; grid-template-columns:1fr 1.25fr; gap:9px; margin-top:16px; }
.user-hover-actions .btn { min-height:42px; display:flex; align-items:center; justify-content:center; gap:8px; border-radius:9px; font-weight:600; }
.user-hover-close { position:absolute; top:9px; right:10px; width:32px; height:32px; border:0; border-radius:50%; background:#f0f2f5; color:#606770; font-size:23px; line-height:1; }
.user-hover-loading { display:flex; justify-content:center; align-items:center; gap:9px; min-height:110px; color:#65676b; }
[dir="rtl"] .user-hover-close { right:auto; left:10px; }
@media (max-width:480px) { .user-hover-main > a img { width:78px; height:78px; } .user-hover-name { font-size:19px; } .user-hover-actions { grid-template-columns:1fr; } }

/* Feed layout polish */
body { -webkit-font-smoothing: antialiased; }
.home-feed-layout { min-height: calc(100vh - 56px); }
.home-feed-column { width: min(680px, calc(100% - 640px)); max-width: 680px; margin-inline: auto !important; }
.home-left-rail, .home-right-rail { flex: 1 1 320px; max-width: none; }
.home-feed-column #content { width: 100%; padding: 16px 0 32px !important; }
.home-feed-column #content.mt-3 { margin-top: 0 !important; }

#myForm > .row { align-items: center; min-height: 72px; padding: 12px 16px !important; }
#myForm > .row > .col-1 { width: 48px; flex: 0 0 48px; }
#myForm > .row > .col-8 { width: auto; min-width: 0; flex: 1 1 auto; padding: 0 8px 0 0; }
#myForm > .row > .col-3 { width: auto; flex: 0 0 auto; padding: 0; }
#myForm .inpotbox { margin: 0 !important; box-shadow: none !important; font-size: 16px; transition: background-color .15s ease; }
#myForm .inpotbox:hover { background: #e4e6e9 !important; }
#myForm button { width: 42px; height: 42px; padding: 9px !important; }
#myForm button:hover { background: #f0f2f5; }
.profile-composer-top { display:flex; align-items:center; gap:10px; padding:10px 8px 12px; }
.profile-composer-avatar { width:44px; height:44px; flex:0 0 44px; border-radius:50%; object-fit:cover; border:0; }
.profile-composer-prompt { min-width:0; flex:1; display:flex; align-items:center; min-height:42px; padding:9px 16px; border-radius:22px; background:#f0f2f5; color:#65676b; font-size:16px; font-weight:500; text-decoration:none; }
.profile-composer-prompt:hover { background:#e4e6eb; color:#65676b; text-decoration:none; }
.profile-composer-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:8px; border-top:1px solid var(--fb-border); }
#myForm .profile-composer-action { width:100%; height:44px; min-width:0; display:flex; align-items:center; justify-content:center; gap:8px; margin:0; padding:7px 10px !important; border:0; border-radius:8px; background:transparent; color:#65676b; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; }
#myForm .profile-composer-action i { flex:0 0 auto; font-size:20px; }
#myForm .profile-composer-action:hover { background:#f0f2f5; }
.audience-dropdown { display:inline-block; }
.audience-selector { min-width:116px; height:34px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border:0; border-radius:7px; background:#e4e6eb; color:#050505; font-size:13px; font-weight:700; }
.audience-selector:hover, .audience-selector[aria-expanded="true"] { background:#d8dadf; }
.audience-caret { margin-inline-start:auto; font-size:11px; }
.audience-menu { width:min(330px,calc(100vw - 32px)); padding:8px !important; border:1px solid var(--fb-border) !important; border-radius:12px !important; box-shadow:0 8px 24px rgba(0,0,0,.18) !important; }
.audience-option { position:relative; display:grid !important; grid-template-columns:42px minmax(0,1fr) 20px; align-items:center; gap:10px; min-height:62px; margin:2px 0 !important; padding:8px !important; border-radius:8px !important; white-space:normal; }
.audience-option:hover, .audience-option.active { background:#f0f2f5; }
.audience-option-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#e4e6eb; color:#050505; font-size:18px; }
.audience-option > span:nth-child(2) { min-width:0; display:flex; flex-direction:column; gap:2px; }
.audience-option strong { color:#050505; font-size:14px; }
.audience-option small { color:#65676b; font-size:12px; }
.audience-check { visibility:hidden; color:var(--fb-blue); }
.audience-option.active .audience-check { visibility:visible; }
#modal-dialog .modal-content, #modal-dialog2 .modal-content { width:min(600px,calc(100vw - 24px)) !important; border:0; border-radius:12px; overflow:visible; }
#modal-dialog .modal-header, #modal-dialog2 .modal-header { min-height:64px; padding:12px 18px; border-bottom:1px solid var(--fb-border); }
#modal-dialog .modal-title, #modal-dialog2 .modal-title { flex:1; text-align:center; font-size:20px; font-weight:700; }

.postes { margin-top: 16px !important; }
.postes > .col { margin-top: 0 !important; }
.postes .card { overflow: visible; border: 0 !important; border-radius: 10px !important; box-shadow: 0 1px 2px rgba(0,0,0,.14) !important; }
.postes .card-header { padding: 12px 16px 8px !important; margin-top: 0 !important; border-radius: 10px 10px 0 0 !important; }
.postes .card-header > .row { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 40px; align-items: center; margin: 0; }
.postes .card-header > .row > [class*="col-md"] { width: auto; max-width: none; margin: 0 !important; padding: 0 !important; }
.postes .card-header > .row > [class*="offset-md"] { margin-left: 0 !important; }
.postes .card-header .widget-icon, .postes .card-header .widget-icon img { width: 40px; height: 40px; }
.postes .card-header .row .row { margin: 0; }
.postes .card-header .btn:hover { background: #f0f2f5 !important; }
.postes .card-body > .mb-3 > .m-2 { margin: 4px 16px 12px !important; font-size: 15px; line-height: 1.34; }
.postes .card-body > .d-flex.align-items-center.m-2 { min-height: 32px; margin: 0 16px !important; color: var(--fb-muted); }
.postes .card-body > .d-flex.align-items-center.fw-bold { padding: 0 12px; }
.postes .card-body > .d-flex.align-items-center.fw-bold > a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--fb-muted) !important; font-size: 15px; }
.postes .card-body > .d-flex.align-items-center.fw-bold > a:hover { background: #f0f2f5; }
.postes .card-body > .d-flex.align-items-center.fw-bold .btn { width: 100%; min-height: 44px; padding: 0 8px; }
.postes hr { margin-inline: 16px; }
.postes input.comment { height: 36px; border: 0; background: #f0f2f5; box-shadow: none; }
.postes input.comment:focus { background: #f0f2f5; box-shadow: 0 0 0 2px rgba(24,119,242,.16); }
.postes [id^="comment_block_"] > .comment {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 8px;
  margin: 12px 16px !important;
}
.postes [id^="comment_block_"] > .comment > div { width: auto !important; max-width: none !important; margin: 0 !important; }
.postes [id^="comment_block_"] > .comment > div:first-child { padding-top: 2px !important; }
.postes [id^="comment_block_"] > .comment > div:first-child img { width: 36px; height: 36px; object-fit: cover; }
.postes [id^="father_cid_"] > .bg-gray-200 {
  display: inline-block;
  max-width: 100%;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 18px !important;
  background: #f0f2f5 !important;
  overflow-wrap: anywhere;
}
.postes [id^="father_cid_"] > .bg-gray-200 h5 { margin: 0 0 2px !important; padding: 0 !important; color: #050505; font-size: 13px; line-height: 16px; font-weight: 700; }
.postes [id^="father_cid_"] > .bg-gray-200 p { margin: 0 !important; padding: 0 !important; color: #050505; font-size: 15px; line-height: 19px; }
.postes [id^="father_cid_"] > p.my-0 { display:flex; align-items:center; gap:10px; min-height:24px; margin:0 12px !important; }
.postes [id^="father_cid_"] > p.my-0 .btn { margin:0 !important; padding:2px 0 !important; font-size:12px; line-height:18px; }
.comment-time, .reply-time { color:#65676b; font-size:12px; line-height:18px; white-space:nowrap; }
.postes [id^="reply-box_"] > div { margin:4px 0 8px !important; padding:0 !important; }
.postes [id^="reply-box_"] .position-relative { display:flex; align-items:center; margin:0 !important; }
.comment-tool-picker { position:absolute; right:4px; bottom:44px; z-index:40; width:252px; display:flex; flex-wrap:wrap; gap:3px; padding:8px; border:1px solid var(--fb-border); border-radius:14px; background:#fff; box-shadow:0 6px 22px rgba(0,0,0,.18); }
.comment-tool-picker button { width:42px !important; height:38px !important; display:flex; align-items:center; justify-content:center; margin:0 !important; padding:0 !important; border:0 !important; border-radius:8px !important; background:transparent !important; font-size:22px; line-height:1; }
.comment-tool-picker button:hover { background:#f0f2f5 !important; transform:scale(1.08); }
.comment-tool-picker.sticker-picker button { width:54px !important; height:48px !important; font-size:28px; }
.comment-media-preview { display:flex; align-items:center; gap:8px; max-width:100%; margin:0 0 6px; padding:7px 10px; border-radius:10px; background:#e7f3ff; color:#1877f2; font-size:12px; }
.comment-media-preview span { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comment-media-preview button { width:24px !important; height:24px !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:50% !important; background:#d8e9fb !important; color:#050505; font-size:18px; line-height:1; }
.comment-media { display:block; width:auto; max-width:min(360px,100%); max-height:320px; margin-top:7px; border-radius:12px; object-fit:cover; background:#000; }
.postes [id^="reply-box_"] textarea { min-height:38px; height:38px; max-height:100px; padding:9px 142px 9px 14px !important; border:0; border-radius:20px !important; resize:none; background:#f0f2f5; font-size:14px; line-height:20px; box-shadow:none; }
.postes [id^="reply-box_"] textarea:focus { background:#f0f2f5; box-shadow:0 0 0 2px rgba(24,119,242,.18); }
.postes [id^="reply-box_"] .position-absolute { right:38px !important; padding:0 4px !important; }
.postes [id^="reply-box_"] .position-absolute .btn { margin:0 !important; padding:5px !important; color:#65676b; }
.postes [id^="reply-box_"] button.reply-send, #myForm button.reply-send { position:absolute !important; top:50% !important; right:5px !important; bottom:auto !important; z-index:4; width:30px !important; height:30px !important; display:flex !important; align-items:center; justify-content:center; margin:0 !important; padding:0 !important; border:0 !important; border-radius:50% !important; background:transparent !important; color:var(--fb-blue) !important; box-shadow:none !important; transform:translateY(-50%); appearance:none; }
.postes [id^="reply-box_"] button.reply-send:hover, #myForm button.reply-send:hover { background:#e4e6eb !important; }
[dir="rtl"] .postes [id^="reply-box_"] textarea { padding-right:14px !important; padding-left:142px !important; }
[dir="rtl"] .comment-tool-picker { right:auto; left:4px; }
[dir="rtl"] .postes [id^="reply-box_"] .position-absolute { right:auto !important; left:38px !important; }
[dir="rtl"] .postes [id^="reply-box_"] button.reply-send, [dir="rtl"] #myForm button.reply-send { right:auto !important; left:5px !important; transform:translateY(-50%) scaleX(-1); }
.postes [id^="rid_"] { margin-top:4px; }
.postes [id^="rid_"] > [id^="replay_id_"] { position:relative; display:grid !important; grid-template-columns:28px minmax(0,1fr); gap:6px; margin:5px 0 5px 12px !important; padding:0 !important; }
.postes [id^="rid_"] > [id^="replay_id_"] > div:first-child { width:28px !important; padding:0 !important; }
.postes [id^="rid_"] img { width:28px !important; height:28px !important; object-fit:cover; }
.postes [id^="rid_"] > [id^="replay_id_"] > .reply-content { width:auto !important; min-width:0; margin:0 !important; padding:0 !important; background:transparent !important; }
.postes [id^="rid_"] .reply-bubble { display:inline-block; max-width:100%; padding:7px 11px; border-radius:16px; background:#f0f2f5; overflow-wrap:anywhere; }
.postes [id^="rid_"] h5 { margin:0 0 2px !important; font-size:12px; line-height:15px; font-weight:700; }
.postes [id^="rid_"] p { margin:0 !important; font-size:14px; line-height:18px; }
.postes [id^="rid_"] .reply-time { display:block; margin:2px 10px 0; color:#65676b; font-size:11px; line-height:16px; }
.postes [id^="rid_"] hr { display:none; }
.postes .comment:hover > div:last-child .opt_comment { display:flex !important; }
.postes .card-body > .row.m-1.rounded { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 4px; margin: 4px 12px 12px !important; }
.postes .card-body > .row.m-1.rounded > .col-md-1 { width: 40px; margin: 0 !important; padding: 0 !important; }
.postes .card-body > .row.m-1.rounded > .col-md-11 { width: auto; min-width: 0; padding: 0 !important; }
.dropdown-menu { border: 0 !important; border-radius: 8px !important; box-shadow: 0 2px 12px rgba(0,0,0,.2) !important; }
.dropdown-item { margin: 2px 8px; width: calc(100% - 16px); border-radius: 6px; }

@media (max-width: 1259px) {
  .home-right-rail { display: none !important; }
  .home-feed-column { width: min(680px, calc(100% - 300px)); }
}
@media (max-width: 1099px) {
  .home-left-rail, .ms-sidebar-container { display: none !important; }
  .home-feed-column { width: min(680px, calc(100% - 32px)); max-width: 680px; flex: 0 1 680px; }
}
@media (max-width: 768px) {
  .home-feed-layout { padding-top: 56px !important; }
  .home-feed-column { width: 100%; max-width: none; flex-basis: 100%; }
  .home-feed-column #content { padding-top: 8px !important; }
  #myForm > .row { min-height: 64px; padding: 10px 12px !important; }
  #myForm > .row > .col-3 { display: none; }
  .profile-composer-top { padding:8px; }
  .profile-composer-actions { padding:6px; }
  #myForm .profile-composer-action { gap:5px; font-size:12px; padding-inline:4px !important; }
  #myForm .profile-composer-action i { font-size:18px; }
  .postes { margin-top: 8px !important; }
  .postes .card { border-radius: 0 !important; }
  .postes .card-header { border-radius: 0 !important; }
  .postes .card-body > .d-flex.align-items-center.fw-bold > a { font-size: 13px; }
  .postes .card-body > .d-flex.align-items-center.fw-bold > a .btn { font-size: 13px; }
  .postes .card-body > .row.m-1.rounded .position-absolute a:nth-last-child(-n+2) { display:none; }
}
/* Adaptive video galleries */
.profile-video-card { background:#111; border-radius:12px; overflow:hidden; aspect-ratio:16/9; }
.profile-gallery-video, .profile-video-card .video-js { width:100%; height:100%; }
.profile-video-card .vjs-tech { object-fit:contain; }
#profile-videos { overflow:hidden; }
.profile-crop-modal { border:0; border-radius:16px; overflow:hidden; }
.profile-crop-stage { height:min(58vh,520px); background:#111; border-radius:12px; overflow:hidden; }
.profile-crop-stage > img { display:block; max-width:100%; }
.profile-crop-tools { display:flex; justify-content:center; gap:10px; margin-top:14px; }
.profile-crop-tools .btn { width:42px; height:42px; display:grid; place-items:center; }
#profileCropModal .cropper-view-box { outline-color:#1877f2; }
#profileCropModal .cropper-line, #profileCropModal .cropper-point { background-color:#1877f2; }
@media (max-width: 576px) { .profile-crop-stage { height:52vh; } }

/* ==================== Stories UI (Facebook Style) ==================== */
.stories-wrapper {
  position: relative;
  width: 100%;
}
.stories-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stories-container::-webkit-scrollbar {
  display: none;
}
.story-card {
  width: 120px;
  height: 195px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}
.story-card:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.story-card:active {
  transform: scale(0.98);
}
/* Create Story Card */
.create-story-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.create-story-card .story-avatar-top {
  height: 135px;
  overflow: hidden;
  background: #f0f2f5;
}
.create-story-card .story-avatar-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.create-story-card:hover .story-avatar-top img {
  transform: scale(1.06);
}
.create-story-card .story-plus-btn {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.2s;
  z-index: 2;
}
.create-story-card:hover .story-plus-btn {
  background: #166fe5;
}
.create-story-card .story-card-title {
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #050505;
}
/* User Story Card */
.story-user-card {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story-user-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
  border-radius: 12px;
  pointer-events: none;
}
.story-user-card .story-author-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid #1877f2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  overflow: hidden;
  background: #fff;
  z-index: 2;
}
.story-user-card .story-author-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-user-card .story-card-author-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}
/* Story Tray Navigation Buttons */
.story-tray-nav-btn {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #65676b;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.story-tray-nav-btn:hover {
  background: #f2f3f5;
  transform: translateY(-50%) scale(1.08);
}
.story-tray-nav-btn.left {
  left: -8px;
}
.story-tray-nav-btn.right {
  right: -8px;
}
/* Lightbox Story Segmented Progress Bar */
.story-progress-segments {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 20;
}
.story-progress-bar-bg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.story-progress-bar-fill.filled {
  width: 100% !important;
}
/* Story Reactions Bar in Lightbox */
.story-reactions-tray {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-reply-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  outline: none;
  backdrop-filter: blur(6px);
}
.story-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.story-quick-react-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s ease;
  padding: 0;
  line-height: 1;
}
.story-quick-react-btn:hover {
  transform: scale(1.3);
}

/* ==================== Facebook Dark Mode & Settings Styles ==================== */
body.dark-theme {
  --fb-bg: #18191a;
  --fb-card: #242526;
  --fb-text: #e4e6eb;
  --fb-muted: #b0b3b8;
  --fb-border: #393a3b;
  background-color: #18191a !important;
  color: #e4e6eb !important;
}

body.dark-theme .navbar {
  background-color: #242526 !important;
  border-bottom-color: #393a3b !important;
}

body.dark-theme .navbar .form-control,
body.dark-theme .inpotbox,
body.dark-theme .bg-light {
  background-color: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #393a3b !important;
}

body.dark-theme .card,
body.dark-theme .fb-popup,
body.dark-theme .profile-menu,
body.dark-theme .modal-content,
body.dark-theme .postes .card,
body.dark-theme .postes .card-header,
body.dark-theme .postes .card-body {
  background-color: #242526 !important;
  color: #e4e6eb !important;
  border-color: #393a3b !important;
}

body.dark-theme .text-dark,
body.dark-theme .postes .post-author,
body.dark-theme .modal-title {
  color: #e4e6eb !important;
}

body.dark-theme .text-muted,
body.dark-theme .postes .post-time {
  color: #b0b3b8 !important;
}

body.dark-theme .widget-icon {
  background-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

body.dark-theme .popup-item:hover,
body.dark-theme .list-group-item:hover {
  background-color: #3a3b3c !important;
}

body.dark-theme .list-group-item {
  background-color: #242526;
  color: #e4e6eb;
  border-color: #393a3b;
}

body.dark-theme .border,
body.dark-theme .border-bottom,
body.dark-theme .border-top {
  border-color: #393a3b !important;
}

body.dark-theme input.form-control,
body.dark-theme textarea.form-control,
body.dark-theme select.form-select {
  background-color: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #4e4f50 !important;
}

/* Settings navigation active pill */
.fb-settings-nav .nav-link {
  color: var(--fb-text);
  font-weight: 600;
  padding: 10px 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.fb-settings-nav .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
body.dark-theme .fb-settings-nav .nav-link:hover {
  background-color: #3a3b3c;
}
.fb-settings-nav .nav-link.active {
  background-color: #e7f3ff !important;
  color: #1877f2 !important;
}
body.dark-theme .fb-settings-nav .nav-link.active {
  background-color: #263951 !important;
  color: #4599ff !important;
}
.active-privacy-opt {
  background-color: #f0f7ff !important;
  border-color: #1877f2 !important;
}
body.dark-theme .active-privacy-opt {
  background-color: #1c2b3d !important;
  border-color: #2e89ff !important;
}

.video-details-panel{background:#f7f8fa;border:1px solid #e4e6eb;border-radius:14px;padding:16px}.video-details-icon{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e7f3ff;color:#1877f2}.video-thumbnail-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.video-thumbnail-choice{position:relative;padding:0;border:3px solid transparent;border-radius:10px;overflow:hidden;background:#e4e6eb;aspect-ratio:16/9}.video-thumbnail-choice img{width:100%;height:100%;object-fit:cover}.video-thumbnail-choice.selected{border-color:#1877f2;box-shadow:0 0 0 2px rgba(24,119,242,.18)}.video-thumbnail-choice.selected:after{content:'\2713';position:absolute;top:6px;right:6px;width:25px;height:25px;border-radius:50%;background:#1877f2;color:#fff;display:grid;place-items:center;font-weight:700}.post-hashtag{color:#1877f2;font-weight:600;text-decoration:none}.post-hashtag:hover{text-decoration:underline}.hashtag-hero-icon{margin:auto auto 10px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#e7f3ff;color:#1877f2;font-size:32px;font-weight:800}@media(max-width:576px){.video-thumbnail-choices{gap:6px}.video-details-panel{padding:12px}}
.video-processing-progress{width:100%!important;background:linear-gradient(90deg,#1877f2,#69a7f7,#1877f2)!important;background-size:200% 100%!important;animation:videoProcessing 1.2s linear infinite}@keyframes videoProcessing{to{background-position:-200% 0}}
