
  /* Main Comments Container */
  .comments-container {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding:  min(0.8rem, 3vw, 12px);
  }

  /* Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .comments-count {
    font-size: 1.25rem; /* text-xl */
    font-weight: bold;
    width: 100%; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    white-space: normal; 
    color: var(--text);
  }

  .sort-button i {
    margin-right: 8px;
  }

  /* Add Comment Section */
  .add-comment {
    display: flex;
    margin-bottom: 32px;
  }

  .avatar {
    width: 8vw;
    height: 8vw;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background-color: #65686f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
  }

  .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--border-color);
  }

  .comment-box {
    border-bottom: 1px solid #4b5563; /* border-gray-600 */
    padding-bottom: 8px; /* pb-2 */
    transition: border-color 0.3s;
    
  }

  .comment-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 6px 0;
    font-size: min(1.1rem, 5vw, 22px);
    color: var(--text);
  }

  .comment-box input::placeholder {
    font-size: min(1.1rem, 5vw, 22px);
  }

  .buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px; /* mt-2 */
    
  }

  .btn-cancel {
    padding: 4px 5px;
    border-radius: 9999px;
    font-size: 0.875rem; /* text-sm */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-size: min(0.9rem, 3vw, 17px);
    color: var(--icon-color);
  }

  .btn-cancel:hover {
    color: var(--menu-hover);
  }

  .btn-comment {
    margin-left: min(3vw, 10px, 16px);
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: var(--rbg);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: min(0.9rem, 3vw, 17px);
  }

  .btn-comment:hover {
    opacity: 0.8;
  }

  /* Comments List */
  .comments {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-size: min(0.9rem, 5vw, 17px);
  }

  /* Single Comment */
  .comment-card{
    display: flex;
    /* transition effect */
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .comment-card.show{
    opacity: 1;
  }
  .avatar-small {
    max-width: 34px;
    max-height: 34px;
    width: 8vw;
    height: 8vw;
    border-radius: 50%;
    background-color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: min(3vw, 10px, 16px);
    
  }

.comment-data{
  width: 90%;
  display: flex;
  flex-direction: column;
}
  .avatar-small img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
  }
  
  .profile-letter{
      color: var(--text);
  }
  /* Comment Header */
  .comment-header {
      width: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .username {
    font-weight: 600;
    margin-right: 6px;
    font-size: min(0.85rem, 4vw, 16px);
    color: var(--comment-user-name);
  }

  .timestamp {
    font-size: min(0.8rem, 3vw, 12px);
    color: var(--comment-timestamp);
  }

  .option-dots{
    margin-left: auto;
    cursor: default;
    color: var(--text);
    height: 24px;
    width: 24px;
    font-size: 90%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
  .option-dots:hover{
    background-color: var(--menu-hover);
  }
  /* Comment Text */
  .comment-text {  /* <p> */
    margin: 2px 0 8px 0;
    font-weight: 400;
    font-size: min(1rem, 3vw, 1.07rem);
    color: var(--comment-text);
    white-space: pre-wrap;
    word-wrap: break-word;
    display: inline;
  }

  .read-more-btn {
    width: fit-content;
    display: inline-block;
    background: none;
    border: none;
    color: #0084ff;
    cursor: pointer;
    padding: 0;
    margin-bottom: 8px;
    font-size: min(14px, 3vw);
    
}

  /* Comment Actions */
  .actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 8px;
  }

  .action-button {
    display: flex;
    align-items: center;
    color: var(--comment-user-name); /* gray-400 */
    cursor: pointer;
    transition: color 0.3s;
    font-size: min(0.85rem, 3vw, 15px);
  }

 .like-icon{
  width: min( 4vw, 20px);
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-right:  min(1vw, 8px, 12px);
 }
 .more-icon{
  width: min(1.3rem, 5vw, 22px);
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-right:  min(1vw, 8px, 12px);
 }
  .action-button:hover {
    color: #868686;
  }

  /* Reply Section */

  .reply-card-side-bar{
    padding-left: min(3vw, 10px, 16px); 
    border-left: 1px solid #b2b2b2;
  }

  .reply-avatar {
    max-width: 30px; 
    max-height: 30px;
    width: 8vw;
    height: 8vw;
    border-radius: 50%;
    background-color: #6b7280; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: min(3vw, 10px, 16px);
  }

  .reply-avatar img {
      border-radius: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
  }

  .reply-user {
    display: flex;
    font-weight: 600;
    margin-right: 6px;
    font-size: min(0.85rem, 4vw, 16px);
    color: var(--comment-user-name);
  }
  .reply-separator{
    margin: 0 min( 1vw, 6px);
  }
  .replied-username{
    display: block;
    background-color: #5490f130;
    padding: 1px min( 1vw, 4px) 2px min( 1vw, 4px);
    border-radius: 6px;
  }

  .reply-role {
    color: var(--comment-timestamp);
    font-size: min(0.79rem, 3vw, 11px);
  }
    .reply-form input {
    width: 100%;
    background: transparent;
    border-width: 0 0 1px 0;
    border-color: #747983;
    outline: none;
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text);
  }

  .reply-form input::placeholder {
    color: #9ca3af; /* gray-400 */
  }
  
  .show-reply{
    width: fit-content;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    color: #3b82f6; /* indigo-400 */
    font-weight: 500;
    cursor: default;
    transition: background-color 0.3s;
    font-size: min(1rem, 5vw, 18px);
    border-radius: 14px;
}
.show-reply:hover{
  font-weight: 600;
  background-color: #5490f130;
}

  /* Load More Button */
  .load-more {
    margin-top: 24px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    font-size: min(1rem, 5vw, 18px);
  }

  .load-more i {
    margin-right: 8px;
  }

  .load-more:hover {
    color: #60a5fa;
  }

.comments-show-hide-button{
    display: none;
    font-size: min(0.85rem, 4vw, 16px);
    margin: 4px 0 4px auto;
    padding: 4px min(2vw, 10px);
    background-color: #5490f130;
    width: fit-content;
    border-radius: 10px;
    cursor: pointer;
}
.comments-show-hide-button:hover{
    background-color: #5490f173;
}

    /* Overlay */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.1);
      display: none;
      z-index: 9998;
    }

    .menu-action-button {
      cursor: pointer;
      border: none;
      background: none;
      font-size: 20px;
      line-height: 1;
      color: var(--menu-text);
    }
    /* Modern Context Menu */
    .context-menu {
      position: absolute;
      display: none;
      background: var(--menu-bg);
      border: 1px solid var(--menu-border);
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
      z-index: 9999;
      width: 220px;
      border-radius: 8px;
      overflow: hidden;
      animation: fadeIn 0.15s ease-out;
      transition: background 0.3s, border 0.3s;
    }

    .context-menu button {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 14px;
      background: none;
      border: none;
      text-align: left;
      cursor: pointer;
      font-size: 14px;
      color: var(--menu-text);
      transition: background 0.2s, color 0.3s;
    }

    .context-menu button:hover {
      background-color: var(--menu-hover);
    }

    .context-menu svg {
      width: 18px;
      height: 18px;
      stroke-width: 2;
      color: var(--icon-color);
      flex-shrink: 0;
    }

    .context-menu .separator {
      height: 1px;
      background: var(--separator);
      margin: 4px 0;
    }

    .context-menu .danger {
      color: var(--danger);
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }