/*
Theme Name: Fejkbook
Version: 1.0
*/

* {
    box-sizing: border-box;
}

html {
    margin-top: 0 !important;
}

body {
    margin: 0;
    background: #f0f2f5;
    font-family: Arial, Helvetica, sans-serif;
    color: #050505;
    font-size: 15px;
}

body.admin-bar .fb-header {
    top: 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.fb-header {
    height: 64px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: 360px 1fr 300px;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.fb-left,
.fb-center,
.fb-right {
    display: flex;
    align-items: center;
}

.fb-left {
    gap: 10px;
}

.fb-logo {
    width: 44px;
    height: 44px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    font-size: 34px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-search input {
    width: 280px;
    border: none;
    outline: none;
    background: #f0f2f5;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 15px;
}

.fb-center {
    justify-content: center;
    gap: 8px;
}

.fb-center a {
    width: 100px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    border-bottom: 4px solid transparent;
}

.fb-center a:hover {
    background: #f0f2f5;
}

.fb-center a.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
    border-radius: 0;
}

.fb-right {
    justify-content: flex-end;
    gap: 8px;
}

.fb-right a {
    width: 42px;
    height: 42px;
    background: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-right img,
.side-user img,
.post-input img,
.post-author img {
    border-radius: 50%;
}

.fb-layout {
    display: grid;
    grid-template-columns: 310px minmax(500px, 720px) 310px;
    gap: 24px;
    max-width: 1420px;
    margin: 0 auto;
    padding: 22px 16px;
}

.fb-sidebar-left,
.fb-sidebar-right {
    position: sticky;
    top: 86px;
    height: calc(100vh - 90px);
    overflow-y: auto;
}

body.admin-bar .fb-sidebar-left,
body.admin-bar .fb-sidebar-right {
    top: 118px;
}

.fb-sidebar-left a,
.side-user {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.fb-sidebar-left a:hover,
.side-user:hover {
    background: #e4e6eb;
}

.fb-sidebar-left hr,
.fb-sidebar-right hr {
    border: none;
    border-top: 1px solid #d8dadf;
    margin: 16px 0;
}

.fb-sidebar-left h4,
.fb-sidebar-right h3 {
    color: #65676b;
    font-size: 17px;
    margin: 12px 8px;
}

.fb-feed {
    width: 100%;
}

.stories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.story {
    min-width: 125px;
    height: 210px;
    background: linear-gradient(160deg, #333, #111);
    color: #fff;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.story::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.7));
}

.story span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-weight: 700;
    z-index: 2;
}

.create-story {
    background: #fff;
    color: #050505;
}

.create-story::before {
    display: none;
}

.story-img {
    height: 150px;
    background: linear-gradient(135deg, #3bd16f, #0f8c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
}

.create-story button {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.create-story span {
    color: #050505;
    text-align: center;
}

.post-box,
.fb-post,
.ad-card,
.profile-cover,
.profile-tabs {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.14);
    margin-bottom: 16px;
}

.post-box {
    padding: 14px;
}

.post-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-input input {
    flex: 1;
    border: none;
    outline: none;
    background: #f0f2f5;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 16px;
}

.post-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e4e6eb;
    margin-top: 12px;
    padding-top: 8px;
    gap: 6px;
}

.post-actions button,
.post-footer button {
    border: none;
    background: transparent;
    padding: 11px;
    border-radius: 9px;
    font-weight: 700;
    color: #65676b;
    cursor: pointer;
}

.post-actions button:hover,
.post-footer button:hover {
    background: #f0f2f5;
}

.fb-post {
    overflow: hidden;
}

.post-header {
    padding: 14px 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author strong {
    display: block;
    font-size: 15px;
}

.post-author small {
    display: block;
    color: #65676b;
    margin-top: 2px;
}

.post-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.post-menu:hover {
    background: #f0f2f5;
}

.post-content {
    padding: 8px 16px 14px;
    line-height: 1.45;
}

.post-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e4e6eb;
    padding: 6px 8px;
}

.ad-card {
    padding: 12px;
    margin-bottom: 18px;
}

.ad-img {
    height: 130px;
    background: linear-gradient(135deg, #05a660, #0b7e4b);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 10px;
}

.ad-img.light {
    background: linear-gradient(135deg, #dfc7a4, #b89062);
}

.ad-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.ad-card small {
    color: #65676b;
}

.friend-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.14);
}

.avatar-placeholder {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.friend-card small {
    display: block;
    color: #65676b;
    margin: 4px 0 8px;
}

.friend-buttons {
    display: flex;
    gap: 8px;
}

.friend-buttons button {
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.friend-buttons .confirm {
    background: #1877f2;
    color: #fff;
}

.profile-cover {
    overflow: hidden;
}

.cover-bg {
    height: 280px;
    background: linear-gradient(135deg, #1877f2, #42b72a);
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 0 24px 24px;
    margin-top: -58px;
}

.profile-info img {
    border: 5px solid #fff;
}

.profile-info h1 {
    margin: 0;
    font-size: 32px;
}

.profile-info p {
    margin: 4px 0 0;
    color: #65676b;
    font-weight: 600;
}

.profile-tabs {
    display: flex;
    padding: 0 16px;
}

.profile-tabs a {
    padding: 17px 18px;
    color: #65676b;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.profile-tabs a.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.photo-grid div {
    height: 82px;
    background: #d8dadf;
    border-radius: 8px;
}

.fb-footer {
    text-align: center;
    color: #65676b;
    padding: 30px;
}

@media (max-width: 1200px) {
    .fb-layout {
        grid-template-columns: 260px minmax(500px, 720px);
    }

    .fb-sidebar-right {
        display: none;
    }

    .fb-header {
        grid-template-columns: 300px 1fr 220px;
    }

    .fb-center a {
        width: 70px;
    }
}

@media (max-width: 900px) {
    .fb-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .fb-sidebar-left,
    .fb-sidebar-right {
        display: none;
    }

    .fb-header {
        grid-template-columns: 1fr auto;
    }

    .fb-center {
        display: none;
    }
}

@media (max-width: 600px) {
    .fb-header {
        height: auto;
        padding: 10px;
    }

    .fb-search input {
        width: 190px;
    }

    .fb-right {
        display: none;
    }

    .fb-layout {
        padding: 14px 10px;
    }
}

.post-input textarea {
    flex: 1;
    border: none;
    outline: none;
    background: #f0f2f5;
    border-radius: 22px;
    padding: 14px 18px;
    font-size: 16px;
    resize: none;
    font-family: inherit;
}

.upload-actions label {
    text-align: center;
    padding: 11px;
    border-radius: 9px;
    font-weight: 700;
    color: #65676b;
    cursor: pointer;
}

.upload-actions label:hover {
    background: #f0f2f5;
}

.upload-actions button[type="submit"] {
    background: #1877f2;
    color: #fff;
}

.media-preview {
    margin-top: 12px;
}

.media-preview img,
.media-preview video,
.post-image video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

.profile-page {
    background: #f0f2f5;
}

.profile-top {
    background: #fff;
    border-bottom: 1px solid #d8dadf;
}

.profile-cover-new {
    max-width: 1040px;
    height: 330px;
    margin: 0 auto;
    position: relative;
    background: #111;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.profile-cover-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-cover-btn {
    position: absolute;
    right: 26px;
    bottom: 22px;
    border: none;
    background: #fff;
    padding: 10px 14px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.profile-main-info {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 0 24px 24px;
}

.profile-avatar-wrap {
    margin-top: -78px;
    z-index: 2;
}

.profile-avatar-wrap img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
}

.profile-name-box {
    flex: 1;
    padding-bottom: 12px;
}

.profile-name-box h1 {
    margin: 0;
    font-size: 32px;
}

.profile-name-box p {
    margin: 5px 0;
    font-weight: 700;
}

.profile-name-box small {
    font-weight: 600;
    color: #050505;
}

.profile-buttons {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
}

.profile-buttons button,
.profile-posts-header button {
    border: none;
    background: #e4e6eb;
    padding: 10px 14px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.profile-buttons .blue-btn {
    background: #1877f2;
    color: #fff;
}

.profile-tabs-new {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-top: 1px solid #d8dadf;
    padding: 0 12px;
}

.profile-tabs-new a {
    padding: 18px 16px;
    font-weight: 700;
    color: #65676b;
    border-bottom: 3px solid transparent;
}

.profile-tabs-new a.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.profile-tabs-new button {
    margin-left: auto;
    border: none;
    background: #e4e6eb;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.profile-content {
    max-width: 1040px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 14px;
    padding: 0 12px;
}

.profile-left-card {
    position: sticky;
    top: 86px;
    align-self: start;
}

.profile-card,
.profile-posts-header,
.profile-view-tabs {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.14);
    padding: 16px;
    margin-bottom: 12px;
}

.card-title,
.profile-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title h3,
.profile-posts-header h3 {
    margin: 0;
    font-size: 20px;
}

.profile-card p {
    font-weight: 600;
    margin: 16px 0;
}

.profile-photo-grid a {
  height: 120px;
  background: #d8dadf;
  display: block;
  overflow: hidden;
}

.profile-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.profile-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.profile-photo-lightbox.active {
  display: flex;
}

.profile-photo-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  background: #000;
}

.profile-photo-lightbox button {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.profile-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
}

.profile-view-tabs a {
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: #65676b;
    border-bottom: 3px solid transparent;
}

.profile-view-tabs a.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.profile-feed .post-box {
    margin-bottom: 12px;
}

.profile-feed video {
    width: 100%;
    max-height: 520px;
    background: #000;
}

@media (max-width: 900px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-left-card {
        position: static;
    }

    .profile-main-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-buttons {
        padding-bottom: 0;
    }
}

.fb-create-account {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #1877f2;
  background: #fff;
  color: #1877f2;
  font-size: 15px;
  font-weight: 700;
  margin-top: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.fejkbook-stats {
    padding: 8px 16px;
    color: #65676b;
    font-weight: 600;
    border-top: 1px solid #f0f2f5;
}

.comment-box {
    padding: 10px 16px 14px;
    border-top: 1px solid #e4e6eb;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form img {
    border-radius: 50%;
}

.comment-form input {
    flex: 1;
    border: none;
    background: #f0f2f5;
    border-radius: 999px;
    padding: 11px 14px;
    outline: none;
}

.comment-form button {
    border: none;
    background: #1877f2;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.single-comment {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.single-comment p {
    margin: 3px 0 0;
}

.share-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 16px 14px;
    border-top: 1px solid #e4e6eb;
}

.share-box button {
    border: none;
    background: #f0f2f5;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.share-box button:hover {
    background: #e4e6eb;
}

.story label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.story-real img,
.story-real video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.story-modal button {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.pages-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: calc(100vh - 64px);
    background: #f0f2f5;
}

.pages-sidebar {
    background: #fff;
    padding: 18px 16px;
    box-shadow: 1px 0 5px rgba(0,0,0,.12);
}

.pages-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pages-sidebar-head h2 {
    margin: 0;
    font-size: 28px;
}

.pages-sidebar-head button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #e4e6eb;
    font-size: 20px;
}

.pages-menu {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0f2f5;
}

.pages-menu span {
    width: 42px;
    height: 42px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pages-menu b {
    margin-left: auto;
}

.pages-user-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    font-weight: 700;
}

.page-mini-avatar,
.managed-page-avatar {
    width: 54px;
    height: 54px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.create-page-toggle {
    width: 100%;
    border: none;
    background: #e7f3ff;
    color: #1877f2;
    padding: 13px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    margin: 12px 0;
}

.create-page-form {
    background: #f0f2f5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.create-page-form input,
.create-page-form textarea {
    width: 100%;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    font-family: inherit;
}

.create-page-form button {
    width: 100%;
    border: none;
    background: #1877f2;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
}

.pages-nav-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 18px;
    font-weight: 700;
}

.pages-nav-item small {
    display: block;
    color: #65676b;
    font-weight: 400;
}

.pages-main {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 20px;
}

.pages-main h1 {
    font-size: 24px;
    margin-bottom: 28px;
}

.managed-page-card,
.empty-pages {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.managed-page-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.managed-page-top h2 {
    margin: 0 0 8px;
}

.managed-page-info,
.managed-page-desc {
    color: #65676b;
}

.managed-page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 54px;
    gap: 8px;
    margin-top: 14px;
}

.managed-page-actions button,
.empty-pages button {
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
    background: #e4e6eb;
}

.managed-page-actions button:first-child {
    background: #e7f3ff;
    color: #1877f2;
}

.empty-pages {
    text-align: center;
}

.empty-pages button {
    background: #1877f2;
    color: #fff;
}

@media (max-width: 900px) {
    .pages-layout {
        grid-template-columns: 1fr;
    }

    .pages-sidebar {
        position: static;
    }
}

.fb-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.fb-search {
    position: relative;
}

.fejkbook-search-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 360px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    padding: 12px;
    z-index: 99999;
}

.fejkbook-search-dropdown.active {
    display: block;
}

.search-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #65676b;
    margin: 8px 8px 10px;
}

.search-item,
.search-result-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 10px;
    color: #050505;
    text-decoration: none;
}

.search-item:hover,
.search-result-link:hover {
    background: #f0f2f5;
}

.search-item span {
    width: 36px;
    height: 36px;
    background: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-item small {
    display: block;
    color: #65676b;
    margin-top: 2px;
}

.search-page {
    margin: 0 auto;
    max-width: 760px;
    width: 100%;
}

.search-results-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.14);
}

.search-results-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

.search-result-item h2 a {
    color: #050505;
    text-decoration: none;
}

.search-result-item h2 a:hover {
    text-decoration: underline;
}

.search-empty {
    text-align: center;
}

.fb-profile-dropdown,
.fb-profile-dropdown * {
  box-sizing: border-box !important;
}

.fb-profile-dropdown {
  display: none !important;
  position: fixed !important;
  top: 58px !important;
  right: 18px !important;
  left: auto !important;
  width: 420px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 75px) !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.22) !important;
  z-index: 9999999 !important;
}

.fb-profile-dropdown.active {
  display: block !important;
}

.fb-profile-dropdown a,
.fb-profile-dropdown a:visited,
.fb-profile-dropdown a:hover {
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #050505 !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.fb-profile-card {
  width: 100% !important;
  background: #fff !important;
  border-radius: 14px !important;
  padding: 14px !important;
  margin: 0 0 18px !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.16) !important;
}

.fb-profile-main-link,
.fb-profile-page-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 6px !important;
  border-radius: 10px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.fb-profile-main-link:hover,
.fb-profile-page-link:hover {
  background: #f0f2f5 !important;
}

.fb-profile-main-link img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  display: block !important;
}

.fb-profile-divider {
  height: 1px !important;
  background: #d0d3d8 !important;
  margin: 12px 0 !important;
}

.fb-page-mini-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  background: #e4e6eb !important;
  border: 3px solid #8a8d91 !important;
  color: #1877f2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.fb-show-all-profiles {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  background: #e4e6eb !important;
  border-radius: 8px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.fb-show-all-profiles:hover {
  background: #d8dadf !important;
}

.fb-dropdown-item {
  display: grid !important;
  grid-template-columns: 50px 1fr 24px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.fb-dropdown-item:hover {
  background: #f0f2f5 !important;
}

.fb-dropdown-item span {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 50% !important;
  background: #e4e6eb !important;
  color: #050505 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
}

.fb-dropdown-item strong {
  display: block !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.fb-dropdown-item small {
  display: block !important;
  font-size: 14px !important;
  color: #65676b !important;
  font-weight: 400 !important;
  margin-top: 3px !important;
}

.fb-dropdown-item b {
  font-size: 30px !important;
  color: #65676b !important;
  font-weight: 400 !important;
  justify-self: end !important;
}

.fb-dropdown-footer {
  display: none !important;
}

.managed-page-top h2 a {
  color: #050505;
  text-decoration: none;
}

.managed-page-top h2 a:hover {
  text-decoration: underline;
}

/* CHAT DROPDOWN FINAL FIX */
.fb-messenger-dropdown {
  width: 430px !important;
  min-width: 430px !important;
  max-width: 430px !important;
  padding: 18px !important;
  overflow-x: hidden !important;
}

.fb-messenger-dropdown * {
  float: none !important;
  clear: none !important;
  max-width: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.25 !important;
}

.fb-messenger-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  overflow: hidden !important;
}

.fb-messenger-tabs button {
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.fb-chat-pin-box a {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 12px auto 0 !important;
  text-align: center !important;
  white-space: normal !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.fb-open-messenger {
  display: block !important;
  width: auto !important;
  text-align: center !important;
  margin-top: 12px !important;
  padding: 14px 0 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

.fb-messenger-dropdown a,
.fb-messenger-dropdown button {
  background-image: none !important;
  box-shadow: none !important;
}

.fb-chat-pin-box a:hover,
.fb-open-messenger:hover {
  background: transparent !important;
}

.fb-messenger-chat-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 100% !important;
}

.fb-chat-avatar {
  flex: 0 0 56px !important;
}

.fb-chat-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.fb-chat-info strong,
.fb-chat-info small {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 520px) {
  .fb-messenger-dropdown {
    width: calc(100vw - 20px) !important;
    min-width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: 10px !important;
  }
}

.profile-avatar-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: 185px;
  transform: translateX(-50%);
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  padding: 8px;
  z-index: 9999;
}

.profile-avatar-menu.active {
  display: block;
}

.profile-avatar-menu button,
.profile-avatar-menu label,
.profile-avatar-menu a {
  width: 100%;
  border: none;
  background: transparent;
  color: #050505;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.profile-avatar-menu button:hover,
.profile-avatar-menu label:hover,
.profile-avatar-menu a:hover {
  background: #f0f2f5;
}

/* GLOBAL RESPONSIVE FIX */
html, body {
  width: 100%;
  overflow-x: hidden;
}

.fb-header,
.fb-layout,
.profile-content,
.profile-main-info,
.profile-tabs-new,
.pages-layout {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 1100px) {
  .fb-header {
    grid-template-columns: 260px 1fr auto;
  }

  .fb-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
  }

  .fb-sidebar-right {
    display: none;
  }

  .fb-search input {
    width: 210px;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-left-card {
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .fb-header {
    position: sticky;
    top: 0;
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
  }

  .fb-left {
    width: 100%;
  }

  .fb-search {
    flex: 1;
  }

  .fb-search input {
    width: 100%;
  }

  .fb-center,
  .fb-sidebar-left,
  .fb-sidebar-right,
  .fb-right {
    display: none;
  }

  .fb-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 8px;
  }

  .fb-feed {
    width: 100%;
  }

  .stories {
    gap: 8px;
  }

  .story {
    min-width: 105px;
    height: 180px;
  }

  .story-img {
    height: 125px;
  }

  .post-box,
  .fb-post,
  .ad-card,
  .profile-card,
  .profile-posts-header,
  .profile-view-tabs {
    border-radius: 10px;
  }

  .post-actions,
  .post-footer {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .post-actions button,
  .post-footer button {
    font-size: 13px;
    padding: 10px 4px;
  }

  .media-preview img,
  .media-preview video,
  .post-image video {
    max-height: 360px;
  }

  .profile-cover-new {
    height: 210px;
    border-radius: 0;
  }

  .profile-main-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px 18px;
  }

  .profile-avatar-wrap {
    margin-top: -65px;
  }

  .profile-avatar-wrap img {
    width: 130px;
    height: 130px;
  }

  .profile-name-box h1 {
    font-size: 26px;
  }

  .profile-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .profile-buttons button {
    flex: 1 1 140px;
  }

  .profile-tabs-new {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 8px;
  }

  .profile-tabs-new button {
    display: none;
  }

  .profile-content {
    display: block;
    padding: 0 8px;
  }

  .profile-photo-grid a {
    height: 100px;
  }

  .pages-layout {
    display: block;
  }

  .pages-sidebar {
    box-shadow: none;
  }

  .pages-main {
    padding: 16px 10px;
  }

  .managed-page-actions {
    grid-template-columns: 1fr;
  }

  .fejkbook-search-dropdown {
    width: calc(100vw - 20px);
    left: 0;
  }

  .fb-profile-dropdown {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .fb-logo {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .fb-logo img {
    width: 38px;
    height: 38px;
  }

  .fb-search input {
    padding: 11px 14px;
    font-size: 14px;
  }

  .story {
    min-width: 95px;
    height: 165px;
  }

  .story span {
    font-size: 13px;
  }

  .post-input {
    align-items: flex-start;
  }

  .post-input img {
    width: 38px;
    height: 38px;
  }

  .post-input textarea,
  .post-input input {
    font-size: 14px;
    padding: 12px 14px;
  }

  .post-content h2 {
    font-size: 18px;
  }

  .profile-cover-new {
    height: 170px;
  }

  .edit-cover-btn {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .profile-avatar-wrap img {
    width: 110px;
    height: 110px;
  }

  .profile-name-box h1 {
    font-size: 23px;
  }

  .profile-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comment-form {
    align-items: flex-start;
  }

  .comment-form button {
    padding: 10px;
  }

  .fb-messenger-dropdown {
    width: calc(100vw - 16px) !important;
    min-width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
  }
}

.fb-mobile-menu-btn,
.fb-mobile-side-menu,
.fb-mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .fb-header {
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }

    .fb-mobile-menu-btn {
        display: flex;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 50%;
        background: #e4e6eb;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 900;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 1000001;
    }

    .fb-left {
        flex: 1;
        justify-content: center;
    }

    .fb-logo img {
        width: 38px;
        height: 38px;
    }

    .fb-search,
    .fb-center,
    .fb-right > a,
    .fb-messenger-wrap {
        display: none !important;
    }

    .fb-right {
        display: flex;
        margin-left: auto;
    }

    .fb-profile-menu-wrap {
        display: block !important;
    }

    .fb-user-avatar {
        width: 42px;
        height: 42px;
        background: #e4e6eb;
        border-radius: 50%;
    }

    .fb-profile-dropdown {
        right: 8px;
        left: 8px;
        top: 62px;
        width: auto;
        max-width: none;
    }

    .fb-mobile-menu-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 999998;
    }

    .fb-mobile-side-menu {
        display: block;
        position: fixed;
        left: -310px;
        top: 0;
        width: 300px;
        max-width: 86vw;
        height: 100vh;
        background: #fff;
        z-index: 999999;
        padding: 18px;
        box-shadow: 4px 0 20px rgba(0,0,0,.22);
        overflow-y: auto;
        transition: left .22s ease;
    }

    .fb-mobile-side-menu.active {
        left: 0;
    }

    .fb-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .fb-mobile-menu-head strong {
        font-size: 22px;
        font-weight: 900;
    }

    .fb-mobile-menu-head button {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: #e4e6eb;
        font-size: 24px;
        cursor: pointer;
    }

    .fb-mobile-side-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 10px;
        border-radius: 10px;
        color: #050505;
        text-decoration: none;
        font-weight: 800;
        font-size: 15px;
    }

    .fb-mobile-side-menu a:hover {
        background: #f0f2f5;
    }

    .fb-mobile-side-menu h4 {
        color: #65676b;
        margin: 18px 8px 8px;
        font-size: 15px;
    }
}

.profile-info-row {
  align-items: center;
  padding: 0 32px 34px;
  margin-top: -42px;
}

.profile-name {
  padding-bottom: 0;
  margin-top: 34px;
}

.profile-name h1 {
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.profile-name p {
  font-size: 15px;
  margin: 0;
  color: #050505;
}

.profile-avatar,
.profile-avatar-static {
  margin-top: -80px;
}

.profile-actions {
  padding-bottom: 0;
  margin-top: 34px;
}

.profile-name {
  margin-top: 8px;
}

.profile-name h1 {
  font-size: 28px;
}

.profile-tabs {
  margin-top: 8px;
}

.fejkbook-comment-modal {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.72);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.fejkbook-comment-modal.active {
  display: flex;
}

.fejkbook-comment-popup {
  width: min(850px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
}

.fejkbook-comment-popup-head {
  height: 64px;
  border-bottom: 1px solid #dddfe2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fejkbook-comment-popup-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.fejkbook-comment-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #e4e6eb;
  font-size: 28px;
  cursor: pointer;
}

.fejkbook-comment-popup-body {
  overflow-y: auto;
  padding: 14px;
}

.fejkbook-popup-comments-title {
  font-weight: 800;
  color: #65676b;
  margin: 10px 0;
}

.fejkbook-popup-comment {
  display: flex;
  gap: 9px;
  margin: 12px 0;
}

.fejkbook-popup-comment-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.fejkbook-popup-comment-bubble {
  background: #f0f2f5;
  border-radius: 18px;
  padding: 9px 13px;
  max-width: 560px;
}

.fejkbook-popup-comment-bubble strong {
  display: block;
  font-size: 12.8px;
}

.fejkbook-popup-comment-bubble p {
  margin: 3px 0 0;
  font-size: 14px;
}

.fejkbook-popup-comment-actions {
  display: flex;
  gap: 14px;
  margin: 4px 0 0 12px;
  font-size: 12px;
  color: #65676b;
  font-weight: 800;
}

.fejkbook-popup-comment-actions button {
  border: none;
  background: transparent;
  padding: 0;
  color: #65676b;
  font-weight: 800;
  cursor: pointer;
}

.fejkbook-reply-form {
  display: none;
  margin-top: 7px;
}

.fejkbook-reply-form.active {
  display: flex;
  gap: 6px;
}

.fejkbook-reply-form input {
  flex: 1;
  border: none;
  background: #f0f2f5;
  border-radius: 999px;
  padding: 9px 12px;
  outline: none;
}

.fejkbook-comment-popup-form {
  border-top: 1px solid #dddfe2;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.fejkbook-comment-popup-form input {
  flex: 1;
  border: none;
  background: #f0f2f5;
  border-radius: 999px;
  padding: 14px 16px;
  outline: none;
  font-size: 14px;
}

.fejkbook-comment-popup-form button {
  border: none;
  background: transparent;
  color: #1877f2;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.fejkbook-popup-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid #dddfe2;
  color: #65676b;
  font-weight: 800;
}

.fejkbook-popup-stats-left {
  display: flex;
  align-items: center;
  gap: 26px;
}

.fejkbook-popup-stats-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.fejkbook-popup-reactions {
  cursor: pointer;
  font-size: 20px;
  letter-spacing: -5px;
}

.fejkbook-reactions-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
}

.fejkbook-reactions-modal.active {
  display: flex;
}

.fejkbook-reactions-box {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  overflow: hidden;
}

.fejkbook-reactions-head {
  padding: 14px 18px;
  border-bottom: 1px solid #dddfe2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fejkbook-reactions-head h3 {
  margin: 0;
  font-size: 18px;
}

.fejkbook-reactions-head button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #e4e6eb;
  font-size: 22px;
  cursor: pointer;
}

.fejkbook-reactions-list {
  padding: 12px;
}

.fejkbook-reaction-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
}

.fejkbook-reaction-user:hover {
  background: #f0f2f5;
}

.fejkbook-reaction-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.fb-reaction-picker.active {
  display: flex;
}

.fejkbook-poll-btn {
  border: none;
  background: transparent;
  color: #65676b;
  font-weight: 800;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
}

.fejkbook-poll-btn:hover {
  background: #f0f2f5;
}

.fejkbook-poll-box {
  margin-top: 12px;
  padding: 14px;
  background: #f0f2f5;
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.fejkbook-poll-box input {
  width: 100%;
  border: 1px solid #dddfe2;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  outline: none;
}

.fejkbook-poll-box button {
  border: none;
  background: #1877f2;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}

.fejkbook-poll-view {
  margin: 12px 16px 14px;
  padding: 14px;
  background: #f0f2f5;
  border-radius: 14px;
}

.fejkbook-poll-view strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.fejkbook-poll-option {
  background: #fff;
  border: 1px solid #dddfe2;
  border-radius: 999px;
  padding: 11px 14px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.fejkbook-poll-option small {
  color: #65676b;
}

.fejkbook-poll-display {
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
}

.fejkbook-poll-display strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.fejkbook-poll-display button {
  border: 1px solid #dddfe2;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.fb-notifications-all-link {
    color: #1877f2;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.fb-open-notifications {
    display: block;
    text-align: center;
    color: #1877f2;
    font-size: 13.5px;
    font-weight: 900;
    text-decoration: none;
    padding: 14px 8px 4px;
    border-top: 1px solid #dddfe2;
    margin-top: 10px;
}


body.fejkbook-dark-mode,
body.fejkbook-dark-mode .fb-layout,
body.fejkbook-dark-mode .fb-feed,
body.fejkbook-dark-mode .page-wall,
body.fejkbook-dark-mode .group-wall-page {
    background: #18191a !important;
    color: #e4e6eb !important;
}

body.fejkbook-dark-mode .fb-post,
body.fejkbook-dark-mode .post-box,
body.fejkbook-dark-mode .page-card,
body.fejkbook-dark-mode .page-post-box,
body.fejkbook-dark-mode .group-card,
body.fejkbook-dark-mode .group-post,
body.fejkbook-dark-mode .group-post-box,
body.fejkbook-dark-mode .fb-sidebar-left,
body.fejkbook-dark-mode .fb-sidebar-right,
body.fejkbook-dark-mode .page-wall-cover,
body.fejkbook-dark-mode .group-header {
    background: #242526 !important;
    color: #e4e6eb !important;
}

body.fejkbook-dark-mode p,
body.fejkbook-dark-mode strong,
body.fejkbook-dark-mode h1,
body.fejkbook-dark-mode h2,
body.fejkbook-dark-mode h3,
body.fejkbook-dark-mode a {
    color: #e4e6eb !important;
}

body.fejkbook-dark-mode small,
body.fejkbook-dark-mode span {
    color: #b0b3b8 !important;
}

body.fejkbook-dark-mode textarea,
body.fejkbook-dark-mode input {
    background: #3a3b3c !important;
    color: #e4e6eb !important;
}

body.fejkbook-dark-mode .post-footer,
body.fejkbook-dark-mode .fejkbook-stats {
    border-color: #3e4042 !important;
}