
          /* ============================================ */
      /* MODEL TABS                                    */
      /* ============================================ */
      .model-tabs {
        display: flex;
        gap: 0.4rem;
        margin: 1.2rem 0 1.4rem;
        padding-bottom: 0.2rem;
        border-bottom: 1px solid #1a1a1a;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
              /* ============================================ */
      /* MODEL COMMENTS TAB                            */
      /* ============================================ */
      .model-comments-toolbar {
        display: flex; flex-direction: column; gap: 0.8rem;
        background: #0a0a0a; border: 1px solid #1a1a1a;
        border-radius: 12px; padding: 0.9rem 1rem;
        margin-bottom: 1.2rem;
      }
      .model-comments-search {
        display: flex; align-items: center; gap: 0.6rem;
        background: #141414; border: 1px solid #2a2a2a;
        border-radius: 50px; padding: 0.55rem 1rem;
        transition: border-color 0.15s ease;
      }
      .model-comments-search:focus-within { border-color: #a78bfa; }
      .model-comments-search i { color: #666; font-size: 0.85rem; flex-shrink: 0; }
      .model-comments-search input {
        flex: 1; background: transparent; border: none; outline: none;
        color: #e0e0e0; font-size: 0.9rem; font-family: inherit; min-width: 0;
      }
      .model-comments-search input::placeholder { color: #555; }
      .model-comments-search-clear {
        width: 22px; height: 22px; border-radius: 50%;
        border: none; background: transparent; color: #666;
        display: inline-flex; align-items: center; justify-content: center;
        cursor: pointer; font-size: 0.7rem; flex-shrink: 0;
      }
      .model-comments-search-clear:hover { background: #1e1e1e; color: #fff; }
      .model-comments-filters {
        display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
      }

      .model-comments-list {
        display: flex; flex-direction: column; gap: 0.9rem;
      }
      .model-comment {
        display: flex; gap: 0.8rem;
        padding: 0.9rem 1rem;
        background: #0a0a0a;
        border: 1px solid #1a1a1a;
        border-radius: 12px;
        position: relative;
      }
      .model-comment.is-reply {
        margin-left: 2.4rem;
        background: #070707;
        padding: 0.7rem 0.9rem;
      }
      .model-comment-avatar {
        width: 40px; height: 40px; border-radius: 50%;
        background: linear-gradient(135deg,#2a2a2a,#1a1a1a);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 600; font-size: 0.9rem;
        flex-shrink: 0; overflow: hidden;
      }
      .model-comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
      .model-comment-body { flex: 1; min-width: 0; }
      .model-comment-head {
        display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
        margin-bottom: 0.3rem;
      }
      .model-comment-author {
        color: #fff; font-weight: 600; font-size: 0.88rem; text-decoration: none;
      }
      .model-comment-author:hover { text-decoration: underline; }
      .model-comment-time { color: #666; font-size: 0.72rem; }
      .model-comment-badge {
        display: inline-flex; align-items: center; gap: 0.3rem;
        padding: 0.12rem 0.55rem; border-radius: 30px;
        font-size: 0.65rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.4px;
        text-decoration: none;
        border: 1px solid transparent;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .model-comment-badge.model { background: rgba(167,139,250,.12); color: #a78bfa; border-color: rgba(167,139,250,.35); }
      .model-comment-badge.feed  { background: rgba(96,165,250,.12);  color: #60a5fa; border-color: rgba(96,165,250,.35); }
      .model-comment-badge.post  { background: rgba(244,114,182,.12); color: #f472b6; border-color: rgba(244,114,182,.35); }
      .model-comment-badge[href]:hover { filter: brightness(1.25); }

      .model-comment-text {
        color: #ddd; font-size: 0.9rem; line-height: 1.5;
        margin: 0.1rem 0 0.5rem; word-wrap: break-word;
      }
      .model-comment-meta {
        display: flex; align-items: center; gap: 1rem;
        color: #888; font-size: 0.75rem; flex-wrap: wrap;
      }
      .model-comment-meta button {
        background: transparent; border: none; color: inherit;
        font-size: inherit; font-family: inherit;
        cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 0.3rem;
      }
      .model-comment-meta button:hover { color: #fff; }
      .model-comment-meta button.liked { color: #f472b6; }

      .model-comment-menu-btn {
        position: absolute; top: 0.6rem; right: 0.6rem;
        background: transparent; border: none; color: #666;
        cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 6px;
        display: none; font-size: 0.85rem;
      }
      .model-comment:hover .model-comment-menu-btn { display: block; }
      .model-comment-menu-btn:hover { background: #1a1a1a; color: #fff; }
      .model-comment-menu {
        position: absolute; top: 2.2rem; right: 0.6rem;
        background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 10px;
        display: none; flex-direction: column; z-index: 20;
        min-width: 120px; box-shadow: 0 4px 16px rgba(0,0,0,.4);
        overflow: hidden;
      }
      .model-comment-menu.open { display: flex; }
      .model-comment-menu button {
        background: transparent; border: none; color: #eee;
        font-size: 0.82rem; padding: 0.6rem 0.9rem; text-align: left;
        cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
        font-family: inherit;
      }
      .model-comment-menu button:hover { background: #2a2a2a; }
      .model-comment-menu button.danger { color: #f87171; }
      .model-comment-menu button.danger:hover { background: rgba(248,113,113,.12); }

      .model-comment-edit-input {
        width: 100%;
        background: #141414; border: 1px solid #a78bfa; border-radius: 8px;
        padding: 0.45rem 0.7rem;
        color: #fff; font-size: 0.88rem; font-family: inherit;
        margin-bottom: 0.4rem;
      }

      .model-replies-toggle {
        display: inline-flex; align-items: center; gap: 0.35rem;
        background: transparent; border: none; color: #60a5fa;
        font-size: 0.75rem; font-weight: 600; cursor: pointer;
        padding: 0.3rem 0; font-family: inherit;
        margin-bottom: 0.3rem;
      }
      .model-replies-toggle:hover { color: #93c5fd; }
      .model-replies-wrap {
        display: flex; flex-direction: column; gap: 0.6rem;
        margin-top: 0.5rem;
      }

      .model-comments-empty {
        text-align: center; padding: 3rem 1rem;
        color: #555; font-size: 0.9rem;
      }
      .model-comments-empty i { font-size: 2rem; display: block; margin-bottom: 0.6rem; }

      .model-comment-form {
        display: flex; gap: 0.5rem;
        margin-top: 1.2rem; padding-top: 1rem;
        border-top: 1px solid #1a1a1a;
        position: relative;
      }
      .model-comment-form input {
        flex: 1;
        background: #141414; border: 1px solid #2a2a2a;
        border-radius: 50px; padding: 0.7rem 1.1rem;
        color: #fff; font-size: 16px; outline: none; font-family: inherit;
      }
      .model-comment-form input:focus { border-color: #a78bfa; }
      .model-comment-form button {
        background: #a78bfa; border: none; color: #0a0a0a;
        padding: 0 1.2rem; border-radius: 50px; cursor: pointer;
        font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
        min-width: 52px;
      }
      .model-comment-form button:hover { background: #c4b5fd; }

      .model-comment-login {
        text-align: center; color: #666; padding: 1rem;
        background: #0a0a0a; border: 1px solid #1a1a1a;
        border-radius: 12px; margin-top: 1rem; font-size: 0.88rem;
      }
      .model-comment-login a { color: #a78bfa; font-weight: 600; }

      .model-mention-dropdown {
        position: absolute; bottom: calc(100% + 6px); left: 1rem; right: 1rem;
        background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px;
        max-height: 200px; overflow-y: auto; z-index: 30;
        box-shadow: 0 -8px 24px rgba(0,0,0,.5);
      }
      .model-mention-item {
        display: flex; align-items: center; gap: 0.6rem;
        padding: 0.55rem 0.8rem; cursor: pointer;
      }
      .model-mention-item:hover, .model-mention-item.active { background: #262626; }
      .model-mention-avatar {
        width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
        background: #2a2a2a; display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 700; font-size: 0.7rem; flex-shrink: 0;
      }
      .model-mention-avatar img { width: 100%; height: 100%; object-fit: cover; }
      .model-mention-name { color: #fff; font-size: 0.85rem; font-weight: 600; }

      @media (max-width: 720px) {
        .model-comments-filters {
          flex-direction: column; align-items: stretch;
        }
        .model-comments-filters .filter-group {
          flex-direction: column; align-items: stretch; gap: 0.35rem;
        }
        .model-comments-filters .filter-select { width: 100%; font-size: 16px; }
        .model-comment.is-reply { margin-left: 1.2rem; }
        .model-comment-form input { font-size: 16px; }
      }
      .model-tabs::-webkit-scrollbar { display: none; }
      .model-tab {
        flex-shrink: 0;
        display: inline-flex; align-items: center; gap: 0.45rem;
        padding: 0.65rem 1.1rem;
        background: transparent; border: none;
        border-bottom: 2px solid transparent;
        color: #888; font-size: 0.9rem; font-weight: 600;
        font-family: inherit; cursor: pointer;
        transition: color 0.15s ease, border-color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
      }
      .model-tab:hover { color: #fff; }
      .model-tab.active {
        color: #fff;
        border-bottom-color: #a78bfa;
      }
      .model-tab i { font-size: 0.8rem; }
      .model-tab-count {
        background: #1a1a1a;
        color: #888;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0.1rem 0.5rem;
        border-radius: 30px;
        margin-left: 0.15rem;
      }
      .model-tab.active .model-tab-count {
        background: rgba(167,139,250,.15);
        color: #a78bfa;
      }

      .model-tab-panel { display: none; }
      .model-tab-panel.active { display: block; animation: modelTabIn 0.2s ease; }
      @keyframes modelTabIn {
        from { opacity: 0; transform: translateY(4px); }
        to   { opacity: 1; transform: translateY(0); }
      }

      /* ============================================ */
      /* LINKED POSTS                                  */
      /* ============================================ */
      .linked-posts-toolbar {
        display: flex; flex-direction: column; gap: 0.8rem;
        background: #0a0a0a; border: 1px solid #1a1a1a;
        border-radius: 12px; padding: 0.9rem 1rem;
        margin-bottom: 1.2rem;
      }
      .linked-posts-search {
        display: flex; align-items: center; gap: 0.6rem;
        background: #141414; border: 1px solid #2a2a2a;
        border-radius: 50px; padding: 0.55rem 1rem;
        transition: border-color 0.15s ease;
      }
      .linked-posts-search:focus-within { border-color: #a78bfa; }
      .linked-posts-search i { color: #666; font-size: 0.85rem; flex-shrink: 0; }
      .linked-posts-search input {
        flex: 1; background: transparent; border: none; outline: none;
        color: #e0e0e0; font-size: 0.9rem; font-family: inherit;
        min-width: 0;
      }
      .linked-posts-search input::placeholder { color: #555; }
      .linked-posts-search-clear {
        width: 22px; height: 22px; border-radius: 50%;
        border: none; background: transparent; color: #666;
        display: inline-flex; align-items: center; justify-content: center;
        cursor: pointer; font-size: 0.7rem; flex-shrink: 0;
      }
      .linked-posts-search-clear:hover { background: #1e1e1e; color: #fff; }

      .linked-posts-filters {
        display: flex; gap: 0.8rem; flex-wrap: wrap;
        align-items: center;
      }

      .linked-posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
      }
      .linked-post-card {
        display: flex; flex-direction: column;
        background: #0a0a0a;
        border: 1px solid #1a1a1a;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: border-color 0.2s ease, transform 0.2s ease;
      }
      .linked-post-card:hover {
        border-color: #333;
      }
      .linked-post-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #000;
        overflow: hidden;
      }
      .linked-post-thumb img,
      .linked-post-thumb video {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
      }
      .linked-post-thumb .lp-badge {
        position: absolute; top: 8px; left: 8px;
        background: rgba(0,0,0,0.75);
        color: #ddd;
        padding: 0.15rem 0.55rem;
        border-radius: 30px;
        font-size: 0.65rem;
        border: 1px solid #2a2a2a;
        display: inline-flex; align-items: center; gap: 0.3rem;
      }
      .linked-post-thumb .lp-type {
        position: absolute; top: 8px; right: 8px;
        background: rgba(0,0,0,0.75);
        color: #fff;
        padding: 0.2rem 0.5rem;
        border-radius: 30px;
        font-size: 0.62rem;
        border: 1px solid #2a2a2a;
        display: inline-flex; align-items: center; gap: 0.25rem;
      }
      .linked-post-body {
        padding: 0.75rem 0.9rem 0.9rem;
        display: flex; flex-direction: column; gap: 0.4rem;
      }
      .linked-post-title {
        color: #fff; font-size: 0.9rem; font-weight: 600;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .linked-post-meta {
        display: flex; gap: 0.7rem; flex-wrap: wrap;
        color: #777; font-size: 0.72rem;
      }
      .linked-post-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
      .linked-post-tags {
        display: flex; gap: 0.25rem; flex-wrap: wrap;
        margin-top: 0.1rem;
      }
      .linked-post-tags span {
        background: #141414; border: 1px solid #1f1f1f;
        color: #888; font-size: 0.62rem;
        padding: 0.1rem 0.45rem; border-radius: 30px;
      }

      .linked-posts-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: #555;
      }
              .linked-posts-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin: 1.5rem 0 0.5rem;
        flex-wrap: wrap;
      }
      .linked-posts-pagination .page-btn {
        padding: 0.4rem 0.9rem;
        border-radius: 10px;
        border: 1px solid #1a1a1a;
        background: transparent;
        color: #888;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        min-width: 36px;
        text-align: center;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
      }
      .linked-posts-pagination .page-btn:hover:not(:disabled):not(.active) {
        border-color: #333;
        color: #fff;
        background: #1a1a1a;
      }
      .linked-posts-pagination .page-btn.active {
        background: #fff;
        color: #0a0a0a;
        border-color: #fff;
      }
      .linked-posts-pagination .page-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
      }
      .linked-posts-pagination .page-dots {
        color: #444;
        padding: 0 0.3rem;
        font-size: 0.85rem;
      }
      .linked-posts-pagination .page-info {
        color: #666;
        font-size: 0.8rem;
        margin-left: 0.5rem;
        padding: 0.2rem 0.8rem;
        background: #0a0a0a;
        border-radius: 30px;
        border: 1px solid #1a1a1a;
      }

      @media (max-width: 720px) {
        .linked-posts-pagination .page-btn {
          padding: 0.3rem 0.7rem;
          font-size: 0.75rem;
          min-width: 30px;
        }
        .linked-posts-pagination .page-info {
          font-size: 0.7rem;
          padding: 0.15rem 0.6rem;
        }
      }
      @media (max-width: 480px) {
        .linked-posts-pagination .page-btn {
          padding: 0.2rem 0.5rem;
          font-size: 0.7rem;
          min-width: 26px;
        }
        .linked-posts-pagination .page-dots { padding: 0 0.1rem; }
      }
      .linked-posts-empty i {
        font-size: 2.4rem; display: block; margin-bottom: 0.6rem;
      }
      .linked-posts-empty p { margin: 0; font-size: 0.9rem; }

      @media (max-width: 720px) {
        .linked-posts-grid {
          grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
          gap: 0.7rem;
        }
        .linked-posts-filters {
          flex-direction: column;
          align-items: stretch;
        }
        .linked-posts-filters .filter-group {
          flex-direction: column;
          align-items: stretch;
          gap: 0.35rem;
        }
        .linked-posts-filters .filter-select {
          width: 100%;
          font-size: 16px;
        }
        .linked-posts-filters .filter-label { font-size: 0.78rem; }
        .linked-posts-filters .filter-count {
          margin-left: 0;
          justify-content: center;
        }
        .linked-posts-search input { font-size: 16px; }
      }
      .media-filter-bar {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
        padding: 1rem 1.5rem;
        background: #0a0a0a;
        border-radius: 12px;
        border: 1px solid #1a1a1a;
        align-items: center;
      }
      
      .filter-group {
        display: flex;
        align-items: center;
        gap: 0.6rem;
      }
      
      .filter-label {
        color: #888;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
      }
      
      .filter-select {
        background: #141414;
        border: 1px solid #2a2a2a;
        padding: 0.4rem 1.2rem;
        border-radius: 50px;
        color: #e0e0e0;
        outline: none;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 140px;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.8rem center;
        padding-right: 2.5rem;
      }
      
      .filter-select:hover {
        border-color: #444;
      }
      
      .filter-select:focus {
        border-color: #fff;
      }
      
      .filter-count {
        margin-left: auto;
        color: #666;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        background: #141414;
        padding: 0.3rem 1rem;
        border-radius: 50px;
        border: 1px solid #1a1a1a;
      }
      
      .filter-count span {
        color: #e0e0e0;
        font-weight: 600;
      }
      
      .media-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 0.5rem;
      }
      
      .media-item {
        background: #0a0a0a;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 4/3;
        border: 1px solid #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        position: relative;
        cursor: pointer;
      }
      
      .media-item:hover {
        border-color: #333;
        z-index: 1;
      }
      
      .media-item img,
      .media-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      
      .media-item video {
        background: #0a0a0a;
      }
      
      .media-item .badge {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0,0,0,0.8);
        padding: 0.2rem 0.7rem;
        border-radius: 30px;
        font-size: 0.65rem;
        backdrop-filter: blur(4px);
        border: 1px solid #2a2a2a;
        color: #888;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        pointer-events: none;
      }

      .media-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin: 1.5rem 0 0.5rem;
        flex-wrap: wrap;
      }
      
      .media-pagination .page-btn {
        padding: 0.4rem 0.9rem;
        border-radius: 10px;
        border: 1px solid #1a1a1a;
        background: transparent;
        color: #888;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        min-width: 36px;
        text-align: center;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      
      .media-pagination .page-btn:hover:not(:disabled) {
        border-color: #333;
        color: #fff;
        background: #1a1a1a;
      }
      
      .media-pagination .page-btn.active {
        background: #fff;
        color: #0a0a0a;
        border-color: #fff;
      }
      
      .media-pagination .page-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
      }
      
      .media-pagination .page-dots {
        color: #444;
        padding: 0 0.3rem;
        font-size: 0.85rem;
      }
      
      .media-pagination .page-info {
        color: #666;
        font-size: 0.8rem;
        margin-left: 0.5rem;
        padding: 0.2rem 0.8rem;
        background: #0a0a0a;
        border-radius: 30px;
        border: 1px solid #1a1a1a;
      }
      
      @media (max-width: 768px) {
        .media-pagination .page-btn {
          padding: 0.3rem 0.7rem;
          font-size: 0.75rem;
          min-width: 30px;
        }
        .media-pagination .page-info {
          font-size: 0.7rem;
          padding: 0.15rem 0.6rem;
        }
      }
      
      @media (max-width: 480px) {
        .media-pagination .page-btn {
          padding: 0.2rem 0.5rem;
          font-size: 0.7rem;
          min-width: 26px;
        }
        .media-pagination .page-dots {
          padding: 0 0.1rem;
        }
      }
      .media-item .view-count {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(0,0,0,0.8);
        padding: 0.2rem 0.7rem;
        border-radius: 30px;
        font-size: 0.65rem;
        border: 1px solid #2a2a2a;
        color: #888;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        pointer-events: none;
      }

      .no-results {
        text-align: center;
        padding: 3rem 1rem;
        color: #555;
        grid-column: 1 / -1;
      }
      .no-results i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        display: block;
      }

      @media (max-width: 768px) {
        .media-filter-bar {
          flex-direction: column;
          align-items: stretch;
          gap: 0.8rem;
          padding: 0.8rem 1rem;
        }
        
        .filter-group {
          flex-wrap: wrap;
        }
        
        .filter-select {
          flex: 1;
          min-width: 120px;
        }
        
        .filter-count {
          margin-left: 0;
          justify-content: center;
        }
        
        .media-grid {
          grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
          gap: 0.8rem;
        }
      }