.ios{--f7-toolbar-font-size: 14px;
     --f7-tabbar-icon-size: 21px;
     --f7-tabbar-icons-height: 73px;
     --f7-tabbar-label-font-size: 10px;
  }

.toolbar::before,
.toolbar::after,.navbar-large .navbar-bg::before,.navbar-large .navbar-bg::after{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hidden{visibility: hidden;}
.size-96 {
  font-size: 96px !important;
}
.fab a {
  background: rgba(var(--f7-theme-color-rgb), 0.70);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.fab {   
  border-radius: 99px;
  margin-bottom: 20%;
  position: fixed;
}

.list.separated .item-content,
.list.separated .item-link,
.list.separated li {
  border-radius: var(--f7-list-inset-border-radius) !important;
}

.list.separated li {
  margin-top: 10px;
  background: var(--f7-list-strong-bg-color);
  transform: translateZ(0);
}
a,
a:link,
a:visited {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: #fff0;
}
.ios .tab-link-highlight {
  transition-duration: 200ms;
}

.hidden-by-searchbar,
.left .hidden-by-searchbar,
.right .hidden-by-searchbar {
  display: block !important;
  visibility: hidden !important;
}

body {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  position: fixed;
  overflow: hidden;
  scroll-behavior: smooth;
}

.toolbar-pane,
.left,
.right,
.popover,
.dialog,
.searchbar-input-wrap,
.searchbar-disable-button, .resizable,.panel-floating{
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

.toolbar-pane.dark,
.dark toolbar-pane,
.toolbar-pane .dark,
.left.dark,
.left .dark,
.dark .left,
.right.dark,
.dark .right,
.right .dark,
.popover.dark,
.popover .dark,
.dark .popover,
.dialog.dark,
.dialog .dark,
.dark .dialog, .resizable, panel-floating{
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
}

.page-content.no-navbar {
  padding-top: 0 !important;
}
.panel-avatar{width:80px;
            height:80px;
            border-radius:50%;            
           object-fit:cover;}
.panel-profile-link{color:var(--f7-text-color);}         
/* Post design  */
.byte-post {
  margin: 12px;
  border-radius: 18px;
  overflow: hidden;
}

.byte-post .card-content {
  padding: 14px 14px 10px;
}

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

.byte-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--f7-theme-color);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.byte-user {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.byte-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.byte-handle,
.byte-time {
  font-size: 13px;
  color: var(--f7-text-color-secondary);
}

.byte-post-body {
  font-size: 15px;
  line-height: 1.45;
  color: var(--f7-text-color);
  word-break: break-word;
}

.byte-post-actions {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
}

.byte-post-actions .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--f7-text-color-secondary);
}

.byte-post-actions .f7-icons {
  font-size: 18px;
}

/* Profile editor */ 

      .profile-hero {
        position: relative;
        margin-bottom: 56px;
      }

      .profile-cover {
        position: relative;
        height: 210px;
        background: url("https://picsum.photos/1200/500") center/cover no-repeat;
        overflow: hidden;
      }

      .profile-cover::before,
      .profile-avatar-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.18);
        z-index: 1;
      }

      .cover-edit-btn,
      .avatar-edit-btn {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(15, 20, 25, 0.75);
        color: #fff;
        z-index: 10;
        cursor: pointer;
        backdrop-filter: blur(10px);
      }

      .cover-edit-btn {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }

      .avatar-edit-btn {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 42px;
        height: 42px;
      }

      .cover-edit-btn .icon,
      .avatar-edit-btn .icon {
        font-size: 22px;
      }

      .profile-avatar-wrap {
        position: absolute;
        left: 16px;
        bottom: -36px;
        width: 88px;
        height: 88px;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid var(--f7-page-bg-color);
        background: var(--f7-page-bg-color);
      }

      .profile-avatar-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .photo-input {
        display: none;
      }
      /* Edit profile page*/
            .profile-cover {
        height: 180px;
        background: url('https://picsum.photos/1200/500') center/cover;
      }

      .profile-shell {
        position: relative;
        padding: 16px;
      }

      .profile-avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 4px solid var(--f7-page-bg-color);
        position: absolute;
        top: -48px;
        left: 16px;
        object-fit: cover;
        background: #fff;
      }

      .profile-top-actions {
        display: flex;
        justify-content: flex-end;
      }
     .profile-segmented{margin-bottom:-4px;margin-top:-8px;}
      .profile-edit-btn {
        border-radius: 999px;
      }

      .profile-name {
        margin: 10px 0 0 0;
        font-size: 22px;
        font-weight: 700;
      }

      .profile-username {
        opacity: 0.6;
        margin-top: 1px;
      }

      .profile-bio {
        margin-top: 8px;
        line-height: 1.4;
      }

      .profile-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        word-break: break-word;
      }

      .profile-meta {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 10px;
        opacity: 0.9;
      }

      .profile-meta span strong {
        font-weight: 700;
      }

      .edit-avatar-thumb {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        object-fit: cover;
        flex: 0 0 auto;
      }

      .edit-cover-thumb {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        object-fit: cover;
        flex: 0 0 auto;
      }

      .edit-preview-link {
        display: inline-block;
        margin-top: 8px;
        word-break: break-word;
      }
 /* Notifications styling */
.notifications-list {
  margin-top: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 18px;
}

.notification-item .item-content {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 3px;
}

.notification-item .item-media {
  align-self: flex-start;
  margin-top: 2px;
}

.notification-item .item-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100%;
  min-width: 0;
  text-align: left;
  position: relative;
}

.notification-item .item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.notification-item .item-title {
  font-size: 15px;
  line-height: 1.35;
  padding-right: 8px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.notification-item .item-text {
  font-size: 14px;
  line-height: 1.35;
  color: var(--f7-text-color-secondary, #666);
  margin-top: 4px;
  width: 100%;
  text-align: left !important;
  word-break: break-word;
}

.notification-item .item-after {
  font-size: 12px;
  color: var(--f7-text-color-secondary, #999);
  flex-shrink: 0;
  margin-left: 8px;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 155, 240, 0.12);
  color: var(--f7-theme-color, #1d9bf0);
  flex-shrink: 0;
}

.notif-icon.like {
  background: rgba(249, 24, 128, 0.12);
  color: #f91880;
}

.notif-icon.repost {
  background: rgba(0, 186, 124, 0.12);
  color: #00ba7c;
}

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

.notification-item strong {
  font-weight: 700;
}

.notification-item.unread .item-inner::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f7-theme-color, #1d9bf0);
  position: absolute;
  right: 8px;
  top: 6px;
}
  /* Messages styles */
.message-row {
  display: flex;
  align-items: center;

}

.message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-main {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.message-name {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--f7-text-color-secondary);
  white-space: nowrap;
}

.message-preview {
  font-size: 14px;
  color: var(--f7-text-color-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-row.unread::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--f7-theme-color);
  border-radius: 50%;
}
/* New post */
  #new-post .post-composer {
    padding: 16px;
  }

  #new-post .post-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  #new-post .post-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: block;
    margin-top: 2px;
  }

  #new-post .post-body {
    flex: 1;
  }

  #new-post #post-text {
    width: 100%;
    min-height: 140px;
    max-height: 260px;
    padding: 10px 0;
    border: 0;
    outline: 0;
    resize: none;
    font-size: 16px;
    line-height: 1.4;
    background: transparent;
    overflow-y: auto;
  }

  #new-post .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-left: 10px;
  }

  #new-post .post-tools {
    display: flex;
    gap: 14px;
  }

  #new-post .post-counter {
    font-size: 12px;
    color: #888;
  }
/* Chat styles */
    .messages-content {
      padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .message-avatar {
      width: 34px !important;
      height: 34px !important;
      min-width: 34px !important;
      max-width: 34px !important;
      min-height: 34px !important;
      max-height: 34px !important;
      border-radius: 50%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      flex: 0 0 34px !important;
    }


    .message-content {
      display: inline-flex !important;
      flex-direction: column;
      min-width: 0;
      max-width: 78%;
    }

    .message-received .message-content {
      align-items: flex-start;
      margin-right: auto;
    }

    .message-sent .message-content {
      align-items: flex-end;
      margin-left: auto;
      margin-right: 0;
      padding-right: 0;
    }

    .message-name {
      font-size: 12px;
      font-weight: 700;
      margin: 0 0 4px 2px;
      color: #6b6b70;
    }

    .message-bubble {
      display: inline-block;
      width: fit-content;
      max-width: 100%;
      padding: 12px 14px;
      border-radius: 20px;
      box-shadow: none;
      word-break: break-word;
      overflow-wrap: anywhere;
      line-height: 1.35;
      margin-bottom:7px;
    }

    .message-received .message-bubble {
      background: #f1f1f1 !important;
      color: #111 !important;
      border-bottom-left-radius: 6px;
    }

    .message-sent .message-bubble {
      background: #1d9bf0 !important;
      color: #fff !important;
      border-bottom-right-radius: 6px;
    }

    .message-text {
      font-size: 16px;
      line-height: 1.35;
      margin: 0;
      color: inherit !important;
      white-space: normal;
    }

    .message-action-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.06);
    }

    .send-btn {
      background: #1d9bf0 !important;
      color: #fff !important;
    }

    .send-btn .icon {
      color: #fff !important;
    }


    .chat-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .chat-avatar-small {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .chat-title-text {
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .chat-name {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.1;
      white-space: nowrap;
    }