/* ============================================================
   nas-profile-style.css
   CSS صفحة البروفايل — منصة ناس
   كل الـ classes بـ prefix .nas-profile- عشان مفيش تعارض
   ============================================================ */

/* ===== Reset محدود للصفحة دي بس ===== */
.nas-profile-wrap *,
.nas-profile-wrap *::before,
.nas-profile-wrap *::after {
    box-sizing: border-box;
}

/* Unified NAS profile scrollbar style */
.nas-share-card,
.nas-share-audience-menu,
.nas-share-message-search-results,
.nas-share-recipient-strip,
.nas-comment-modal-body,
.nas-dropdown-menu {
    scrollbar-width: auto !important;
    scrollbar-color: #5f6368 #e4e6eb !important;
    scrollbar-gutter: stable;
}
.nas-share-card::-webkit-scrollbar,
.nas-share-audience-menu::-webkit-scrollbar,
.nas-share-message-search-results::-webkit-scrollbar,
.nas-share-recipient-strip::-webkit-scrollbar,
.nas-comment-modal-body::-webkit-scrollbar,
.nas-dropdown-menu::-webkit-scrollbar {
    width: 16px !important;
    height: 16px !important;
}
.nas-share-card::-webkit-scrollbar-thumb,
.nas-share-audience-menu::-webkit-scrollbar-thumb,
.nas-share-message-search-results::-webkit-scrollbar-thumb,
.nas-share-recipient-strip::-webkit-scrollbar-thumb,
.nas-comment-modal-body::-webkit-scrollbar-thumb,
.nas-dropdown-menu::-webkit-scrollbar-thumb {
    background: #5f6368 !important;
    border: 4px solid #e4e6eb !important;
    border-radius: 999px !important;
}
.nas-share-card::-webkit-scrollbar-track,
.nas-share-audience-menu::-webkit-scrollbar-track,
.nas-share-message-search-results::-webkit-scrollbar-track,
.nas-share-recipient-strip::-webkit-scrollbar-track,
.nas-comment-modal-body::-webkit-scrollbar-track,
.nas-dropdown-menu::-webkit-scrollbar-track {
    background: #e4e6eb !important;
    border-radius: 999px !important;
}

.nas-issue-kind-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 10px 12px 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}
.nas-issue-kind-support {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}
.nas-issue-detail-status-row .nas-issue-kind-badge {
    margin: 0;
}
.nas-withdrawal-card-badge,
.nas-withdrawal-inline-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 10px 12px 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}
.nas-withdrawal-inline-badge {
    margin: 0;
}

/* ===== Facebook-like post interactions ===== */
.nas-profile-post-card .nas-post-interactions {
    padding: 0 0 4px;
}
.nas-post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 6px;
    color: #65676b;
    font-size: 13px;
}
.nas-reaction-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
}
.nas-reaction-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0866ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}
.nas-post-actions.fb-compact {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 14px !important;
    border-top: 1px solid #ced0d4 !important;
    padding: 4px 0 !important;
}
.nas-post-actions.fb-compact .nas-action-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 38px !important;
    max-width: none !important;
    height: 28px !important;
    min-height: 28px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #65676b;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 4px 7px !important;
    line-height: 1 !important;
    cursor: pointer;
}
.nas-post-actions.fb-compact .nas-action-btn:hover {
    background: #f0f2f5;
}
.nas-post-actions.fb-compact svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    flex: 0 0 20px !important;
    display: block !important;
}
.nas-post-actions.fb-compact .nas-action-btn.liked {
    color: #0866ff;
}
.nas-profile-post-header {
    position: relative;
}
.nas-post-header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    flex-shrink: 0;
}
.nas-post-dismiss,
.nas-post-options {
    width: 30px !important;
    height: 30px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #65676b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0 !important;
}
.nas-post-dismiss {
    font-size: 22px !important;
    font-weight: 300 !important;
}
.nas-post-options {
    font-size: 13px !important;
    letter-spacing: 1px;
}
.nas-post-dismiss:hover,
.nas-post-options:hover,
.nas-post-options.open {
    background: #e4e6eb !important;
}
.nas-post-options-menu {
    display: none;
    position: absolute;
    top: 34px;
    left: 0;
    width: 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    padding: 6px;
    z-index: 10080;
    direction: rtl;
}
.nas-post-options-menu.open {
    display: block;
}
.nas-post-options-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 9px 10px;
    text-align: right;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #050505;
    cursor: pointer;
}
.nas-post-options-menu button:hover {
    background: #f0f2f5;
}
.nas-comments {
    padding-top: 6px;
}
.nas-post-interactions:not(.comments-open) .nas-comments-collapsible,
.nas-post-interactions:not(.comments-open) .nas-inline-comment-form {
    display: none !important;
}
.nas-comment-count {
    border: 0;
    background: transparent;
    color: #65676b;
    font: inherit;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
}
.nas-comment-count:empty {
    display: none;
}
.nas-comment-count:hover {
    text-decoration: underline;
}
.nas-open-comments-modal {
    border: 0;
    background: transparent;
    color: #65676b;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 42px 0 0;
    cursor: pointer;
}
.nas-open-comments-modal:hover {
    text-decoration: underline;
}
.nas-comments-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    direction: rtl;
}
.nas-comments-modal.open {
    display: flex;
}
body.nas-modal-open {
    overflow: hidden;
}
body.nas-modal-open .nas-comments-modal.open {
    touch-action: none;
}
.nas-comments-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(244, 246, 248, .82);
    backdrop-filter: blur(2px);
}
.nas-comments-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 96vw);
    height: min(88vh, 780px);
    max-height: min(88vh, 780px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, .22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.nas-comments-modal-post-interactions {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden !important;
}
.nas-comments-modal-head {
    position: relative;
    flex: 0 0 auto;
    z-index: 2;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 56px;
}
.nas-comments-modal-head strong {
    font-size: 16px;
    font-weight: 900;
    color: #111827;
}
.nas-comments-modal-close {
    /* Modal close buttons must stay Facebook-style: small circle, centered X, gray hover. */
    position: absolute;
    right: 10px;
    top: 9px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #e4e6eb;
    color: #050505;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nas-comments-modal-close:hover {
    background: #d8dadf;
}
.nas-comments-modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: scroll !important;
    overscroll-behavior: contain;
    padding-bottom: 12px;
    scrollbar-gutter: stable;
    direction: rtl;
    scrollbar-width: auto;
    scrollbar-color: #8a8d91 #f0f2f5;
}
.nas-comments-modal-scroll > * {
    direction: rtl;
}
.nas-comments-modal-scroll::-webkit-scrollbar {
    width: 16px;
}
.nas-comments-modal-scroll::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 999px;
}
.nas-comments-modal-scroll::-webkit-scrollbar-thumb {
    background: #8a8d91;
    border: 3px solid #f0f2f5;
    border-radius: 999px;
}
.nas-comments-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #65676b;
}
.nas-comments-modal-fake-scrollbar {
    position: absolute;
    left: 8px;
    top: 58px;
    bottom: 76px;
    width: 10px;
    z-index: 20;
    display: none;
    background: #d6d9de;
    border-radius: 999px;
    opacity: 1;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.nas-comments-modal-fake-thumb {
    display: block;
    width: 100%;
    min-height: 44px;
    background: #6f747b;
    border-radius: 999px;
    opacity: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    will-change: transform, height;
}
.nas-comments-modal.show-comments-first .nas-comments-full {
    padding-top: 12px;
}
.nas-comments-modal-post-preview {
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}
.nas-comments-modal-post-text {
    padding: 14px 16px;
    color: #111827;
    line-height: 1.7;
    font-size: 15px;
}
.nas-comments-modal-post-media img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}
.nas-comments-modal-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    color: #65676b;
    font-size: 13px;
    border-bottom: 1px solid #eef2f7;
}
.nas-comments-modal .nas-comments-full {
    padding: 10px 14px 12px;
    max-height: none !important;
    overflow: visible !important;
}
.nas-comments-modal-form {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 10px 12px 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.nas-comments-modal-loading {
    padding: 42px 16px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
}
.nas-comment-thread {
    position: relative;
}
.nas-comment-thread::before {
    content: "";
    position: absolute;
    top: 42px;
    right: 16px;
    bottom: 8px;
    width: 2px;
    background: #ced0d4;
    border-radius: 2px;
}
.nas-comment-thread:has(.nas-comment-row.reply)::before {
    display: block;
}
.nas-comment-thread:not(:has(.nas-comment-row.reply))::before {
    display: none;
}
.nas-comment-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    isolation: isolate;
}
.nas-comment-row.reply {
    margin-right: 42px;
    max-width: calc(100% - 42px);
}
.nas-comment-children {
    margin-right: 42px;
    position: relative;
}
.nas-comment-children.depth-2,
.nas-comment-children .nas-comment-children {
    margin-right: 28px;
}
.nas-comment-children::before {
    content: "";
    position: absolute;
    top: 0;
    right: -24px;
    bottom: 8px;
    width: 2px;
    background: #ced0d4;
    border-radius: 2px;
}
.nas-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.nas-comment-row.reply .nas-comment-avatar {
    width: 28px;
    height: 28px;
}
.nas-comment-content {
    min-width: 0;
    max-width: min(470px, calc(100% - 68px));
}
.nas-comment-row.reply .nas-comment-content {
    max-width: min(430px, calc(100% - 58px));
}
.nas-comment-bubble {
    display: inline-block;
    max-width: 100%;
    background: #f0f2f5;
    border-radius: 18px;
    padding: 7px 11px;
}
.nas-comment-bubble a {
    display: block;
    color: #050505;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}
.nas-comment-bubble p {
    margin: 2px 0 0;
    color: #050505;
    font-size: 14px;
    line-height: 1.6;
}
.nas-comment-tools {
    display: flex;
    gap: 12px;
    padding: 2px 11px 0 0;
    color: #65676b;
    font-size: 11px;
    font-weight: 700;
}
.nas-comment-tools button {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.nas-comment-tools button.liked,
.nas-comment-like-count {
    color: #0866ff;
}
.nas-share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
}
.nas-share-modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.nas-share-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    z-index: 0;
}
.nas-share-card {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 24px));
    height: min(600px, calc(100vh - 78px));
    margin: 56px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    overflow-y: scroll;
    direction: rtl;
    scrollbar-width: auto;
    scrollbar-color: #8a8d91 #f0f2f5;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}
.nas-share-card::-webkit-scrollbar {
    width: 12px;
}
.nas-share-card::-webkit-scrollbar-thumb {
    background: #8a8d91;
    border-radius: 10px;
    border: 3px solid #f0f2f5;
}
.nas-share-card::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 10px;
}
.nas-share-card header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    font-weight: 800;
}
.nas-share-platform {
    position: absolute;
    right: 10px;
    top: 9px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.nas-share-platform img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.nas-share-close {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #050505;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.nas-share-close:hover {
    background: #f0f2f5;
}
.nas-share-settings-open {
    position: absolute;
    left: 48px;
    top: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #e4e6eb;
    color: #050505;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.nas-share-settings-open:hover {
    background: #d8dadf;
}
.nas-share-card.show-content-settings,
.nas-share-card.show-hide-content {
    overflow: hidden;
}
.nas-share-text {
    width: calc(100% - 28px);
    margin: 10px 14px 0;
    border: 0;
    resize: none;
    outline: 0;
    font: inherit;
    font-size: 15px;
    min-height: 48px;
}
.nas-share-composer-head {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 16px 14px 4px;
    min-height: 58px;
    overflow: visible;
}
.nas-share-composer-head img,
.nas-share-composer-head .avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex: 0 0 42px !important;
    display: block !important;
}
.nas-share-composer-head strong {
    display: block;
    line-height: 1.2;
}
.nas-share-privacy-wrap {
    position: relative;
    display: flex;
    gap: 6px;
    margin-top: 5px;
}
.nas-share-destination,
.nas-share-audience-trigger {
    border: 0;
    background: #e4e6eb;
    border-radius: 6px;
    padding: 4px 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.nas-share-destination.active {
    background: #dbe7ff;
    color: #0866ff;
}
.nas-share-audience-menu {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    width: 330px;
    height: min(300px, calc(100vh - 210px));
    max-height: 300px;
    overflow-y: scroll !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    padding: 6px 8px 6px 6px;
    z-index: 2;
    scrollbar-width: auto !important;
    scrollbar-color: #5f6368 #e4e6eb !important;
}
.nas-share-audience-menu::-webkit-scrollbar {
    width: 16px !important;
}
.nas-share-audience-menu::-webkit-scrollbar-thumb {
    background: #5f6368 !important;
    border: 4px solid #e4e6eb !important;
    border-radius: 999px !important;
}
.nas-share-audience-menu::-webkit-scrollbar-track {
    background: #e4e6eb !important;
    border-radius: 999px !important;
}
.nas-share-privacy-wrap.open .nas-share-audience-menu {
    display: block;
}
.nas-share-audience-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: right;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
    color: #050505;
    min-height: 54px;
    line-height: 1.25;
}
.nas-share-audience-menu button:hover,
.nas-share-audience-menu button.selected {
    background: #e7f3ff;
}
.nas-share-audience-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #050505;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}
.nas-share-audience-copy {
    display: block;
    flex: 1;
    min-width: 0;
}
.nas-share-audience-copy strong {
    display: block;
    color: #050505;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}
.nas-share-audience-copy small {
    display: block;
    color: #65676b;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}
.nas-share-audience-radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #8a8d91;
    border-radius: 50%;
    margin-inline-start: 4px;
    box-sizing: border-box;
}
.nas-share-audience-menu button.selected .nas-share-audience-radio {
    border: 5px solid #0866ff;
}
.nas-share-default-audience {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-top: 1px solid #e4e6eb;
    color: #65676b;
    font-size: 12px;
    cursor: pointer;
}
.nas-share-card-panel {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.nas-share-card.show-content-settings .nas-share-content-settings-panel {
    display: block;
}
.nas-share-card.show-hide-content .nas-share-hide-content-panel {
    display: grid;
    grid-template-rows: 54px minmax(0, 1fr) 54px;
}
.nas-share-panel-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}
.nas-share-panel-back {
    position: absolute;
    right: 12px;
    width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    background: #e4e6eb !important;
    font-size: 26px !important;
    line-height: 1 !important;
}
.nas-share-settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 24px);
    margin: 12px;
    min-height: 72px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 10px;
    text-align: right;
    cursor: pointer;
    font: inherit;
}
.nas-share-settings-row:hover {
    background: #f0f2f5;
}
.nas-share-settings-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 2px solid #050505;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.nas-share-settings-arrow {
    margin-inline-start: auto;
    color: #65676b;
    font-size: 28px;
    line-height: 1;
}
.nas-share-panel-help {
    margin: 12px 16px 10px;
    color: #65676b;
    font-size: 13px;
    line-height: 1.45;
}
.nas-share-hide-scroll {
    height: auto;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: auto !important;
    scrollbar-color: #5f6368 #e4e6eb !important;
    scrollbar-gutter: stable;
}
.nas-share-hide-scroll::-webkit-scrollbar {
    width: 16px !important;
}
.nas-share-hide-scroll::-webkit-scrollbar-thumb {
    background: #5f6368 !important;
    border: 4px solid #e4e6eb !important;
    border-radius: 999px !important;
}
.nas-share-hide-scroll::-webkit-scrollbar-track {
    background: #e4e6eb !important;
    border-radius: 999px !important;
}
.nas-share-hide-search {
    display: block;
    background: #f0f2f5;
    border-radius: 999px;
    padding: 0 12px;
    margin: 8px;
}
.nas-share-hide-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.nas-share-hide-search input {
    width: 100%;
    min-height: 36px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}
.nas-share-hidden-selected,
.nas-share-hide-users {
    padding: 8px;
    min-width: 0;
    overflow-x: hidden;
}
.nas-share-hidden-selected strong,
.nas-share-hide-users > strong {
    display: block;
    margin-bottom: 7px;
}
.nas-share-selected-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.nas-share-selected-avatars span {
    display: block;
    color: #65676b;
    font-size: 12px;
    line-height: 1.5;
}
.nas-share-selected-chip {
    position: relative;
    width: 58px;
    text-align: center;
    font-size: 11px;
    color: #050505;
}
.nas-share-selected-chip img,
.nas-share-selected-chip .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 4px;
}
.nas-share-selected-chip b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.nas-share-hide-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}
.nas-share-hide-user img,
.nas-share-hide-user .avatar {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
}
.nas-share-hide-user span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nas-share-hide-save {
    width: calc(100% - 16px) !important;
    min-height: 38px !important;
    margin: 8px !important;
    background: #e4e6eb !important;
    color: #bcc0c4 !important;
    justify-content: center !important;
    position: static !important;
    align-self: end;
    z-index: 3;
    border-radius: 8px !important;
    border: 0 !important;
    cursor: not-allowed !important;
}
.nas-share-hide-save:not(:disabled) {
    background: #0866ff !important;
    color: #fff !important;
    cursor: pointer !important;
}
.nas-share-emoji {
    width: 30px;
    height: 30px;
    margin: 0 14px 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8a8d91;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.nas-share-emoji:hover {
    background: #f0f2f5;
}
.nas-share-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
}
.nas-share-actions button {
    flex: 1;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}
.nas-share-copy {
    background: #e4e6eb;
    color: #050505;
}
.nas-share-now {
    background: #0866ff;
    color: #fff;
}
.nas-share-send-row {
    border-top: 1px solid #e4e6eb;
    padding: 12px 14px 10px;
}
.nas-share-send-row-focus {
    background: #f0f6ff;
    box-shadow: inset 3px 0 0 #0866ff;
}
.nas-share-send-row > strong,
.nas-share-targets > strong {
    display: block;
    margin-bottom: 10px;
}
.nas-share-message-search-wrap {
    display: none;
    margin: 0 0 10px;
}
.nas-share-message-search-wrap.open {
    display: block;
}
.nas-share-message-search-wrap label {
    display: block;
    background: #f0f2f5;
    border-radius: 999px;
    padding: 0 14px;
}
.nas-share-message-search-wrap label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.nas-share-message-search {
    width: 100%;
    min-height: 38px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #050505;
    font: inherit;
}
.nas-share-message-search-results {
    display: none;
    max-height: 220px;
    overflow-y: auto;
    padding-top: 8px;
}
.nas-share-message-search-results.open {
    display: block;
}
.nas-share-message-search-result {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #050505 !important;
    text-align: right !important;
    padding: 8px !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.nas-share-message-search-result:hover {
    background: #f0f2f5 !important;
}
.nas-share-message-search-result img,
.nas-share-message-search-result .avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.nas-share-message-search-result span {
    display: block !important;
    min-width: 0;
}
.nas-share-message-search-result b,
.nas-share-message-search-result small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nas-share-message-search-result small,
.nas-share-message-search-empty {
    color: #65676b;
    font-size: 12px;
}
.nas-share-message-search-empty {
    padding: 10px 8px;
}
.nas-share-recipient-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.nas-share-recipient-strip a,
.nas-share-recipient-strip button {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    flex: 0 0 68px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #050505 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    appearance: none !important;
}
.nas-share-recipient-strip button:hover {
    background: #f0f2f5 !important;
}
.nas-share-recipient-strip img,
.nas-share-recipient-strip .avatar {
    display: block !important;
    margin: 0 auto 5px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #e4e6eb !important;
}
.nas-share-recipient-strip a span,
.nas-share-recipient-strip button span {
    display: -webkit-box;
    width: 60px;
    min-height: 24px;
    max-height: 24px;
    overflow: hidden;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nas-share-targets {
    border-top: 1px solid #e4e6eb;
    padding: 12px 14px 14px;
}
.nas-share-target-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    align-items: stretch;
}
.nas-share-target-grid a,
.nas-share-target-grid button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 74px !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    color: #65676b !important;
    text-decoration: none !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 6px 3px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    appearance: none !important;
}
.nas-share-target-grid a:hover,
.nas-share-target-grid button:hover {
    background: #f0f2f5 !important;
}
.nas-share-target-grid span {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e4e6eb;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 15px;
    filter: grayscale(1);
    opacity: .75;
}
.nas-share-target-grid a,
.nas-share-target-grid button {
    word-break: break-word;
}
.nas-shared-post-card {
    margin: 10px 14px 14px;
    border: 1px solid #dadde1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.nas-shared-post-card[data-shared-permalink] {
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.nas-shared-post-card[data-shared-permalink]:hover {
    border-color: #c7ccd3;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}
.nas-shared-post-card[data-shared-permalink]:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}
.nas-shared-post-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}
.nas-shared-post-head a {
    color: #050505;
    font-weight: 800;
    text-decoration: none;
}
.nas-shared-post-head span {
    display: block;
    color: #65676b;
    font-size: 12px;
    margin-top: 2px;
}
.nas-shared-post-content {
    padding: 0 10px 10px;
    color: #050505;
    font-size: 14px;
    line-height: 1.6;
}
.nas-shared-post-media img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}
.nas-shared-post-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-top: 1px solid #e4e6eb;
    color: #65676b;
    font-size: 12px;
}
.nas-shared-post-comments {
    padding: 8px 10px 10px;
    border-top: 1px solid #e4e6eb;
    background: #fff;
}
.nas-shared-post-comments .nas-reply-form {
    display: none !important;
}
.nas-shared-more-comments {
    display: block;
    color: #65676b;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
}
.nas-mention {
    color: #0866ff;
    font-weight: 700;
    text-decoration: none;
}
.nas-mention:hover {
    text-decoration: underline;
}
.nas-mention-suggestions {
    display: none;
    position: absolute;
    z-index: 10080;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    padding: 6px;
    direction: rtl;
}
.nas-mention-suggestions.open {
    display: block;
}
.nas-mention-suggestions button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 7px;
    text-align: right;
    cursor: pointer;
    font: inherit;
}
.nas-mention-suggestions button:hover,
.nas-mention-suggestions button.active {
    background: #f0f2f5;
}
.nas-mention-suggestions img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.nas-mention-suggestions strong,
.nas-mention-suggestions small {
    display: block;
}
.nas-mention-suggestions small {
    color: #65676b;
    font-size: 11px;
}
.nas-comment-more {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #65676b;
    cursor: pointer;
    opacity: 0;
    flex-shrink: 0;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nas-comment-row:hover .nas-comment-more,
.nas-comment-more.open {
    opacity: 1;
    background: #e4e6eb;
}
.nas-comment-menu {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    padding: 6px;
    z-index: 10090;
    max-width: calc(100% - 8px);
}
.nas-comment-menu.open {
    display: block;
}
.nas-comment-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 9px 10px;
    text-align: right;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #050505;
    cursor: pointer;
}
.nas-comment-menu button:hover {
    background: #f0f2f5;
}
.nas-reply-more {
    margin: 5px 42px 0 0;
    color: #65676b;
    font-size: 12px;
    font-weight: 700;
}
.nas-comment-form,
.nas-reply-form {
    display: flex;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 10px !important;
    width: 100% !important;
}
.nas-reply-form {
    margin-right: 42px;
    width: calc(100% - 42px) !important;
}
.nas-comment-children .nas-reply-form {
    margin-right: 28px;
    width: calc(100% - 28px) !important;
}
.nas-comment-composer {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: #f0f2f5 !important;
    border-radius: 18px !important;
    padding: 8px 10px 6px !important;
    transition: background .16s ease, box-shadow .16s ease, border-radius .16s ease;
}
.nas-comment-composer:focus-within {
    background: #f0f2f5 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}
.nas-comment-input-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
}
.nas-comment-input-avatar {
    flex: 0 0 auto !important;
    margin-top: 1px !important;
}
.nas-comment-form textarea,
.nas-reply-form textarea {
    display: block !important;
    width: 100% !important;
    min-height: 28px !important;
    max-height: 140px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 2px 4px 4px !important;
    font-family: inherit;
    resize: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #050505 !important;
    overflow: hidden !important;
}
.nas-comment-form textarea:focus,
.nas-reply-form textarea:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.nas-comment-tools-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 24px !important;
    padding: 2px 4px 0 !important;
}
.nas-comment-tool {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #65676b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
}
.nas-comment-tool:hover {
    background: #e4e6eb !important;
}
.nas-comment-tool.muted {
    opacity: .45 !important;
}
.nas-comment-send {
    margin-right: auto !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #0866ff !important;
    cursor: pointer;
    font-weight: 800;
    flex: 0 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 15px !important;
    transform: rotate(180deg);
}
.nas-comment-send:hover {
    background: #e4e6eb !important;
}
.nas-comment-send:disabled {
    opacity: .45;
    cursor: default;
}

.nas-comment-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    direction: rtl;
    pointer-events: none;
}
.nas-comment-modal.open {
    display: block;
    pointer-events: auto;
}
.nas-comment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(244, 245, 247, .72);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}
.nas-comment-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 40px));
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.nas-comment-modal-head {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dadde1;
    padding: 0 12px;
}
.nas-comment-modal-global-controls {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 2147483002;
    display: flex;
    align-items: center;
    gap: 16px;
    direction: ltr;
}
.nas-comment-modal-platform {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nas-comment-modal-platform img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.nas-comment-modal-head strong {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #050505;
}
.nas-comment-modal-close {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1c1e21 !important;
    font-size: 36px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 0 !important;
}
.nas-comment-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
}
.nas-comment-modal-post {
    border-bottom: 1px solid #dadde1;
}
.nas-comment-modal-post-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px 6px;
}
.nas-comment-modal-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.nas-comment-modal-post-head a {
    color: #050505;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}
.nas-comment-modal-post-head span {
    display: block;
    color: #65676b;
    font-size: 12px;
    margin-top: 1px;
}
.nas-comment-modal-post-content {
    padding: 0 14px 10px;
    color: #050505;
    font-size: 14px;
    line-height: 1.7;
}
.nas-comment-modal-post-media {
    background: #000;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.nas-comment-modal-post-media img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    display: block;
}
.nas-comment-modal-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 8px 14px;
    color: #65676b;
    font-size: 13px;
}
.nas-comment-modal-body > .nas-comment-thread {
    margin: 10px 14px;
}
.nas-comment-modal-footer {
    border-top: 1px solid #dadde1;
    padding: 10px 12px 12px;
    background: #fff;
}
.nas-comment-modal-footer .nas-comment-form {
    margin-top: 0 !important;
}
.nas-comment-identity {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    position: relative;
    cursor: pointer;
}
.nas-comment-identity-avatar {
    width: 36px !important;
    height: 36px !important;
}
.nas-comment-identity-arrow {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
}
.nas-comment-identity-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 210px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    z-index: 2;
}
.nas-comment-identity.open .nas-comment-identity-menu {
    display: block;
}
.nas-comment-identity-menu strong {
    display: block;
    font-size: 13px;
}
.nas-comment-identity-menu span {
    display: block;
    color: #65676b;
    font-size: 12px;
    margin-top: 3px;
}
.nas-comment-modal-footer .nas-comment-composer {
    border-radius: 18px !important;
}
.nas-comment-modal-footer .nas-comment-composer textarea {
    min-height: 32px !important;
}
.nas-undo-toast {
    margin: 8px 0 14px;
    background: #242526;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.nas-undo-toast button {
    border: 0;
    background: transparent;
    color: #8ab4ff;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.nas-profile-post-card,
.nas-post-interactions,
.nas-comments,
.nas-comment-thread {
    overflow: visible !important;
}
.nas-profile-post-card {
    position: relative;
    z-index: 1;
}
.nas-profile-post-card:has(.nas-post-options-menu.open),
.nas-profile-post-card:has(.nas-comment-menu.open) {
    z-index: 80;
}
.nas-show-more-comments {
    border: 0;
    background: transparent;
    color: #65676b;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 0;
    cursor: pointer;
}
.nas-show-more-comments:hover {
    text-decoration: underline;
}
.nas-comment-modal-filter {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    padding: 8px 14px;
    border-bottom: 1px solid #dadde1;
}
.nas-comment-sort {
    position: relative;
}
.nas-comment-sort-trigger {
    border: 0;
    border-radius: 6px;
    background: #e4e6eb;
    color: #050505;
    padding: 6px 10px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}
.nas-comment-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 230px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    padding: 6px;
    z-index: 100001;
}
.nas-comment-sort:hover .nas-comment-sort-menu,
.nas-comment-sort:focus-within .nas-comment-sort-menu {
    display: block;
}
.nas-comment-sort-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
    text-align: right;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}
.nas-comment-sort-menu button:hover,
.nas-comment-sort-menu button.active {
    background: #f0f2f5;
}
.nas-edit-post-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    direction: rtl;
}
.nas-edit-post-modal.open {
    display: block;
}
.nas-edit-post-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(244,245,247,.76);
    backdrop-filter: blur(3px);
}
.nas-edit-post-card {
    position: relative;
    width: min(440px, calc(100vw - 28px));
    margin: 70px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.24);
    padding: 0 12px 14px;
}
.nas-edit-post-card header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dadde1;
    position: relative;
}
.nas-edit-post-card header strong {
    font-size: 18px;
    font-weight: 800;
}
.nas-edit-post-close {
    position: absolute;
    right: 0;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 0 4px !important;
}
.nas-edit-post-author {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
}
.nas-edit-post-author b {
    display: block;
    color: #050505;
    font-size: 14px;
}
.nas-edit-post-author span {
    display: inline-block;
    background: #e4e6eb;
    border-radius: 6px;
    padding: 2px 8px;
    color: #050505;
    font-size: 12px;
    font-weight: 700;
}
.nas-edit-post-text {
    width: 100%;
    min-height: 150px;
    border: 0;
    resize: vertical;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.7;
    color: #050505;
    outline: none;
}
.nas-edit-post-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dadde1;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0 12px;
}
.nas-edit-post-tools span {
    margin-left: auto;
    font-weight: 800;
    font-size: 13px;
}
.nas-edit-post-tools button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}
.nas-edit-post-save {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #0866ff;
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* ===== Wrapper الرئيسي ===== */
.nas-profile-wrap {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 80px 0;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, 'Arial', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    text-align: initial;
}

/* ===== Cover Photo ===== */
.nas-profile-cover {
    width: 100%;
    height: 330px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1565c0 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.nas-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.nas-profile-cover-edit {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.96);
    color: #050505;
    border: none;
    border-radius: 8px;
    min-width: 0;
    height: 36px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: inherit;
}
.nas-profile-cover-edit:hover {
    background: #fff;
    transform: scale(1.06);
}

/* ===== Info Bar ===== */
.nas-profile-info-bar {
    background: #fff;
    padding: 0 28px 24px;
    position: relative;
    border-bottom: 1px solid #e4e6ea;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 18px;
}

/* ===== Avatar ===== */
.nas-profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: -70px;
    margin-bottom: 0;
}

.nas-profile-avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    border: 4px solid #fff;
    display: block;
    object-fit: cover;
    background: #e4e6ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nas-profile-avatar-clickable {
    cursor: pointer;
}
.nas-profile-avatar-clickable:hover {
    filter: brightness(0.94);
}

.nas-profile-avatar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    padding: 8px;
    z-index: 80;
}
.nas-profile-avatar-menu.open {
    display: block;
}
.nas-profile-avatar-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 18px;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
.nas-profile-avatar-menu a,
.nas-profile-avatar-menu button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    color: #050505;
    background: transparent;
    border: 0;
    text-align: right;
    text-decoration: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.nas-profile-avatar-menu a:hover,
.nas-profile-avatar-menu button:hover {
    background: #f0f2f5;
}

.nas-profile-cover-edit.uploading {
    opacity: 0.65;
    pointer-events: none;
}

/* ===== Info Text ===== */
.nas-profile-info-text {
    margin-bottom: 4px;
}

.nas-profile-name {
    font-size: 30px;
    font-weight: 700;
    color: #1c1e21;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.nas-profile-username {
    font-size: 14px;
    color: #65676b;
    display: block;
    margin-bottom: 8px;
}

.nas-profile-bio {
    font-size: 15px;
    color: #3e4042;
    margin: 0;
    line-height: 1.5;
}

/* ===== Stats ===== */
.nas-profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.nas-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: default;
}

.nas-profile-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1;
}

.nas-profile-stat-label {
    font-size: 12px;
    color: #65676b;
}

/* ===== Buttons ===== */
.nas-profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    grid-column: 3;
    grid-row: 2;
}

/* ===== Facebook-like tabs ===== */
.nas-profile-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid #e4e6ea;
    padding: 0 28px;
    min-height: 56px;
    overflow: visible;
}

.nas-profile-tab {
    position: relative;
    padding: 16px 18px;
    color: #65676b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
}
.nas-profile-tab:hover {
    background: #f0f2f5;
}
.nas-profile-tab.active {
    color: #1877f2;
}
.nas-profile-tab.active::after {
    content: '';
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 0;
    height: 3px;
    background: #1877f2;
    border-radius: 4px 4px 0 0;
}

.nas-profile-more-wrap {
    position: relative;
}
.nas-profile-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    padding: 8px;
    z-index: 10080;
}
.nas-profile-more-menu.open {
    display: block;
}
.nas-profile-more-menu a,
.nas-profile-more-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #1c1e21;
    text-decoration: none;
    text-align: right;
    font-family: inherit;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}
.nas-profile-more-menu a:hover,
.nas-profile-more-menu button:hover {
    background: #f0f2f5;
}

/* ===== Main layout ===== */
.nas-profile-main-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    align-items: start;
    direction: rtl;
}

.nas-profile-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nas-profile-side-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nas-profile-side-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1c1e21;
}
.nas-profile-side-bio {
    margin: 0 0 12px;
    color: #3e4042;
    line-height: 1.7;
}
.nas-profile-side-row {
    padding: 8px 0;
    color: #3e4042;
    font-size: 14px;
}
.nas-profile-side-btn {
    width: 100%;
    border: 0;
    background: #e4e6ea;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
.nas-profile-side-btn:hover {
    background: #d8dadf;
}
.nas-profile-side-stats {
    display: grid;
    gap: 8px;
    color: #65676b;
}
.nas-profile-side-stats strong {
    color: #1c1e21;
}
.nas-profile-side-card a {
    display: block;
    padding: 9px 0;
    color: #1c1e21;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}
.nas-profile-side-card a:last-child {
    border-bottom: 0;
}

.nas-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}

.nas-profile-btn-follow {
    background: #1877f2;
    color: #fff;
}
.nas-profile-btn-follow:hover {
    background: #166fe5;
}

.nas-profile-btn-following {
    background: #e4e6ea;
    color: #1c1e21;
}
.nas-profile-btn-following:hover {
    background: #ffe0e0;
    color: #c62828;
}

.nas-profile-btn-edit {
    background: #e4e6ea;
    color: #1c1e21;
}
.nas-profile-btn-edit:hover {
    background: #d8dadf;
}

.nas-profile-btn-back {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: #1877f2;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
}
.nas-profile-btn-back:hover {
    background: #166fe5;
}

/* ===== Posts Section ===== */
.nas-profile-posts-section {
    padding: 0;
}

.nas-profile-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1c1e21;
}

.nas-profile-posts-count {
    background: #e4e6ea;
    color: #65676b;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ===== Post Card ===== */
.nas-profile-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
}

.nas-profile-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.15s;
}
.nas-profile-post-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.nas-profile-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.nas-profile-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nas-profile-post-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nas-profile-post-name {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
}

.nas-profile-post-date {
    font-size: 12px;
    color: #65676b;
}

.nas-profile-post-body {
    box-sizing: border-box;
    width: auto;
    max-width: calc(100% - 84px);
    font-size: 15px;
    color: #1c1e21;
    line-height: 1.6;
    margin: 0 54px 12px 24px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.nas-profile-post-body.is-collapsed {
    max-height: 8em;
    overflow: hidden;
}

.nas-profile-post-body p {
    margin: 0 0 8px 0;
}
.nas-profile-post-body p:last-child {
    margin-bottom: 0;
}
.nas-post-read-more {
    display: inline-flex;
    margin: -6px 54px 12px 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #65676b;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.nas-post-read-more:hover {
    text-decoration: underline;
}

.nas-profile-post-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.nas-profile-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.nas-profile-post-footer {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.nas-profile-post-stat {
    font-size: 13px;
    color: #65676b;
}

.nas-profile-post-footer {
    justify-content: flex-start;
}

/* ===== No Posts ===== */
.nas-profile-no-posts {
    text-align: center;
    padding: 50px 20px;
    color: #65676b;
}

.nas-profile-no-posts-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.nas-profile-no-posts p {
    font-size: 16px;
    margin: 0 0 20px 0;
}

/* ===== Not Found ===== */
.nas-profile-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    direction: rtl;
}

.nas-profile-nf-inner {
    text-align: center;
    max-width: 300px;
}

.nas-profile-nf-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.nas-profile-nf-inner h2 {
    font-size: 22px;
    color: #1c1e21;
    margin: 0 0 8px 0;
}

.nas-profile-nf-inner p {
    color: #65676b;
    font-size: 15px;
    margin: 0;
}

/* ===== Pagination ===== */
.nas-profile-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px 0;
    flex-wrap: wrap;
}

.nas-profile-pagination a,
.nas-profile-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    color: #1877f2;
    border: 1px solid #ddd;
    transition: all 0.15s;
}

.nas-profile-pagination a:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.nas-profile-pagination .current {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

/* ===== Edit Modal ===== */
.nas-profile-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.nas-profile-edit-modal {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.nas-profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.nas-profile-edit-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    margin: 0;
}

.nas-profile-edit-close {
    background: #e4e6ea;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    color: #1c1e21;
}
.nas-profile-edit-close:hover {
    background: #d8dadf;
}

.nas-profile-edit-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nas-profile-edit-body label {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    margin-bottom: -4px;
}

.nas-profile-edit-input,
.nas-profile-edit-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1c1e21;
    background: #f7f8fa;
    transition: border-color 0.15s, box-shadow 0.15s;
    direction: rtl;
    resize: vertical;
}

.nas-profile-edit-input:focus,
.nas-profile-edit-textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24,119,242,0.15);
    background: #fff;
}

.nas-profile-edit-footer {
    padding: 16px 20px;
    border-top: 1px solid #e4e6ea;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nas-profile-btn-save {
    background: #1877f2;
    color: #fff;
}
.nas-profile-btn-save:hover {
    background: #166fe5;
}
.nas-profile-btn-save:disabled {
    background: #a0bce8;
    cursor: not-allowed;
}

.nas-profile-edit-msg {
    font-size: 13px;
    color: #65676b;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .nas-profile-wrap {
        padding-bottom: 70px;
    }

    .nas-profile-cover {
        height: 170px;
    }

    .nas-profile-cover-edit span {
        display: none;
    }

    .nas-profile-cover-edit {
        width: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .nas-profile-avatar {
        width: 90px;
        height: 90px;
    }

    .nas-profile-avatar-wrap {
        margin-top: -45px;
    }

    .nas-profile-info-bar {
        display: block;
        padding: 0 16px 18px;
    }

    .nas-profile-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .nas-profile-tabs {
        overflow-x: auto;
        padding: 0 10px;
        min-height: 50px;
    }

    .nas-profile-tab {
        white-space: nowrap;
        padding: 13px 14px;
    }

    .nas-profile-main-grid {
        display: block;
        padding: 12px 0;
    }

    .nas-profile-sidebar {
        position: static;
        margin-bottom: 12px;
    }

    .nas-profile-name {
        font-size: 18px;
    }

    .nas-profile-stats {
        gap: 16px;
    }

    .nas-profile-stat-num {
        font-size: 16px;
    }

    .nas-profile-posts-list {
        padding: 0 8px;
    }

    .nas-profile-post-card {
        padding: 12px;
    }

    .nas-profile-edit-modal {
        width: 95%;
    }
}
